cos problem realy easy

Started by
16 comments, last by hello_there 21 years, 2 months ago
what''s the function for inverse cosine?
____________________________________________________________How could hell be worse?
Advertisement
google
is there a function that does use radians. or can someone tell me the conversion i''ve forgotten it.
____________________________________________________________How could hell be worse?
radian = degree * pi / 180
degree = radian * 180 / pi

edit: all c function use radian.

[edited by - Wildfire on January 31, 2003 4:40:49 AM]
How do I set my laser printer on stun?
Isn''t the function ''acos''?
doesn't seem to work i'm using the cosine rule to to find a value then doing acos of that but it doen't work am i doing it right or horribly horribly wrong.

[edited by - hello_there on January 31, 2003 4:47:54 AM]
____________________________________________________________How could hell be worse?

    float	angle1 = 45; //degreesfloat	sine         //sinus;float	radians      //radians;float	angle2       //degrees;sine = sin(angle1 * 3.141/180); //convert to radians, c wants radians, not degrees	radians = asin(sine);           //c will return the angle in radiansangle2 = radians * 180 / 3.141; //reconvert to degrees  


[edited by - Wildfire on January 31, 2003 4:54:56 AM]
How do I set my laser printer on stun?
quote:Original post by hello_there
what''s the function for inverse cosine?

You know, it would be helpful if you specified a language.
[ PGD - The Home of Pascal Game Development! ] [ Help GameDev.net fight cancer ]
i think i''ve stuffed up my previous calculations. cause it''s not working.
____________________________________________________________How could hell be worse?
in C++
____________________________________________________________How could hell be worse?

This topic is closed to new replies.

Advertisement