Changeset 7184 for code/trunk/src/orxonox/overlays
- Timestamp:
- Aug 18, 2010, 9:46:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r6799 r7184 282 282 if (angle < 0.0) 283 283 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; 287 287 288 288 // do some mathematical fiddling for a bounding box
Note: See TracChangeset
for help on using the changeset viewer.