Skip to content

Commit

Permalink
Fixed compilation error due to obsolete internal::abs and internal::s…
Browse files Browse the repository at this point in the history
…qrt function calls
  • Loading branch information
Abhijit Kundu committed Mar 27, 2014
1 parent 7cbcd57 commit 07055b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/opengl/quaternion_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void RenderingWidget::drawScene()
gpu.drawVector(Vector3f::Zero(), length*Vector3f::UnitZ(), Color(0,0,1,1));

// draw the fractal object
float sqrt3 = internal::sqrt(3.);
float sqrt3 = std::sqrt(3.);
glLightfv(GL_LIGHT0, GL_AMBIENT, Vector4f(0.5,0.5,0.5,1).data());
glLightfv(GL_LIGHT0, GL_DIFFUSE, Vector4f(0.5,1,0.5,1).data());
glLightfv(GL_LIGHT0, GL_SPECULAR, Vector4f(1,1,1,1).data());
Expand Down
2 changes: 1 addition & 1 deletion demos/opengl/trackball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void Trackball::track(const Vector2i& point2D)
{
Vector3f axis = mLastPoint3D.cross(newPoint3D).normalized();
float cos_angle = mLastPoint3D.dot(newPoint3D);
if ( internal::abs(cos_angle) < 1.0 )
if ( std::abs(cos_angle) < 1.0 )
{
float angle = 2. * acos(cos_angle);
if (mMode==Around)
Expand Down

0 comments on commit 07055b3

Please sign in to comment.