Skip to main content

renormalize

Function renormalize 

Source
pub fn renormalize(q: DQuat) -> Result<DQuat, CoreError>
Expand description

Projects q back onto the unit sphere after an integration step.

ยงErrors

CoreError::Domain if q has zero, subnormal, infinite or NaN length, because then it no longer encodes a rotation.