SHIP:Sail:sin

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

See Also:

Prototype

Float sin(Float angle);

Parameters/Return Value

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

Detailed Description

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

Examples

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