Skip to main content

quat_normalize

Function quat_normalize 

Source
pub fn quat_normalize(q: [f64; 4]) -> [f64; 4]
Expand description

Normalize a quaternion [x, y, z, w] and return it.

If the quaternion is near-zero, returns the identity [0,0,0,1].