Hello folks,
Quick request, and non-critical, but thought I'ld add it in here in case someone gets around to it.
I've been using Ogre3d to model orbits and had a bit of trouble with Ogre::Math::ATan. The problem was, ATan returns Ogre::Math::Radians, and there's no way to typecast to float. Of course the solution for me was just to use the standard math.h atan function....which served the purpose. But it might be a nice feature to add for those of us who need the flexibility.
Again, probably not the most critical of requests, but putting it in here mostly for completion sake. Thanks all, and keep up the good work.
-Jason
[Solved] Radians to Float in Math::ATan
- jheld
- Halfling
- Posts: 90
- Joined: Sat Feb 21, 2009 10:32 am
[Solved] Radians to Float in Math::ATan
Last edited by jheld on Mon Oct 05, 2009 2:31 pm, edited 1 time in total.
- Kojack
- OGRE Moderator

- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 538
Re: Radians to Float in Math::ATan
Radians have a method called valueRadians() which returns the radian as a float.
(There's also valueDegrees() which converts to degrees and returns it as a float)
(There's also valueDegrees() which converts to degrees and returns it as a float)