1pub mod quaternion;
7pub mod spatial;
8
9pub use quaternion::Quat;
10pub use spatial::{SpatialInertia, SpatialMat, SpatialTransform, SpatialVec};
11
12use nalgebra as na;
13
14pub type Vec3 = na::Vector3<f64>;
16pub type Mat3 = na::Matrix3<f64>;
18pub type Mat4 = na::Matrix4<f64>;
20pub type Vec6 = na::Vector6<f64>;
22pub type Mat6 = na::Matrix6<f64>;
24pub type DVec = na::DVector<f64>;
26pub type DMat = na::DMatrix<f64>;
28
29#[inline]
31pub fn skew(v: &Vec3) -> Mat3 {
32 Mat3::new(0.0, -v.z, v.y, v.z, 0.0, -v.x, -v.y, v.x, 0.0)
33}
34
35pub const GRAVITY: f64 = 9.81;