Difference between revisions of "SHIP:Sail:sin"

From Serious Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{SailFuncTableStart|}}<onlyinclude>
 
{{SailFuncTableStart|}}<onlyinclude>
|{{SailFunc|sin}}||{{DataType|Float}}||style="text-align:center;"|v5.0.204||Gets the sin of a radians angle{{v5}}</onlyinclude>
+
|{{SailFunc|sin}}||{{DataType|Float}}||style="text-align:center;"|v5.0.204||Calculates the sin of a radian angle</onlyinclude>
 
|}
 
|}
 
== See Also: ==
 
== See Also: ==

Latest revision as of 11:36, 14 October 2016

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