Skip to main content

hemisphere_align_motor

Function hemisphere_align_motor 

pub fn hemisphere_align_motor(reference: &Motor, candidate: &Motor) -> Motor
Expand description

Aligns candidate to the same $S^3$ double-cover hemisphere as reference.

Since $M$ and $-M$ represent the exact same rigid SE(3) transformation in PGA ($\mathcal{G}{3,0,1}$), negating all 8 components when $R{\text{ref}} \cdot R_{\text{cand}} < 0$ guarantees shortest-arc dual-quaternion linear blending without antipodal pinching.