use na::Real; use aliases::Qua; pub fn cross(q1: &Qua, q2: &Qua) -> Qua { q1 * q2 } pub fn dot(x: &Qua, y: &Qua) -> N { x.dot(y) } pub fn length(q: &Qua) -> N { q.norm() } pub fn normalize(q: &Qua) -> Qua { q.normalize() }