xs_vec_normalize

Синтаксис

stock xs_vec_normalize(const Float:vec[], Float:out[])

Употреба

vec
The vector to be normalized.
out
The output vector. Can be the same as the input vector.

Описание

Normalizes a vector. Normalized vector is a vector with the length of 1 unit,
but with the same direction as the original vector.

Връщаща стойност

Тази функция няма връщаща стойност.