stock

xs_vec_normalize

Syntax

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

Description

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

Parameters

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

Return

This function has no return value.