Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 9:46:16 PM (14 years ago)
Author:
rgrieder
Message:

Replaced mathematical constants with a common definition in Math.h.
Use math::pi, math::pi_d (double), math::e, etc. from now on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc

    r6799 r7184  
    282282        if (angle < 0.0)
    283283            angle = -angle;
    284         angle -= Ogre::Math::PI * static_cast<int>(angle / (Ogre::Math::PI));
    285         if (angle > Ogre::Math::PI * 0.5)
    286             angle = Ogre::Math::PI - angle;
     284        angle -= math::pi * static_cast<int>(angle / (math::pi));
     285        if (angle > math::pi * 0.5)
     286            angle = math::pi - angle;
    287287
    288288        // do some mathematical fiddling for a bounding box
Note: See TracChangeset for help on using the changeset viewer.