Difference between revisions of "InvSqrt"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns the inverse square root of x. </onlyinclude> <syntaxhighlight lang="cpp"> float InvSqrt(float x) </syntaxhighlight> Category:Scripting [[Category:Globa...")
 
 
Line 2: Line 2:
 
Returns the inverse square root of x.
 
Returns the inverse square root of x.
 
</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 InvSqrt(float x)
+
float Maths::InvSqrt(float x)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Latest revision as of 23:23, 6 September 2012

Returns the inverse square root of x.


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

float Maths::InvSqrt(float x)