Cos - Math: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>JustinOther
m (→‎Examples: Floatified afValue)
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
float Function cos(float afValue) native global
float Function cos(float afValue) native global
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
float x = math.cos(180.0) ; x == -1
float x = math.cos(180.0) ; x == -1
float y = math.cos(90.0) ; y == 0
float y = math.cos(90.0) ; y == 0
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu