Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
SWFText - Flash Text Animation Builder to make Flash Intro and Banner with 180+ Effects
Creating a Marquee Tool
AX Icons
zlibXtra
DirectImage Xtra
simPPTViewer1.0 Xtra
Play/ Pause/ Rewind/ StepForward/ StepBackward Video Sprite
Billenium Transitions Xtra v1.1
Watcher Window Behavior
cXtraPieChart
MediaMacros Xtras Mall
 

 

 

Behavior Find angles of a right triangle

Added on 7/1/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: GlennPicher (website)

Just be sure you don"t pass in 0 length base or height values, or you"ll get a divide by zero error. The answer is returned in radians. It you need to calculate both angles, it would be faster to calculate one angle and then derive the other angle by subtracting from 90 degrees. Transcendental math functions are rather slow.

on topAngle base, height
  return atan(base/height)
end

on sideAngle base, height
  return atan(height/base)
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail