diff --git a/fggl/CMakeLists.txt b/fggl/CMakeLists.txt index f1b055ddd3a89003bcb123991734f860c725a7f9..6f9b1baf81f2b2613905a740d957aa289157b3c8 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 1a5c7124be8d33eee89c880f233edca38cc6c085..0fab373d6ca03897a3fa489d18f41569abff414a 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);