Skip to main content
gamedev.net
🔒 Locked

Function

Started by glPerfect Nov 15, 2001 at 1:23 PM 6 replies 550+ views
Original Post
glPerfect
glPerfect
Exist any function where i can get the degrees from an cosinus value.
Sneftel
Sneftel
yah, acos.
Red Ant
Red Ant
acos(double x)
python_regious
python_regious
Doesn''t that give the angle in radians?
If at first you don't succeed, redefine success.
vTheHero
vTheHero
Just about everyone should know that 1 radian = 180/PI degrees
glPerfect
glPerfect
i''ve tried the example:

double x=60;
double y=0;
double z=0;


y = cos(x); //y=-0.9524129801516
z = acos(y);

but z = 2.8318530717959

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.