Documentation
›
API Reference
›
Object
›
Math
›
Vec3
Normalize
Lua
C++
This function returns a normalized vector. The resulting vector will have a length of 1.
Syntax
Vec3
Normalize
()
Returns
Returns the normalized vector. If the magnitude of this vector is 0, Vec3(0) will be returned.