[Solved] Radians to Float in Math::ATan

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

[Solved] Radians to Float in Math::ATan

Post by jheld »

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.

Last edited by jheld on Mon Oct 05, 2009 2:31 pm, edited 1 time in total.

User avatar
OGRE Moderator
OGRE Moderator
Posts: 7153
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 520

Re: Radians to Float in Math::ATan

Post by Kojack »

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)

Post Reply