|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
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.
|
|
|