diff --git a/nalgebra-glm/src/aliases.rs b/nalgebra-glm/src/aliases.rs index e09e68e1..4c48a7f3 100644 --- a/nalgebra-glm/src/aliases.rs +++ b/nalgebra-glm/src/aliases.rs @@ -1,8 +1,9 @@ -use na::{MatrixMN, VectorN, Vector1, Vector2, Vector3, Vector4, +use na::{MatrixMN, VectorN, Matrix2, Matrix3, Matrix4, Matrix2x3, Matrix3x2, Matrix4x2, Matrix2x4, Matrix3x4, Matrix4x3, - Quaternion}; + Quaternion, + U1, U2, U3, U4}; /// A matrix with components of type `N`. It has `R` rows, and `C` columns. /// @@ -61,7 +62,7 @@ pub type Qua = Quaternion; /// * [`U64Vec1`](type.U64Vec1.html) /// * [`U8Vec1`](type.U8Vec1.html) /// * [`Vec1`](type.Vec1.html) -pub type TVec1 = Vector1; +pub type TVec1 = TVec; /// A 2D vector with components of type `N`. /// /// # See also: @@ -91,7 +92,7 @@ pub type TVec1 = Vector1; /// * [`U64Vec2`](type.U64Vec2.html) /// * [`U8Vec2`](type.U8Vec2.html) /// * [`Vec2`](type.Vec2.html) -pub type TVec2 = Vector2; +pub type TVec2 = TVec; /// A 3D vector with components of type `N`. /// /// # See also: @@ -121,7 +122,7 @@ pub type TVec2 = Vector2; /// * [`U64Vec3`](type.U64Vec3.html) /// * [`U8Vec3`](type.U8Vec3.html) /// * [`Vec3`](type.Vec3.html) -pub type TVec3 = Vector3; +pub type TVec3 = TVec; /// A 4D vector with components of type `N`. /// /// # See also: @@ -150,115 +151,115 @@ pub type TVec3 = Vector3; /// * [`U64Vec4`](type.U64Vec4.html) /// * [`U8Vec4`](type.U8Vec4.html) /// * [`Vec4`](type.Vec4.html) -pub type TVec4 = Vector4; +pub type TVec4 = TVec; /// A 1D vector with boolean components. -pub type BVec1 = Vector1; +pub type BVec1 = TVec1; /// A 2D vector with boolean components. -pub type BVec2 = Vector2; +pub type BVec2 = TVec2; /// A 3D vector with boolean components. -pub type BVec3 = Vector3; +pub type BVec3 = TVec3; /// A 4D vector with boolean components. -pub type BVec4 = Vector4; +pub type BVec4 = TVec4; /// A 1D vector with `f64` components. -pub type DVec1 = Vector1; +pub type DVec1 = TVec1; /// A 2D vector with `f64` components. -pub type DVec2 = Vector2; +pub type DVec2 = TVec2; /// A 3D vector with `f64` components. -pub type DVec3 = Vector3; +pub type DVec3 = TVec3; /// A 4D vector with `f64` components. -pub type DVec4 = Vector4; +pub type DVec4 = TVec4; /// A 1D vector with `i32` components. -pub type IVec1 = Vector1; +pub type IVec1 = TVec1; /// A 2D vector with `i32` components. -pub type IVec2 = Vector2; +pub type IVec2 = TVec2; /// A 3D vector with `i32` components. -pub type IVec3 = Vector3; +pub type IVec3 = TVec3; /// A 4D vector with `i32` components. -pub type IVec4 = Vector4; +pub type IVec4 = TVec4; /// A 1D vector with `u32` components. -pub type UVec1 = Vector1; +pub type UVec1 = TVec1; /// A 2D vector with `u32` components. -pub type UVec2 = Vector2; +pub type UVec2 = TVec2; /// A 3D vector with `u32` components. -pub type UVec3 = Vector3; +pub type UVec3 = TVec3; /// A 4D vector with `u32` components. -pub type UVec4 = Vector4; +pub type UVec4 = TVec4; /// A 1D vector with `f32` components. -pub type Vec1 = Vector1; +pub type Vec1 = TVec1; /// A 2D vector with `f32` components. -pub type Vec2 = Vector2; +pub type Vec2 = TVec2; /// A 3D vector with `f32` components. -pub type Vec3 = Vector3; +pub type Vec3 = TVec3; /// A 4D vector with `f32` components. -pub type Vec4 = Vector4; +pub type Vec4 = TVec4; /// A 1D vector with `u64` components. -pub type U64Vec1 = Vector1; +pub type U64Vec1 = TVec1; /// A 2D vector with `u64` components. -pub type U64Vec2 = Vector2; +pub type U64Vec2 = TVec2; /// A 3D vector with `u64` components. -pub type U64Vec3 = Vector3; +pub type U64Vec3 = TVec3; /// A 4D vector with `u64` components. -pub type U64Vec4 = Vector4; +pub type U64Vec4 = TVec4; /// A 1D vector with `i64` components. -pub type I64Vec1 = Vector1; +pub type I64Vec1 = TVec1; /// A 2D vector with `i64` components. -pub type I64Vec2 = Vector2; +pub type I64Vec2 = TVec2; /// A 3D vector with `i64` components. -pub type I64Vec3 = Vector3; +pub type I64Vec3 = TVec3; /// A 4D vector with `i64` components. -pub type I64Vec4 = Vector4; +pub type I64Vec4 = TVec4; /// A 1D vector with `u32` components. -pub type U32Vec1 = Vector1; +pub type U32Vec1 = TVec1; /// A 2D vector with `u32` components. -pub type U32Vec2 = Vector2; +pub type U32Vec2 = TVec2; /// A 3D vector with `u32` components. -pub type U32Vec3 = Vector3; +pub type U32Vec3 = TVec3; /// A 4D vector with `u32` components. -pub type U32Vec4 = Vector4; +pub type U32Vec4 = TVec4; /// A 1D vector with `i32` components. -pub type I32Vec1 = Vector1; +pub type I32Vec1 = TVec1; /// A 2D vector with `i32` components. -pub type I32Vec2 = Vector2; +pub type I32Vec2 = TVec2; /// A 3D vector with `i32` components. -pub type I32Vec3 = Vector3; +pub type I32Vec3 = TVec3; /// A 4D vector with `i32` components. -pub type I32Vec4 = Vector4; +pub type I32Vec4 = TVec4; /// A 1D vector with `u16` components. -pub type U16Vec1 = Vector1; +pub type U16Vec1 = TVec1; /// A 2D vector with `u16` components. -pub type U16Vec2 = Vector2; +pub type U16Vec2 = TVec2; /// A 3D vector with `u16` components. -pub type U16Vec3 = Vector3; +pub type U16Vec3 = TVec3; /// A 4D vector with `u16` components. -pub type U16Vec4 = Vector4; +pub type U16Vec4 = TVec4; /// A 1D vector with `i16` components. -pub type I16Vec1 = Vector1; +pub type I16Vec1 = TVec1; /// A 2D vector with `i16` components. -pub type I16Vec2 = Vector2; +pub type I16Vec2 = TVec2; /// A 3D vector with `i16` components. -pub type I16Vec3 = Vector3; +pub type I16Vec3 = TVec3; /// A 4D vector with `i16` components. -pub type I16Vec4 = Vector4; +pub type I16Vec4 = TVec4; /// A 1D vector with `u8` components. -pub type U8Vec1 = Vector1; +pub type U8Vec1 = TVec1; /// A 2D vector with `u8` components. -pub type U8Vec2 = Vector2; +pub type U8Vec2 = TVec2; /// A 3D vector with `u8` components. -pub type U8Vec3 = Vector3; +pub type U8Vec3 = TVec3; /// A 4D vector with `u8` components. -pub type U8Vec4 = Vector4; +pub type U8Vec4 = TVec4; /// A 1D vector with `i8` components. -pub type I8Vec1 = Vector1; +pub type I8Vec1 = TVec1; /// A 2D vector with `i8` components. -pub type I8Vec2 = Vector2; +pub type I8Vec2 = TVec2; /// A 3D vector with `i8` components. -pub type I8Vec3 = Vector3; +pub type I8Vec3 = TVec3; /// A 4D vector with `i8` components. -pub type I8Vec4 = Vector4; +pub type I8Vec4 = TVec4; /// A 2x2 matrix with components of type `N`. @@ -335,6 +336,6 @@ pub type Mat4x4 = Matrix4; pub type Mat4 = Matrix4; /// A quaternion with f32 components. -pub type Quat = Quaternion; +pub type Quat = Qua; /// A quaternion with f64 components. -pub type DQuat = Quaternion; +pub type DQuat = Qua;