arctan

Returns the inverse tangent of x.

Syntax:

GML Code Example

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:

GML Code Example

val = arctan( 0 );

This will set val to 0.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here