diff --git a/src/IntelliHelper/IntelliHelper.cpp b/src/IntelliHelper/IntelliHelper.cpp index 944d0c6..0fad4ca 100644 --- a/src/IntelliHelper/IntelliHelper.cpp +++ b/src/IntelliHelper/IntelliHelper.cpp @@ -2,6 +2,7 @@ #include #include #include +#define PI_HALF 1.57079632679489661923 std::vector IntelliHelper::calculateTriangles(std::vector polyPoints){ @@ -46,7 +47,7 @@ std::vector IntelliHelper::calculateTriangles(std::vector poly // return if the vertex is a tip auto isTip = [](float angle){ - return static_cast(angle)<(M_PI/2.); + return static_cast(angle)<(PI_HALF); }; std::vector Vertices;