From 6a4e91ad39a48a13e50be3a38d3fc81c1565604b Mon Sep 17 00:00:00 2001
From: Joseph Walton-Rivers <joseph@walton-rivers.uk>
Date: Wed, 20 Apr 2022 08:14:47 +0100
Subject: [PATCH] compile new math types

---
 fggl/CMakeLists.txt          | 1 +
 include/fggl/math/shapes.hpp | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/fggl/CMakeLists.txt b/fggl/CMakeLists.txt
index f1b055d..6f9b1ba 100644
--- a/fggl/CMakeLists.txt
+++ b/fggl/CMakeLists.txt
@@ -31,6 +31,7 @@ target_sources(${PROJECT_NAME}
 	gui/widgets.cpp
 	gui/containers.cpp
 	math/triangulation.cpp
+	math/shapes.cpp
 )
 
 # spdlog for cleaner logging
diff --git a/include/fggl/math/shapes.hpp b/include/fggl/math/shapes.hpp
index 1a5c712..0fab373 100644
--- a/include/fggl/math/shapes.hpp
+++ b/include/fggl/math/shapes.hpp
@@ -180,6 +180,7 @@ namespace fggl::math::phs3d {
 			//   (c3 + c1 ) / c_2
 			//   (c1 + c2 ) / c_2
 			// return BarycentricToCart(bary)
+			return glm::zero<vec3>();
 		}
 
 		inline float circumradius() {
@@ -192,6 +193,7 @@ namespace fggl::math::phs3d {
 			// c = c1 + c2 + c3
 			// c_2 = 2 * c
 			// return sqrt( (d1+d2) * (d2+d3) * ( d3 + d1 ) / c ) / 2
+			return 0.0F;
 		}
 
 		bool CartToBarycentric(const math::vec3& cart, Barycentric& outVal);
-- 
GitLab