diff --git a/sources/demo/Objects.cpp b/sources/demo/Objects.cpp index 705644ac..2fc2280b 100755 --- a/sources/demo/Objects.cpp +++ b/sources/demo/Objects.cpp @@ -84,7 +84,7 @@ void Cube::draw() const { glTranslatef(x, y, z); // Rotation of the cube according to its orientation - glRotatef(orientationAngle/pi*180.0, orientationAxis.getX(), orientationAxis.getY(), orientationAxis.getZ()); + glRotatef(orientationAngle/PI*180.0, orientationAxis.getX(), orientationAxis.getY(), orientationAxis.getZ()); // Draw the cube glutSolidCube(size); diff --git a/sources/demo/OutSideCamera.cpp b/sources/demo/OutSideCamera.cpp index a6ad14f5..59013809 100644 --- a/sources/demo/OutSideCamera.cpp +++ b/sources/demo/OutSideCamera.cpp @@ -21,9 +21,6 @@ #include "OutSideCamera.h" #include -// Constants -const double PI = 3.141592; - // Constructor OutSideCamera::OutSideCamera() {