use na::{self, Real, U3, U4, Matrix4}; use aliases::{Vec, Mat}; pub fn matrix_cross3(x: &Vec) -> Mat { x.cross_matrix() } pub fn matrix_cross4(x: &Vec) -> Mat { let m = x.cross_matrix(); // FIXME: use a dedicated constructor from Matrix3 to Matrix4. Matrix4::new( m.m11, m.m12, m.m13, N::zero(), m.m21, m.m22, m.m23, N::zero(), m.m31, m.m32, m.m33, N::zero(), N::zero(), N::zero(), N::zero(), N::one(), ) }