xs_vec_normalize

Syntax

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

Usage

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

Description

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

Return

This function has no return value.