src/linetypes/circularprimitive.cpp

changeset 196
6bcb284679d4
parent 186
922662adb72a
--- a/src/linetypes/circularprimitive.cpp	Wed May 25 17:48:18 2022 +0300
+++ b/src/linetypes/circularprimitive.cpp	Wed May 25 17:56:30 2022 +0300
@@ -77,8 +77,8 @@
 {
 	for (int i = 0; i < this->segments; i += 1)
 	{
-		const float ang_1 = (2 * math::pi * i) / this->divisions;
-		const float ang_2 = (2 * math::pi * (i + 1)) / this->divisions;
+		const float ang_1 = (2 * pi<> * i) / this->divisions;
+		const float ang_2 = (2 * pi<> * (i + 1)) / this->divisions;
 		const glm::vec3 p_1 = {std::sin(ang_1), 0, std::cos(ang_1)};
 		const glm::vec3 p_2 = {std::sin(ang_2), 0, std::cos(ang_2)};
 		switch (this->type)

mercurial