Add prelude module

This commit is contained in:
Brendan Zabarauskas 2016-03-25 15:27:57 +11:00
parent 4200b75c6d
commit 652ec87dd8
2 changed files with 25 additions and 0 deletions

View file

@ -54,6 +54,8 @@ pub use rust_num::{One, Zero, one, zero};
// Modules // Modules
pub mod prelude;
mod macros; mod macros;
mod array; mod array;

23
src/prelude.rs Normal file
View file

@ -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;