Difference between revisions of "FastCos"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns the cosine of the given angle in radians. Faster, less reliable version. </onlyinclude> <syntaxhighlight lang="cpp"> float FastCos(float radians) </syntaxhi...")
 
 
Line 2: Line 2:
 
Returns the cosine of the given angle in radians. Faster, less reliable version.
 
Returns the cosine of the given angle in radians. Faster, less reliable version.
 
</onlyinclude>
 
</onlyinclude>
 +
 +
This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
float FastCos(float radians)
+
float Maths::FastCos(float radians)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Latest revision as of 23:22, 6 September 2012

Returns the cosine of the given angle in radians. Faster, less reliable version.


This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.

float Maths::FastCos(float radians)