Function ncollide::utils::cross3 [] [src]

pub fn cross3<V>(a: &V, b: &V) -> V where V: FiniteDimInnerSpace

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.