cos problem realy easy
is there a function that does use radians. or can someone tell me the conversion i''ve forgotten it.
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]
degree = radian * 180 / pi
edit: all c function use radian.
[edited by - Wildfire on January 31, 2003 4:40:49 AM]
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]
[edited by - hello_there on January 31, 2003 4:47:54 AM]
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]
quote:Original post by hello_there
what''s the function for inverse cosine?
You know, it would be helpful if you specified a language.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement