forked from M-Labs/nalgebra
Make the traits
module private.
Use `vec::Whatever` or `mat::Whatever` instead of `traits::whatever::Whatever`.
This commit is contained in:
parent
1b31304a9e
commit
a5a616e05e
@ -37,37 +37,29 @@ pub mod adaptors
|
|||||||
|
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
// pub mod num
|
|
||||||
// {
|
|
||||||
// pub use traits::dim::*;
|
|
||||||
// pub use traits::homogeneous::*;
|
|
||||||
// pub use traits::ring::*;
|
|
||||||
// pub use traits::division_ring::*;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// FIXME: it would be better to hide all those from the outside!
|
// FIXME: it would be better to hide all those from the outside!
|
||||||
pub mod traits
|
mod traits
|
||||||
{
|
{
|
||||||
pub mod vector;
|
mod vector;
|
||||||
pub mod sample;
|
mod sample;
|
||||||
pub mod indexable;
|
mod indexable;
|
||||||
pub mod column;
|
mod column;
|
||||||
pub mod row;
|
mod row;
|
||||||
pub mod iterable;
|
mod iterable;
|
||||||
pub mod outer;
|
mod outer;
|
||||||
pub mod cross;
|
mod cross;
|
||||||
pub mod inv;
|
mod inv;
|
||||||
pub mod transpose;
|
mod transpose;
|
||||||
pub mod dim;
|
mod dim;
|
||||||
pub mod basis;
|
mod basis;
|
||||||
pub mod rotation;
|
mod rotation;
|
||||||
pub mod translation;
|
mod translation;
|
||||||
pub mod transformation;
|
mod transformation;
|
||||||
pub mod rlmul;
|
mod rlmul;
|
||||||
pub mod scalar_op;
|
mod scalar_op;
|
||||||
pub mod homogeneous;
|
mod homogeneous;
|
||||||
pub mod vec_cast;
|
mod vec_cast;
|
||||||
pub mod mat_cast;
|
mod mat_cast;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
@ -5,9 +5,10 @@ use std::vec::{VecIterator, VecMutIterator};
|
|||||||
use std::iterator::{Iterator, FromIterator};
|
use std::iterator::{Iterator, FromIterator};
|
||||||
use std::cmp::ApproxEq;
|
use std::cmp::ApproxEq;
|
||||||
|
|
||||||
pub use traits::translation::*;
|
use traits::translation::*;
|
||||||
pub use traits::transformation::*;
|
use traits::transformation::*;
|
||||||
pub use traits::rotation::*;
|
use traits::rotation::*;
|
||||||
|
|
||||||
pub use traits::homogeneous::*;
|
pub use traits::homogeneous::*;
|
||||||
pub use traits::vec_cast::*;
|
pub use traits::vec_cast::*;
|
||||||
pub use traits::vector::*;
|
pub use traits::vector::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user