arctan

Returns the inverse tangent of x.

Syntax:

arctan(x);


Argument Description
x The angle (in radians) to return the inverse tangent of.


Returns: Real


Description

Returns the inverse tangent of x. This will accept any number as, unlike tan, arctans asymptotes are on the y axis so it just means you'll never get returned a number greater than pi/2 or less than -pi/2.


Example:

val = arctan( 0 );

This will set val to 0.


Back: Real Number Functions
Next: arctan2
© Copyright YoYo Games Ltd. 2018 All Rights Reserved