SHIP:Sail:tan

From Serious Documentation
Revision as of 15:23, 4 October 2016 by CarltonHeyer (talk | contribs)
Jump to: navigation, search
Function Returns Introduced Description
tan Float v5.1.0 Gets the tan of a radians angleBadge SHIPv5.gif

See Also:

Prototype

Float tan(Float angle);

Parameters/Return Value

Parameter Data Type Description
angle Float the angle, in radians, to take the tan of
Return Float tan(angle)

Detailed Description

The tan() function returns the tan of the supplied radians angle. If you have an angle in degrees you can use tan(toRadians(angle))

Examples

Example Result Notes
tan(-5.1f); 0.958924...
tan(2.2f); 0.808496...
tan(M_PI_2); 1
tan(M_PI); 0

Categories:Trigonometric Functions