Difference between revisions of "SHIP:Sail:sin"

From Serious Documentation
Jump to: navigation, search
(Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|sin}}||{{DataType|Float}}||style="text-align:center;"|v5.0.204||Gets the sin of a radians angle{{v5}}</onlyinclude> ...")
 
 
(3 intermediate revisions by 2 users not shown)
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: ==
Line 7: Line 7:
 
*[[SHIP:Sail:Functions|Sail Functions]]
 
*[[SHIP:Sail:Functions|Sail Functions]]
 
*[[SHIP:Sail:Numeric Functions|Sail Numeric Functions]]
 
*[[SHIP:Sail:Numeric Functions|Sail Numeric Functions]]
*[[SHIP:Sail:Trigonomic Functions|Sail Trigonomic Functions]]
+
*[[SHIP:Sail:Trigonometric Functions|Sail Trigonometric Functions]]
  
 
== Prototype ==
 
== Prototype ==
Line 41: Line 41:
 
|<code>{{SailFunc|sin}}(M_PI_2);</code> || 1 ||
 
|<code>{{SailFunc|sin}}(M_PI_2);</code> || 1 ||
 
|-
 
|-
|<code>{{SailFunc|round}}(M_PI);</code> || 0 ||
+
|<code>{{SailFunc|sin}}(M_PI);</code> || 0 ||
 
|}
 
|}
 +
 +
[[Category:Trigonometric Functions]]

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