Difference between revisions of "SHIP:Sail:sin"

From Serious Documentation
Jump to: navigation, search
Line 44: Line 44:
 
|}
 
|}
  
[[Categories:Trigonometric Functions]]
+
[[Category:Trigonometric Functions]]

Revision as of 15:33, 10 October 2016

Function Returns Introduced Description
sin Float v5.0.204 Gets the sin of a radians angleBadge SHIPv5.gif

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