1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
/*! # **rustool** Personal toolbox for my Rust projects ## Using **rustool** Simply add the following to your `Cargo.toml` file: ```.ignore [dependencies] rustool = "*" // replace * by the latest version of the crate ``` */ /// Main functionalities. pub mod core; pub use crate::core::*; extern crate alga; extern crate itertools; extern crate log; extern crate nalgebra as na; extern crate num_traits; extern crate simplelog; use na::{Matrix3xX, RowDVector, UnitVector3, Vector3}; /// Type alias for [`RowDVector`]. The matrix has 1 row and X columns. pub type List<T> = RowDVector<T>; /// Type alias for [`Vector3`]. The matrix has 3 rows and 1 column. pub type Vector<T> = Vector3<T>; /// Type alias for [`UnitVector3`]. The matrix has 3 rows and 1 column. pub type Unit<T> = UnitVector3<T>; /// Type alias for [`Matrix3xX`]. The matrix has 3 rows and X columns. pub type Vectors<T> = Matrix3xX<T>;