Difference between revisions of "Equals"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns true if the two given floats are equal, otherwise false. </onlyinclude> <syntaxhighlight lang="cpp"> bool Equals(float a, float b) </syntaxhighlight> [[Cat...")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
Returns true if the two given floats are equal, otherwise false.
 
Returns true if the two given floats are equal, otherwise false.
 
</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">
bool Equals(float a, float b)
+
bool Maths::Equals(float a, float b)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Latest revision as of 22:24, 6 September 2012

Returns true if the two given floats are equal, otherwise false.


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

bool Maths::Equals(float a, float b)