How to convert angles to radians

Started by
8 comments, last by nick5454 20 years, 11 months ago
OK, dumb i know but what is a formula to convert angles(0 - 360) for x,y, and z to radians
Advertisement
All you have to do is set up a basic proportion:


If 2Pi = 260 degress then


2Pi 360
--- = ---
x y


For instance if you know your "y" which is in degrees plug it in and solve for "x" which will give you the radian conversion.

[edited by - nervo on May 7, 2003 11:28:34 PM]

[edited by - nervo on May 7, 2003 11:29:55 PM]
Well, R2D22U2..
is that 2pi/x = 360/y? and what about the z?
x_rad = x_deg/180 * PI;
y_rad = y_deg/180 * PI;
z_rad = z_deg/180 * PI;
thanks
What I wrote is the conversion for any radian. I might not totally understand what you are trying to say, but a radian is a radian whether it is represented x y or z.

Just to clarify:

x = a radian value (In this case what you are looking for)

y = the degree value (That you should know)

For instance:

If you want to know what 90 degree is then plug it in and solve for x.

Cross multiplying: 360x = 2*(90)Pi

180Pi = 360x

x = Pi/2

If you wanted to know something related to 3d, then someone else should be able to help you better.
Well, R2D22U2..
Well I''m setting up patterns for fighter jets and missle recorrection angles. I need to convert an angle to radians one at a time, x, y, and then z. if your method dopesnt work I will see it
If all you wanted to do was simply convert to radians then it will work fine. Also just as the person before posted, you can also use Pi = 180 instead of 2Pi = 360. It would simply the arithmetic. Hope it helps
Well, R2D22U2..
yes
radians = degrees * ( 180 / 3.14159);

------------------http://www.nentari.com

This topic is closed to new replies.

Advertisement