normalize

Returns a quaternion whose length 1 from target quaternion.

normalize
(
T
)
(
const Quaternion!T q
)
if (
__traits(isFloating, T)
)

Parameters

q Quaternion!T

target quaternion

Return Value

Type: Quaternion!T

normalized target quaternion

Meta