Function ncollide_utils::cross3 [] [src]

pub fn cross3<N, V>(a: &V, b: &V) -> V where N: Scalar, V: Zero + Index<usize, Output=N> + IndexMut<usize, Output=N> + Dimension

A 3d cross product that do not require the Cross<Self, Self> trait impl.

XXX: this is a HACK until the trait reform is done on rustc. This allows the use of the cross product without the need of the Cross<Self, Self> trait impl.

Fails if the dimension of V is not 3.