Перейти к содержанию

System::vmag2

Материал из RAGE MP Wiki Archive

Calculates the magnitude of a vector but does not perform Sqrt operations. (Its way faster)

Syntax

<syntaxhighlight lang="javascript">mp.game.system.vmag2(p0, p1, p2);</syntaxhighlight>

Required Arguments

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

Return value

  • float

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

Шаблон:System s function c