-
Notifications
You must be signed in to change notification settings - Fork 0
et_normalizeVec3f
DeveloperGY edited this page Apr 13, 2023
·
1 revision
et_Vec3f et_normalizeVec3f(et_Vec3f v);et_Vec3f v: The vector to normalize
et_Vec3f: The normalized version of the specified vector
Returns the normalized version of the vector.
This is NOT the norm of the vector, that would be returned by
float et_normVec3f(et_Vec3f v);The normalized vector is used to specify a direction.
et_Vec3f vec = et_genVec3f(3, 4, 5);
et_Vec3f normalized_vec = et_normalizeVec3f(vec);