Add missing rotation-related functions.

This commit is contained in:
Sébastien Crozet 2013-08-31 17:17:18 +02:00
parent 9ecafc5cdf
commit a40899ef67
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ use std::cmp::ApproxEq;
use std::vec::{VecIterator, VecMutIterator}; use std::vec::{VecIterator, VecMutIterator};
use vec::{Vec1, Vec2, Vec3, Vec4, Vec5, Vec6, Outer}; use vec::{Vec1, Vec2, Vec3, Vec4, Vec5, Vec6, Outer};
// traits
pub use traits::dim::Dim; pub use traits::dim::Dim;
pub use traits::indexable::Indexable; pub use traits::indexable::Indexable;
pub use traits::iterable::{Iterable, IterableMut}; pub use traits::iterable::{Iterable, IterableMut};
@ -21,6 +22,9 @@ pub use traits::transpose::{Transpose};
pub use traits::homogeneous::{ToHomogeneous, FromHomogeneous}; pub use traits::homogeneous::{ToHomogeneous, FromHomogeneous};
pub use traits::row::Row; pub use traits::row::Row;
// functions
pub use traits::rotation::{rotated_wrt_point, rotate_wrt_point, rotated_wrt_center, rotate_wrt_center};
mod mat_macros; mod mat_macros;
/// Special identity matrix. All its operation are no-ops. /// Special identity matrix. All its operation are no-ops.