SHIP:Sail:tan

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
tan Float v5.1.0 Calculates the tan of a radian angle

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 radian 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