forked from M-Labs/nalgebra
Re-export the Identity type properly.
This commit is contained in:
parent
63e6474d40
commit
2a4807262a
17
src/na.rs
17
src/na.rs
@ -39,6 +39,7 @@ pub use traits::{
|
||||
};
|
||||
|
||||
pub use structs::{
|
||||
Identity,
|
||||
DMat, DVec,
|
||||
Iso2, Iso3, Iso4,
|
||||
Mat1, Mat2, Mat3, Mat4,
|
||||
@ -52,6 +53,15 @@ pub use structs::{
|
||||
// Constructors
|
||||
//
|
||||
//
|
||||
|
||||
/// Create a special identity object.
|
||||
///
|
||||
/// Same as `Identity::new()`.
|
||||
#[inline(always)]
|
||||
pub fn identity() -> Identity {
|
||||
Identity::new()
|
||||
}
|
||||
|
||||
/// Create a zero-valued value.
|
||||
///
|
||||
/// This is the same as `std::num::Zero::zero()`.
|
||||
@ -746,6 +756,13 @@ pub fn orthonormal_subspace_basis<V: Basis>(v: &V, f: &fn(V) -> bool) {
|
||||
/*
|
||||
* Dim
|
||||
*/
|
||||
/// Gets the dimension an object lives in.
|
||||
///
|
||||
/// Same as `Dim::dim::(None::<V>)`.
|
||||
#[inline(always)]
|
||||
pub fn dim<V: Dim>() -> uint {
|
||||
Dim::dim(None::<V>)
|
||||
}
|
||||
|
||||
/*
|
||||
* Indexable
|
||||
|
@ -3,7 +3,7 @@
|
||||
pub use self::dmat::DMat;
|
||||
pub use self::dvec::DVec;
|
||||
pub use self::vec::{Vec0, Vec1, Vec2, Vec3, Vec4, Vec5, Vec6};
|
||||
pub use self::mat::{Mat1, Mat2, Mat3, Mat4, Mat5, Mat6};
|
||||
pub use self::mat::{Identity, Mat1, Mat2, Mat3, Mat4, Mat5, Mat6};
|
||||
pub use self::rot::{Rot2, Rot3, Rot4};
|
||||
pub use self::iso::{Iso2, Iso3, Iso4};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user