darctan

Returns the inverse tangent of val, where val is in degrees.

Syntax:

darctan(x);


Argument Description
val The angle (in degrees) to return the inverse tangent of.


Returns: Real


Description

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


Example:

val = darctan(1);

This will set "val" to -45.


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