[Solved] Radians to Float in Math::ATan

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
jheld
Halfling
Posts: 90
Joined: Sat Feb 21, 2009 10:32 am

[Solved] Radians to Float in Math::ATan

Post by jheld » Tue Mar 03, 2009 2:57 pm

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
Last edited by jheld on Mon Oct 05, 2009 2:31 pm, edited 1 time in total.
0 x

User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7152
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 19

Re: Radians to Float in Math::ATan

Post by Kojack » Tue Mar 03, 2009 3:04 pm

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)
0 x

Post Reply