Skip to content

et_normalizeVec3f

DeveloperGY edited this page Apr 13, 2023 · 1 revision

Signature

et_Vec3f et_normalizeVec3f(et_Vec3f v);

Parameters

et_Vec3f v: The vector to normalize

Return Value

et_Vec3f: The normalized version of the specified vector

Description

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);

Uses

The normalized vector is used to specify a direction.

Example

et_Vec3f vec = et_genVec3f(3, 4, 5);
et_Vec3f normalized_vec = et_normalizeVec3f(vec);

Clone this wiki locally