Archived

This topic is now archived and is closed to further replies.

kc_0045

Converts degrees to radians.

Recommended Posts

Hey pretty simpile im looking for a function that Converts degrees to radians. is this is math.h? well ya thanks in advanced.

Share this post


Link to post
Share on other sites
you could just write your own:


// Rad to Deg
float r2d(float fValue)
{
return fValue * (180.0f/3.14159f);
}

// Deg to Rad
float d2r(float fValue)
{
return fValue * (3.14159f/180.0f);
}

Share this post


Link to post
Share on other sites