forked from M-Labs/nalgebra
Add reflection alias.
This commit is contained in:
parent
06e20b4b95
commit
9824fbc67b
@ -73,6 +73,7 @@ mod transform_ops;
|
||||
mod transform_simba;
|
||||
|
||||
mod reflection;
|
||||
mod reflection_alias;
|
||||
|
||||
mod orthographic;
|
||||
mod perspective;
|
||||
@ -104,6 +105,7 @@ pub use self::transform::*;
|
||||
pub use self::transform_alias::*;
|
||||
|
||||
pub use self::reflection::*;
|
||||
pub use self::reflection_alias::*;
|
||||
|
||||
pub use self::orthographic::Orthographic3;
|
||||
pub use self::perspective::Perspective3;
|
||||
|
21
src/geometry/reflection_alias.rs
Normal file
21
src/geometry/reflection_alias.rs
Normal file
@ -0,0 +1,21 @@
|
||||
use crate::base::ArrayStorage;
|
||||
use crate::geometry::Reflection;
|
||||
use crate::Const;
|
||||
|
||||
/// A 1-dimensional reflection.
|
||||
pub type Reflection1<T> = Reflection<T, Const<1>, ArrayStorage<T, 1, 1>>;
|
||||
|
||||
/// A 2-dimensional reflection.
|
||||
pub type Reflection2<T> = Reflection<T, Const<2>, ArrayStorage<T, 2, 1>>;
|
||||
|
||||
/// A 3-dimensional reflection.
|
||||
pub type Reflection3<T> = Reflection<T, Const<3>, ArrayStorage<T, 3, 1>>;
|
||||
|
||||
/// A 4-dimensional reflection.
|
||||
pub type Reflection4<T> = Reflection<T, Const<4>, ArrayStorage<T, 4, 1>>;
|
||||
|
||||
/// A 5-dimensional reflection.
|
||||
pub type Reflection5<T> = Reflection<T, Const<5>, ArrayStorage<T, 5, 1>>;
|
||||
|
||||
/// A 6-dimensional reflection.
|
||||
pub type Reflection6<T> = Reflection<T, Const<6>, ArrayStorage<T, 6, 1>>;
|
Loading…
Reference in New Issue
Block a user