System::vmag: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Calculates the magnitude of a vector.
Calculates the magnitude of a vector.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">system.vmag(p0, p1, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.system.vmag(p0, p1, p2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' float
*'''p0:''' float
Line 10: Line 10:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{System_function_c}}
{{System_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:32, 6 May 2017

Calculates the magnitude of a vector.

Syntax

mp.game.system.vmag(p0, p1, p2);

Required Arguments

  • p0: float
  • p1: float
  • p2: float

Return value

  • float

Example

// todo

See also

Template:System s function c