diff --git a/src/lib.rs b/src/lib.rs index 87b9e8d..de3cb52 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,6 +54,8 @@ pub use rust_num::{One, Zero, one, zero}; // Modules +pub mod prelude; + mod macros; mod array; diff --git a/src/prelude.rs b/src/prelude.rs new file mode 100644 index 0000000..a7ad11c --- /dev/null +++ b/src/prelude.rs @@ -0,0 +1,23 @@ +//! This module contains the most common traits used in `cgmath`. By +//! glob-importing this module, you can avoid the need to import each trait +//! individually, while still being selective about what types you import. + +pub use angle::Angle; + +pub use array::Array; + +pub use matrix::Matrix; +pub use matrix::SquareMatrix; + +pub use point::Point; + +pub use rotation::Rotation; +pub use rotation::Rotation2; +pub use rotation::Rotation3; + +pub use transform::Transform; +pub use transform::Transform2; +pub use transform::Transform3; + +pub use vector::EuclideanVector; +pub use vector::Vector;