Returns the tangent of val.


GML Code Example


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

Returns: Real


In a right angled triangle tan(val) = Opposite / Adjacent where val is one of the three angles.

NOTE: The value returned is in radians, not degrees.

Note: Pi/2, (3 pi/2), -pi/2 and a vast number of other values will error with this function due to their returning infinity, a graph representation of this would produce asymptotes at these values.


GML Code Example

val = tan( pi );

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