Graphmath.Vec3.normalize
You're seeing just the function
normalize
, go back to Graphmath.Vec3 module for more information.
Link to this function
normalize(a)
Specs
normalize(a)
finds the unit vector with the same direction as a vec3
.
a
is the vec3
to be normalized.
It returns a vec3
of the form {normx, normy, normz}
.
This is done by dividing each component by the vector's magnitude.