Normalize 2D (Vector)

Normalize 2D (Vector)

Choose your operating system:

Windows

macOS

Linux

Gets a normalized unit copy of the 2D components of the vector, ensuring it is safe to do so. Z is set to zero. Returns zero vector if vector length is too small to normalize.

Target is Kismet Math Library

Normalize 2D (Vector)
A
X0
Y 0
Z 0
Tolerance
Return Value
X0
Y 0
Z 0

Inputs

A
Vector
Tolerance
Float (single-precision)

Minimum squared vector length.

Outputs

Return Value
Vector

Normalized copy if safe, (0,0,0) otherwise.