Math.atan( ) Method | Flash 5; may be used when exporting Flash 4 movies | compute the arc tangent of a number | | Arguments - x
-
A number between -Infinity and Infinity, inclusive (the tangent of some angle). Returns The angle, in radians, whose tangent is x. Description The arc tangent function (sometimes written as tan-1) is the inverse of the tangent function. It returns the angle whose tangent has the specified value, in radians. The return value is in the range of -/2 to /2. Exampletrace (Math.atan(1.0)); // Displays: 0.78539... trace (Math.atan(0.0)); // Displays: 0 trace (Math.atan(-Infinity)); // Displays: -1.5707... (i.e., -pi/2) See Also Math.acos( ), Math.asin( ), Math.tan( ) |