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

System::vmag2

Материал из RAGE MP Wiki Archive
Версия от 21:32, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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