Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-12-2005, 05:17 AM   #1
King_Samuel
Registered User
 
Join Date: May 2005
Posts: 13
Question Opposite Angles

Does anybody know how of a way to find out the opposite angle of a radian. I have thought of converting the radian into degrees, and 180 then converting it back to radians. This method doesn't seem to be to clean, has anybody got a better method?

Cheers
King_Samuel is offline   Reply With Quote
Old 05-12-2005, 06:07 AM   #2
Laguana
Well known nobody
 
Join Date: Jul 2004
Posts: 818
Default

What do you mean by opposite? Do you mean it's supplement or complement, or something else?
__________________
Wheels i've re-invented (or what concepts i've tried to bring to flash):

Matricies
Complex numbers

Current project:

Graphing program
Laguana is offline   Reply With Quote
Old 05-12-2005, 06:45 AM   #3
Eliseo
Registered User
 
Join Date: Mar 2005
Posts: 61
Default

King_Samuels, an angle in radians is the same that an angle in degrees. Only remember that Math.PI radians=180 degrees so, if we are using degrees add or less 180 (or 90 or...) if we are using radians add or less Math.PI (or MAth.PI/2 or....)

ActionScript Code:
angle_degrees=90-angle_degrees_original angle_degrees=180-angle_degrees_original //ór angle_radians=Math.PI/2-angle_radians_original angle_radians=Math.PI-angle_radians_original
Eliseo is offline   Reply With Quote
Old 05-12-2005, 02:54 PM   #4
King_Samuel
Registered User
 
Join Date: May 2005
Posts: 13
Talking

Thanks very much.
King_Samuel is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:55 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.