Function geo_nd::quat::distance_sq

source ·
pub fn distance_sq<V: Float>(a: &[V; 4], b: &[V; 4]) -> V
Expand description

Get a measure of the ‘distance’ between two quaternions

This is calculated as |a’ * b|, where || is the l

Should this instead be 1 - <a.b>^2 where a.b is the inner product?