Update to the last Rust: remove the float type.

This commit is contained in:
Sébastien Crozet 2013-10-02 11:52:10 +02:00
parent f17ed215a0
commit a54c42229b
9 changed files with 10 additions and 144 deletions

View File

@ -11,9 +11,11 @@ use mat::{Mat2, Mat3};
#[path = "../metal.rs"] #[path = "../metal.rs"]
mod metal; mod metal;
/// Matrix wrapper representing rotation matrix. It is built uppon another matrix and ensures (at /// Matrix wrapper representing rotation matrix.
/// the type-level) that it will always represent a rotation. Rotation matrices have some ///
/// properties useful for performances, like the fact that the inversion is simply a transposition. /// It is built uppon another matrix and ensures (at the type-level) that it will always represent
/// a rotation. Rotation matrices have some properties useful for performances, like the fact that
/// the inversion is simply a transposition.
#[deriving(Eq, ToStr, Clone)] #[deriving(Eq, ToStr, Clone)]
pub struct Rotmat<M> { pub struct Rotmat<M> {
priv submat: M priv submat: M

View File

@ -11,6 +11,7 @@ use vec::{Vec2, Vec3, Vec2MulRhs, Vec3MulRhs};
use mat::Mat3; use mat::Mat3;
/// Matrix-Vector wrapper used to represent a matrix multiplication followed by a translation. /// Matrix-Vector wrapper used to represent a matrix multiplication followed by a translation.
///
/// Usually, a matrix in homogeneous coordinate is used to be able to apply an affine transform with /// Usually, a matrix in homogeneous coordinate is used to be able to apply an affine transform with
/// a translation to a vector. This is weird because it makes a `n`-dimentional transformation be /// a translation to a vector. This is weird because it makes a `n`-dimentional transformation be
/// an `n + 1`-matrix. Using the `Transform` wrapper avoid homogeneous coordinates by having the /// an `n + 1`-matrix. Using the `Transform` wrapper avoid homogeneous coordinates by having the
@ -78,8 +79,8 @@ impl<N: Clone + Num + Algebraic> Transform<Vec3<N>, Rotmat<Mat3<N>>> {
/// # Arguments /// # Arguments
/// * eye - The new translation of the transformation. /// * eye - The new translation of the transformation.
/// * at - The point to look at. `at - eye` is the direction the matrix `x` axis will be /// * at - The point to look at. `at - eye` is the direction the matrix `x` axis will be
/// aligned with /// aligned with.
/// * up - Vector pointing `up`. The only requirement of this parameter is to not be colinear /// * up - Vector pointing up. The only requirement of this parameter is to not be colinear
/// with `at`. Non-colinearity is not checked. /// with `at`. Non-colinearity is not checked.
pub fn look_at(&mut self, eye: &Vec3<N>, at: &Vec3<N>, up: &Vec3<N>) { pub fn look_at(&mut self, eye: &Vec3<N>, at: &Vec3<N>, up: &Vec3<N>) {
self.submat.look_at(&(*at - *eye), up); self.submat.look_at(&(*at - *eye), up);

View File

@ -549,7 +549,6 @@ scalar_mul_impl!(i64)
scalar_mul_impl!(i32) scalar_mul_impl!(i32)
scalar_mul_impl!(i16) scalar_mul_impl!(i16)
scalar_mul_impl!(i8) scalar_mul_impl!(i8)
scalar_mul_impl!(float)
scalar_mul_impl!(uint) scalar_mul_impl!(uint)
scalar_mul_impl!(int) scalar_mul_impl!(int)
@ -563,7 +562,6 @@ scalar_div_impl!(i64)
scalar_div_impl!(i32) scalar_div_impl!(i32)
scalar_div_impl!(i16) scalar_div_impl!(i16)
scalar_div_impl!(i8) scalar_div_impl!(i8)
scalar_div_impl!(float)
scalar_div_impl!(uint) scalar_div_impl!(uint)
scalar_div_impl!(int) scalar_div_impl!(int)
@ -577,7 +575,6 @@ scalar_add_impl!(i64)
scalar_add_impl!(i32) scalar_add_impl!(i32)
scalar_add_impl!(i16) scalar_add_impl!(i16)
scalar_add_impl!(i8) scalar_add_impl!(i8)
scalar_add_impl!(float)
scalar_add_impl!(uint) scalar_add_impl!(uint)
scalar_add_impl!(int) scalar_add_impl!(int)
@ -591,7 +588,6 @@ scalar_sub_impl!(i64)
scalar_sub_impl!(i32) scalar_sub_impl!(i32)
scalar_sub_impl!(i16) scalar_sub_impl!(i16)
scalar_sub_impl!(i8) scalar_sub_impl!(i8)
scalar_sub_impl!(float)
scalar_sub_impl!(uint) scalar_sub_impl!(uint)
scalar_sub_impl!(int) scalar_sub_impl!(int)

View File

@ -408,7 +408,6 @@ scalar_mul_impl!(i64)
scalar_mul_impl!(i32) scalar_mul_impl!(i32)
scalar_mul_impl!(i16) scalar_mul_impl!(i16)
scalar_mul_impl!(i8) scalar_mul_impl!(i8)
scalar_mul_impl!(float)
scalar_mul_impl!(uint) scalar_mul_impl!(uint)
scalar_mul_impl!(int) scalar_mul_impl!(int)
@ -422,7 +421,6 @@ scalar_div_impl!(i64)
scalar_div_impl!(i32) scalar_div_impl!(i32)
scalar_div_impl!(i16) scalar_div_impl!(i16)
scalar_div_impl!(i8) scalar_div_impl!(i8)
scalar_div_impl!(float)
scalar_div_impl!(uint) scalar_div_impl!(uint)
scalar_div_impl!(int) scalar_div_impl!(int)
@ -436,7 +434,6 @@ scalar_add_impl!(i64)
scalar_add_impl!(i32) scalar_add_impl!(i32)
scalar_add_impl!(i16) scalar_add_impl!(i16)
scalar_add_impl!(i8) scalar_add_impl!(i8)
scalar_add_impl!(float)
scalar_add_impl!(uint) scalar_add_impl!(uint)
scalar_add_impl!(int) scalar_add_impl!(int)
@ -450,6 +447,5 @@ scalar_sub_impl!(i64)
scalar_sub_impl!(i32) scalar_sub_impl!(i32)
scalar_sub_impl!(i16) scalar_sub_impl!(i16)
scalar_sub_impl!(i8) scalar_sub_impl!(i8)
scalar_sub_impl!(float)
scalar_sub_impl!(uint) scalar_sub_impl!(uint)
scalar_sub_impl!(int) scalar_sub_impl!(int)

View File

@ -42,6 +42,7 @@ mod spec {
mod mat; mod mat;
mod vec0; mod vec0;
mod vec; mod vec;
// mod complex;
} }
// mod lower_triangular; // mod lower_triangular;
// mod chol; // mod chol;

View File

@ -66,7 +66,6 @@ scalar_mul_impl!(Mat1, u64, Mat1MulRhs, m11)
scalar_mul_impl!(Mat1, u32, Mat1MulRhs, m11) scalar_mul_impl!(Mat1, u32, Mat1MulRhs, m11)
scalar_mul_impl!(Mat1, u16, Mat1MulRhs, m11) scalar_mul_impl!(Mat1, u16, Mat1MulRhs, m11)
scalar_mul_impl!(Mat1, u8, Mat1MulRhs, m11) scalar_mul_impl!(Mat1, u8, Mat1MulRhs, m11)
scalar_mul_impl!(Mat1, float, Mat1MulRhs, m11)
scalar_mul_impl!(Mat1, uint, Mat1MulRhs, m11) scalar_mul_impl!(Mat1, uint, Mat1MulRhs, m11)
scalar_mul_impl!(Mat1, int, Mat1MulRhs, m11) scalar_mul_impl!(Mat1, int, Mat1MulRhs, m11)
@ -80,7 +79,6 @@ scalar_div_impl!(Mat1, u64, Mat1DivRhs, m11)
scalar_div_impl!(Mat1, u32, Mat1DivRhs, m11) scalar_div_impl!(Mat1, u32, Mat1DivRhs, m11)
scalar_div_impl!(Mat1, u16, Mat1DivRhs, m11) scalar_div_impl!(Mat1, u16, Mat1DivRhs, m11)
scalar_div_impl!(Mat1, u8, Mat1DivRhs, m11) scalar_div_impl!(Mat1, u8, Mat1DivRhs, m11)
scalar_div_impl!(Mat1, float, Mat1DivRhs, m11)
scalar_div_impl!(Mat1, uint, Mat1DivRhs, m11) scalar_div_impl!(Mat1, uint, Mat1DivRhs, m11)
scalar_div_impl!(Mat1, int, Mat1DivRhs, m11) scalar_div_impl!(Mat1, int, Mat1DivRhs, m11)
@ -94,7 +92,6 @@ scalar_add_impl!(Mat1, u64, Mat1AddRhs, m11)
scalar_add_impl!(Mat1, u32, Mat1AddRhs, m11) scalar_add_impl!(Mat1, u32, Mat1AddRhs, m11)
scalar_add_impl!(Mat1, u16, Mat1AddRhs, m11) scalar_add_impl!(Mat1, u16, Mat1AddRhs, m11)
scalar_add_impl!(Mat1, u8, Mat1AddRhs, m11) scalar_add_impl!(Mat1, u8, Mat1AddRhs, m11)
scalar_add_impl!(Mat1, float, Mat1AddRhs, m11)
scalar_add_impl!(Mat1, uint, Mat1AddRhs, m11) scalar_add_impl!(Mat1, uint, Mat1AddRhs, m11)
scalar_add_impl!(Mat1, int, Mat1AddRhs, m11) scalar_add_impl!(Mat1, int, Mat1AddRhs, m11)
@ -108,7 +105,6 @@ scalar_sub_impl!(Mat1, u64, Mat1SubRhs, m11)
scalar_sub_impl!(Mat1, u32, Mat1SubRhs, m11) scalar_sub_impl!(Mat1, u32, Mat1SubRhs, m11)
scalar_sub_impl!(Mat1, u16, Mat1SubRhs, m11) scalar_sub_impl!(Mat1, u16, Mat1SubRhs, m11)
scalar_sub_impl!(Mat1, u8, Mat1SubRhs, m11) scalar_sub_impl!(Mat1, u8, Mat1SubRhs, m11)
scalar_sub_impl!(Mat1, float, Mat1SubRhs, m11)
scalar_sub_impl!(Mat1, uint, Mat1SubRhs, m11) scalar_sub_impl!(Mat1, uint, Mat1SubRhs, m11)
scalar_sub_impl!(Mat1, int, Mat1SubRhs, m11) scalar_sub_impl!(Mat1, int, Mat1SubRhs, m11)
@ -164,7 +160,6 @@ scalar_mul_impl!(Mat2, u64, Mat2MulRhs, m11, m12, m21, m22)
scalar_mul_impl!(Mat2, u32, Mat2MulRhs, m11, m12, m21, m22) scalar_mul_impl!(Mat2, u32, Mat2MulRhs, m11, m12, m21, m22)
scalar_mul_impl!(Mat2, u16, Mat2MulRhs, m11, m12, m21, m22) scalar_mul_impl!(Mat2, u16, Mat2MulRhs, m11, m12, m21, m22)
scalar_mul_impl!(Mat2, u8, Mat2MulRhs, m11, m12, m21, m22) scalar_mul_impl!(Mat2, u8, Mat2MulRhs, m11, m12, m21, m22)
scalar_mul_impl!(Mat2, float, Mat2MulRhs, m11, m12, m21, m22)
scalar_mul_impl!(Mat2, uint, Mat2MulRhs, m11, m12, m21, m22) scalar_mul_impl!(Mat2, uint, Mat2MulRhs, m11, m12, m21, m22)
scalar_mul_impl!(Mat2, int, Mat2MulRhs, m11, m12, m21, m22) scalar_mul_impl!(Mat2, int, Mat2MulRhs, m11, m12, m21, m22)
@ -178,7 +173,6 @@ scalar_div_impl!(Mat2, u64, Mat2DivRhs, m11, m12, m21, m22)
scalar_div_impl!(Mat2, u32, Mat2DivRhs, m11, m12, m21, m22) scalar_div_impl!(Mat2, u32, Mat2DivRhs, m11, m12, m21, m22)
scalar_div_impl!(Mat2, u16, Mat2DivRhs, m11, m12, m21, m22) scalar_div_impl!(Mat2, u16, Mat2DivRhs, m11, m12, m21, m22)
scalar_div_impl!(Mat2, u8, Mat2DivRhs, m11, m12, m21, m22) scalar_div_impl!(Mat2, u8, Mat2DivRhs, m11, m12, m21, m22)
scalar_div_impl!(Mat2, float, Mat2DivRhs, m11, m12, m21, m22)
scalar_div_impl!(Mat2, uint, Mat2DivRhs, m11, m12, m21, m22) scalar_div_impl!(Mat2, uint, Mat2DivRhs, m11, m12, m21, m22)
scalar_div_impl!(Mat2, int, Mat2DivRhs, m11, m12, m21, m22) scalar_div_impl!(Mat2, int, Mat2DivRhs, m11, m12, m21, m22)
@ -192,7 +186,6 @@ scalar_add_impl!(Mat2, u64, Mat2AddRhs, m11, m12, m21, m22)
scalar_add_impl!(Mat2, u32, Mat2AddRhs, m11, m12, m21, m22) scalar_add_impl!(Mat2, u32, Mat2AddRhs, m11, m12, m21, m22)
scalar_add_impl!(Mat2, u16, Mat2AddRhs, m11, m12, m21, m22) scalar_add_impl!(Mat2, u16, Mat2AddRhs, m11, m12, m21, m22)
scalar_add_impl!(Mat2, u8, Mat2AddRhs, m11, m12, m21, m22) scalar_add_impl!(Mat2, u8, Mat2AddRhs, m11, m12, m21, m22)
scalar_add_impl!(Mat2, float, Mat2AddRhs, m11, m12, m21, m22)
scalar_add_impl!(Mat2, uint, Mat2AddRhs, m11, m12, m21, m22) scalar_add_impl!(Mat2, uint, Mat2AddRhs, m11, m12, m21, m22)
scalar_add_impl!(Mat2, int, Mat2AddRhs, m11, m12, m21, m22) scalar_add_impl!(Mat2, int, Mat2AddRhs, m11, m12, m21, m22)
@ -206,7 +199,6 @@ scalar_sub_impl!(Mat2, u64, Mat2SubRhs, m11, m12, m21, m22)
scalar_sub_impl!(Mat2, u32, Mat2SubRhs, m11, m12, m21, m22) scalar_sub_impl!(Mat2, u32, Mat2SubRhs, m11, m12, m21, m22)
scalar_sub_impl!(Mat2, u16, Mat2SubRhs, m11, m12, m21, m22) scalar_sub_impl!(Mat2, u16, Mat2SubRhs, m11, m12, m21, m22)
scalar_sub_impl!(Mat2, u8, Mat2SubRhs, m11, m12, m21, m22) scalar_sub_impl!(Mat2, u8, Mat2SubRhs, m11, m12, m21, m22)
scalar_sub_impl!(Mat2, float, Mat2SubRhs, m11, m12, m21, m22)
scalar_sub_impl!(Mat2, uint, Mat2SubRhs, m11, m12, m21, m22) scalar_sub_impl!(Mat2, uint, Mat2SubRhs, m11, m12, m21, m22)
scalar_sub_impl!(Mat2, int, Mat2SubRhs, m11, m12, m21, m22) scalar_sub_impl!(Mat2, int, Mat2SubRhs, m11, m12, m21, m22)
@ -274,7 +266,6 @@ scalar_mul_impl!(Mat3, u64, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32,
scalar_mul_impl!(Mat3, u32, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_mul_impl!(Mat3, u32, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_mul_impl!(Mat3, u16, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_mul_impl!(Mat3, u16, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_mul_impl!(Mat3, u8, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_mul_impl!(Mat3, u8, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_mul_impl!(Mat3, float, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_mul_impl!(Mat3, uint, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_mul_impl!(Mat3, uint, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_mul_impl!(Mat3, int, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_mul_impl!(Mat3, int, Mat3MulRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
@ -288,7 +279,6 @@ scalar_div_impl!(Mat3, u64, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32,
scalar_div_impl!(Mat3, u32, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_div_impl!(Mat3, u32, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_div_impl!(Mat3, u16, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_div_impl!(Mat3, u16, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_div_impl!(Mat3, u8, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_div_impl!(Mat3, u8, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_div_impl!(Mat3, float, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_div_impl!(Mat3, uint, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_div_impl!(Mat3, uint, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_div_impl!(Mat3, int, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_div_impl!(Mat3, int, Mat3DivRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
@ -302,7 +292,6 @@ scalar_add_impl!(Mat3, u64, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32,
scalar_add_impl!(Mat3, u32, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_add_impl!(Mat3, u32, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_add_impl!(Mat3, u16, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_add_impl!(Mat3, u16, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_add_impl!(Mat3, u8, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_add_impl!(Mat3, u8, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_add_impl!(Mat3, float, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_add_impl!(Mat3, uint, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_add_impl!(Mat3, uint, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_add_impl!(Mat3, int, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_add_impl!(Mat3, int, Mat3AddRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
@ -316,7 +305,6 @@ scalar_sub_impl!(Mat3, u64, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32,
scalar_sub_impl!(Mat3, u32, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_sub_impl!(Mat3, u32, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_sub_impl!(Mat3, u16, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_sub_impl!(Mat3, u16, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_sub_impl!(Mat3, u8, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_sub_impl!(Mat3, u8, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_sub_impl!(Mat3, float, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_sub_impl!(Mat3, uint, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_sub_impl!(Mat3, uint, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
scalar_sub_impl!(Mat3, int, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33) scalar_sub_impl!(Mat3, int, Mat3SubRhs, m11, m12, m13, m21, m22, m23, m31, m32, m33)
@ -406,8 +394,6 @@ scalar_mul_impl!(Mat4, u16, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_mul_impl!(Mat4, u8, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_mul_impl!(Mat4, u8, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_mul_impl!(Mat4, float, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44)
scalar_mul_impl!(Mat4, uint, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_mul_impl!(Mat4, uint, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_mul_impl!(Mat4, int, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_mul_impl!(Mat4, int, Mat4MulRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
@ -431,8 +417,6 @@ scalar_div_impl!(Mat4, u16, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_div_impl!(Mat4, u8, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_div_impl!(Mat4, u8, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_div_impl!(Mat4, float, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44)
scalar_div_impl!(Mat4, uint, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_div_impl!(Mat4, uint, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_div_impl!(Mat4, int, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_div_impl!(Mat4, int, Mat4DivRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
@ -456,8 +440,6 @@ scalar_add_impl!(Mat4, u16, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_add_impl!(Mat4, u8, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_add_impl!(Mat4, u8, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_add_impl!(Mat4, float, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44)
scalar_add_impl!(Mat4, uint, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_add_impl!(Mat4, uint, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_add_impl!(Mat4, int, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_add_impl!(Mat4, int, Mat4AddRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
@ -481,8 +463,6 @@ scalar_sub_impl!(Mat4, u16, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_sub_impl!(Mat4, u8, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_sub_impl!(Mat4, u8, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_sub_impl!(Mat4, float, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44)
scalar_sub_impl!(Mat4, uint, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_sub_impl!(Mat4, uint, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
m41, m42, m43, m44) m41, m42, m43, m44)
scalar_sub_impl!(Mat4, int, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, scalar_sub_impl!(Mat4, int, Mat4SubRhs, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34,
@ -596,8 +576,6 @@ scalar_mul_impl!(Mat5, u16, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_mul_impl!(Mat5, u8, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_mul_impl!(Mat5, u8, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_mul_impl!(Mat5, float, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_mul_impl!(Mat5, uint, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_mul_impl!(Mat5, uint, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_mul_impl!(Mat5, int, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_mul_impl!(Mat5, int, Mat5MulRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
@ -623,8 +601,6 @@ scalar_div_impl!(Mat5, u16, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_div_impl!(Mat5, u8, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_div_impl!(Mat5, u8, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_div_impl!(Mat5, float, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_div_impl!(Mat5, uint, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_div_impl!(Mat5, uint, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_div_impl!(Mat5, int, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_div_impl!(Mat5, int, Mat5DivRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
@ -650,8 +626,6 @@ scalar_add_impl!(Mat5, u16, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_add_impl!(Mat5, u8, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_add_impl!(Mat5, u8, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_add_impl!(Mat5, float, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_add_impl!(Mat5, uint, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_add_impl!(Mat5, uint, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_add_impl!(Mat5, int, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_add_impl!(Mat5, int, Mat5AddRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
@ -677,8 +651,6 @@ scalar_sub_impl!(Mat5, u16, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_sub_impl!(Mat5, u8, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_sub_impl!(Mat5, u8, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_sub_impl!(Mat5, float, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_sub_impl!(Mat5, uint, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_sub_impl!(Mat5, uint, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55) m31, m32, m33, m34, m35, m41, m42, m43, m44, m45, m51, m52, m53, m54, m55)
scalar_sub_impl!(Mat5, int, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25, scalar_sub_impl!(Mat5, int, Mat5SubRhs, m11, m12, m13, m14, m15, m21, m22, m23, m24, m25,
@ -784,9 +756,6 @@ scalar_mul_impl!(Mat6, u16, Mat6MulRhs, m11, m12, m13, m14, m15, m16, m21, m22,
scalar_mul_impl!(Mat6, u8, Mat6MulRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_mul_impl!(Mat6, u8, Mat6MulRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
scalar_mul_impl!(Mat6, float, Mat6MulRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66)
scalar_mul_impl!(Mat6, uint, Mat6MulRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_mul_impl!(Mat6, uint, Mat6MulRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
@ -824,9 +793,6 @@ scalar_div_impl!(Mat6, u16, Mat6DivRhs, m11, m12, m13, m14, m15, m16, m21, m22,
scalar_div_impl!(Mat6, u8, Mat6DivRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_div_impl!(Mat6, u8, Mat6DivRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
scalar_div_impl!(Mat6, float, Mat6DivRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66)
scalar_div_impl!(Mat6, uint, Mat6DivRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_div_impl!(Mat6, uint, Mat6DivRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
@ -864,9 +830,6 @@ scalar_add_impl!(Mat6, u16, Mat6AddRhs, m11, m12, m13, m14, m15, m16, m21, m22,
scalar_add_impl!(Mat6, u8, Mat6AddRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_add_impl!(Mat6, u8, Mat6AddRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
scalar_add_impl!(Mat6, float, Mat6AddRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66)
scalar_add_impl!(Mat6, uint, Mat6AddRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_add_impl!(Mat6, uint, Mat6AddRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
@ -904,9 +867,6 @@ scalar_sub_impl!(Mat6, u16, Mat6SubRhs, m11, m12, m13, m14, m15, m16, m21, m22,
scalar_sub_impl!(Mat6, u8, Mat6SubRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_sub_impl!(Mat6, u8, Mat6SubRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)
scalar_sub_impl!(Mat6, float, Mat6SubRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66)
scalar_sub_impl!(Mat6, uint, Mat6SubRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26, scalar_sub_impl!(Mat6, uint, Mat6SubRhs, m11, m12, m13, m14, m15, m16, m21, m22, m23, m24, m25, m26,
m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56, m31, m32, m33, m34, m35, m36, m41, m42, m43, m44, m45, m46, m51, m52, m53, m54, m55, m56,
m61, m62, m63, m64, m65, m66) m61, m62, m63, m64, m65, m66)

View File

@ -17,9 +17,7 @@ pub trait Inv {
fn inplace_inverse(&mut self) -> bool; fn inplace_inverse(&mut self) -> bool;
} }
/// Trait of objects which can be transposed. Note that, for the moment, this /// Trait of objects which can be transposed.
/// does not allow the implementation by non-square matrix (or anything which
/// is not stable by transposition).
pub trait Transpose { pub trait Transpose {
/// Computes the transpose of a matrix. /// Computes the transpose of a matrix.
fn transposed(&self) -> Self; fn transposed(&self) -> Self;

View File

@ -10,213 +10,153 @@ use adaptors::transform::Transform;
pub type Vec1f64 = Vec1<f64>; pub type Vec1f64 = Vec1<f64>;
/// 1-dimensional `f32`-valued vector. /// 1-dimensional `f32`-valued vector.
pub type Vec1f32 = Vec1<f32>; pub type Vec1f32 = Vec1<f32>;
/// 1-dimensional `float`-valued vector.
pub type Vec1flt = Vec1<float>;
/// 1-dimensional `f64`-valued matrix. /// 1-dimensional `f64`-valued matrix.
pub type Mat1f64 = Mat1<f64>; pub type Mat1f64 = Mat1<f64>;
/// 1-dimensional `f32`-valued matrix. /// 1-dimensional `f32`-valued matrix.
pub type Mat1f32 = Mat1<f32>; pub type Mat1f32 = Mat1<f32>;
/// 1-dimensional `float`-valued matrix.
pub type Mat1flt = Mat1<float>;
// /// 1-dimensional `f64`-valued rotation matrix. // /// 1-dimensional `f64`-valued rotation matrix.
// pub type Rot1f64 = Rotmat<Mat1<f64>>; // pub type Rot1f64 = Rotmat<Mat1<f64>>;
// /// 1-dimensional `f32`-valued rotation matrix. // /// 1-dimensional `f32`-valued rotation matrix.
// pub type Rot1f32 = Rotmat<Mat1<f32>>; // pub type Rot1f32 = Rotmat<Mat1<f32>>;
// /// 1-dimensional `float`-valued rotation matrix.
// pub type Rot1flt = Rotmat<Mat1<float>>;
// //
// /// 1-dimensional `f64`-valued isometric transform. // /// 1-dimensional `f64`-valued isometric transform.
// pub type Iso1f64 = Transform<Rot1f64, Vec1f64>; // pub type Iso1f64 = Transform<Rot1f64, Vec1f64>;
// /// 1-dimensional `f32`-valued isometric transform. // /// 1-dimensional `f32`-valued isometric transform.
// pub type Iso1f32 = Transform<Rot1f32, Vec1f32>; // pub type Iso1f32 = Transform<Rot1f32, Vec1f32>;
// /// 1-dimensional `float`-valued isometric transform.
// pub type Iso1flt = Transform<Rot1flt, Vec1flt>;
/// 1-dimensional `f64`-valued general transform. /// 1-dimensional `f64`-valued general transform.
pub type Aff1f64 = Transform<Vec1f64, Mat1f64>; pub type Aff1f64 = Transform<Vec1f64, Mat1f64>;
/// 1-dimensional `f32`-valued general transform. /// 1-dimensional `f32`-valued general transform.
pub type Aff1f32 = Transform<Vec1f32, Mat1f32>; pub type Aff1f32 = Transform<Vec1f32, Mat1f32>;
/// 1-dimensional `float`-valued general transform.
pub type Aff1flt = Transform<Vec1flt, Mat1flt>;
// 2D // 2D
/// 2-dimensional `f64`-valued vector. /// 2-dimensional `f64`-valued vector.
pub type Vec2f64 = Vec2<f64>; pub type Vec2f64 = Vec2<f64>;
/// 2-dimensional `f32`-valued vector. /// 2-dimensional `f32`-valued vector.
pub type Vec2f32 = Vec2<f32>; pub type Vec2f32 = Vec2<f32>;
/// 2-dimensional `float`-valued vector.
pub type Vec2flt = Vec2<float>;
/// 2-dimensional `f64`-valued matrix. /// 2-dimensional `f64`-valued matrix.
pub type Mat2f64 = Mat2<f64>; pub type Mat2f64 = Mat2<f64>;
/// 2-dimensional `f32`-valued matrix. /// 2-dimensional `f32`-valued matrix.
pub type Mat2f32 = Mat2<f32>; pub type Mat2f32 = Mat2<f32>;
/// 2-dimensional `float`-valued matrix.
pub type Mat2flt = Mat2<float>;
/// 2-dimensional `f64`-valued rotation matrix. /// 2-dimensional `f64`-valued rotation matrix.
pub type Rot2f64 = Rotmat<Mat2<f64>>; pub type Rot2f64 = Rotmat<Mat2<f64>>;
/// 2-dimensional `f32`-valued rotation matrix. /// 2-dimensional `f32`-valued rotation matrix.
pub type Rot2f32 = Rotmat<Mat2<f32>>; pub type Rot2f32 = Rotmat<Mat2<f32>>;
/// 2-dimensional `float`-valued rotation matrix.
pub type Rot2flt = Rotmat<Mat2<float>>;
/// 2-dimensional `f64`-valued isometric transform. /// 2-dimensional `f64`-valued isometric transform.
pub type Iso2f64 = Transform<Vec2f64, Rot2f64>; pub type Iso2f64 = Transform<Vec2f64, Rot2f64>;
/// 2-dimensional `f32`-valued isometric transform. /// 2-dimensional `f32`-valued isometric transform.
pub type Iso2f32 = Transform<Vec2f32, Rot2f32>; pub type Iso2f32 = Transform<Vec2f32, Rot2f32>;
/// 2-dimensional `float`-valued isometric transform.
pub type Iso2flt = Transform<Vec2flt, Rot2flt>;
/// 2-dimensional `f64`-valued general transform. /// 2-dimensional `f64`-valued general transform.
pub type Aff2f64 = Transform<Vec2f64, Mat2f64>; pub type Aff2f64 = Transform<Vec2f64, Mat2f64>;
/// 2-dimensional `f32`-valued general transform. /// 2-dimensional `f32`-valued general transform.
pub type Aff2f32 = Transform<Vec2f32, Mat2f32>; pub type Aff2f32 = Transform<Vec2f32, Mat2f32>;
/// 2-dimensional `float`-valued general transform.
pub type Aff2flt = Transform<Vec2flt, Mat2flt>;
// 3D // 3D
/// 3-dimensional `f64`-valued vector. /// 3-dimensional `f64`-valued vector.
pub type Vec3f64 = Vec3<f64>; pub type Vec3f64 = Vec3<f64>;
/// 3-dimensional `f32`-valued vector. /// 3-dimensional `f32`-valued vector.
pub type Vec3f32 = Vec3<f32>; pub type Vec3f32 = Vec3<f32>;
/// 3-dimensional `float`-valued vector.
pub type Vec3flt = Vec3<float>;
/// 3-dimensional `f64`-valued matrix. /// 3-dimensional `f64`-valued matrix.
pub type Mat3f64 = Mat3<f64>; pub type Mat3f64 = Mat3<f64>;
/// 3-dimensional `f32`-valued matrix. /// 3-dimensional `f32`-valued matrix.
pub type Mat3f32 = Mat3<f32>; pub type Mat3f32 = Mat3<f32>;
/// 3-dimensional `float`-valued matrix.
pub type Mat3flt = Mat3<float>;
/// 3-dimensional `f64`-valued rotation matrix. /// 3-dimensional `f64`-valued rotation matrix.
pub type Rot3f64 = Rotmat<Mat3<f64>>; pub type Rot3f64 = Rotmat<Mat3<f64>>;
/// 3-dimensional `f32`-valued rotation matrix. /// 3-dimensional `f32`-valued rotation matrix.
pub type Rot3f32 = Rotmat<Mat3<f32>>; pub type Rot3f32 = Rotmat<Mat3<f32>>;
/// 3-dimensional `float`-valued rotation matrix.
pub type Rot3flt = Rotmat<Mat3<float>>;
/// 3-dimensional `f64`-valued isometric transform. /// 3-dimensional `f64`-valued isometric transform.
pub type Iso3f64 = Transform<Vec3f64, Rot3f64>; pub type Iso3f64 = Transform<Vec3f64, Rot3f64>;
/// 3-dimensional `f32`-valued isometric transform. /// 3-dimensional `f32`-valued isometric transform.
pub type Iso3f32 = Transform<Vec3f32, Rot3f32>; pub type Iso3f32 = Transform<Vec3f32, Rot3f32>;
/// 3-dimensional `float`-valued isometric transform.
pub type Iso3flt = Transform<Vec3flt, Rot3flt>;
/// 3-dimensional `f64`-valued general transform. /// 3-dimensional `f64`-valued general transform.
pub type Aff3f64 = Transform<Vec3f64, Mat3f64>; pub type Aff3f64 = Transform<Vec3f64, Mat3f64>;
/// 3-dimensional `f32`-valued general transform. /// 3-dimensional `f32`-valued general transform.
pub type Aff3f32 = Transform<Vec3f32, Mat3f32>; pub type Aff3f32 = Transform<Vec3f32, Mat3f32>;
/// 3-dimensional `float`-valued general transform.
pub type Aff3flt = Transform<Vec3flt, Mat3flt>;
// 4D // 4D
/// 4-dimensional `f64`-valued vector. /// 4-dimensional `f64`-valued vector.
pub type Vec4f64 = Vec4<f64>; pub type Vec4f64 = Vec4<f64>;
/// 4-dimensional `f32`-valued vector. /// 4-dimensional `f32`-valued vector.
pub type Vec4f32 = Vec4<f32>; pub type Vec4f32 = Vec4<f32>;
/// 4-dimensional `float`-valued vector.
pub type Vec4flt = Vec4<float>;
/// 4-dimensional `f64`-valued matrix. /// 4-dimensional `f64`-valued matrix.
pub type Mat4f64 = Mat4<f64>; pub type Mat4f64 = Mat4<f64>;
/// 4-dimensional `f32`-valued matrix. /// 4-dimensional `f32`-valued matrix.
pub type Mat4f32 = Mat4<f32>; pub type Mat4f32 = Mat4<f32>;
/// 4-dimensional `float`-valued matrix.
pub type Mat4flt = Mat4<float>;
// /// 4-dimensional `f64`-valued rotation matrix. // /// 4-dimensional `f64`-valued rotation matrix.
// pub type Rot4f64 = Rotmat<Mat4<f64>>; // pub type Rot4f64 = Rotmat<Mat4<f64>>;
// /// 4-dimensional `f32`-valued rotation matrix. // /// 4-dimensional `f32`-valued rotation matrix.
// pub type Rot4f32 = Rotmat<Mat4<f32>>; // pub type Rot4f32 = Rotmat<Mat4<f32>>;
// /// 4-dimensional `float`-valued rotation matrix.
// pub type Rot4flt = Rotmat<Mat4<float>>;
// //
// /// 4-dimensional `f64`-valued isometric transform. // /// 4-dimensional `f64`-valued isometric transform.
// pub type Iso4f64 = Transform<Rot4f64, Vec4f64>; // pub type Iso4f64 = Transform<Rot4f64, Vec4f64>;
// /// 4-dimensional `f32`-valued isometric transform. // /// 4-dimensional `f32`-valued isometric transform.
// pub type Iso4f32 = Transform<Rot4f32, Vec4f32>; // pub type Iso4f32 = Transform<Rot4f32, Vec4f32>;
// /// 4-dimensional `float`-valued isometric transform.
// pub type Iso4flt = Transform<Rot4flt, Vec4flt>;
/// 4-dimensional `f64`-valued general transform. /// 4-dimensional `f64`-valued general transform.
pub type Aff4f64 = Transform<Vec4f64, Mat4f64>; pub type Aff4f64 = Transform<Vec4f64, Mat4f64>;
/// 4-dimensional `f32`-valued general transform. /// 4-dimensional `f32`-valued general transform.
pub type Aff4f32 = Transform<Vec4f32, Mat4f32>; pub type Aff4f32 = Transform<Vec4f32, Mat4f32>;
/// 4-dimensional `float`-valued general transform.
pub type Aff4flt = Transform<Vec4flt, Mat4flt>;
// 5D // 5D
/// 5-dimensional `f64`-valued vector. /// 5-dimensional `f64`-valued vector.
pub type Vec5f64 = Vec5<f64>; pub type Vec5f64 = Vec5<f64>;
/// 5-dimensional `f32`-valued vector. /// 5-dimensional `f32`-valued vector.
pub type Vec5f32 = Vec5<f32>; pub type Vec5f32 = Vec5<f32>;
/// 5-dimensional `float`-valued vector.
pub type Vec5flt = Vec5<float>;
/// 5-dimensional `f64`-valued matrix. /// 5-dimensional `f64`-valued matrix.
pub type Mat5f64 = Mat5<f64>; pub type Mat5f64 = Mat5<f64>;
/// 5-dimensional `f32`-valued matrix. /// 5-dimensional `f32`-valued matrix.
pub type Mat5f32 = Mat5<f32>; pub type Mat5f32 = Mat5<f32>;
/// 5-dimensional `float`-valued matrix.
pub type Mat5flt = Mat5<float>;
// /// 5-dimensional `f64`-valued rotation matrix. // /// 5-dimensional `f64`-valued rotation matrix.
// pub type Rot5f64 = Rotmat<Mat5<f64>>; // pub type Rot5f64 = Rotmat<Mat5<f64>>;
// /// 5-dimensional `f32`-valued rotation matrix. // /// 5-dimensional `f32`-valued rotation matrix.
// pub type Rot5f32 = Rotmat<Mat5<f32>>; // pub type Rot5f32 = Rotmat<Mat5<f32>>;
// /// 5-dimensional `float`-valued rotation matrix.
// pub type Rot5flt = Rotmat<Mat5<float>>;
// //
// /// 5-dimensional `f64`-valued isometric transform. // /// 5-dimensional `f64`-valued isometric transform.
// pub type Iso5f64 = Transform<Rot5f64, Vec5f64>; // pub type Iso5f64 = Transform<Rot5f64, Vec5f64>;
// /// 5-dimensional `f32`-valued isometric transform. // /// 5-dimensional `f32`-valued isometric transform.
// pub type Iso5f32 = Transform<Rot5f32, Vec5f32>; // pub type Iso5f32 = Transform<Rot5f32, Vec5f32>;
// /// 5-dimensional `float`-valued isometric transform.
// pub type Iso5flt = Transform<Rot5flt, Vec5flt>;
/// 5-dimensional `f64`-valued general transform. /// 5-dimensional `f64`-valued general transform.
pub type Aff5f64 = Transform<Vec5f64, Mat5f64>; pub type Aff5f64 = Transform<Vec5f64, Mat5f64>;
/// 5-dimensional `f32`-valued general transform. /// 5-dimensional `f32`-valued general transform.
pub type Aff5f32 = Transform<Vec5f32, Mat5f32>; pub type Aff5f32 = Transform<Vec5f32, Mat5f32>;
/// 5-dimensional `float`-valued general transform.
pub type Aff5flt = Transform<Vec5flt, Mat5flt>;
// 6D // 6D
/// 6-dimensional `f64`-valued vector. /// 6-dimensional `f64`-valued vector.
pub type Vec6f64 = Vec6<f64>; pub type Vec6f64 = Vec6<f64>;
/// 6-dimensional `f32`-valued vector. /// 6-dimensional `f32`-valued vector.
pub type Vec6f32 = Vec6<f32>; pub type Vec6f32 = Vec6<f32>;
/// 6-dimensional `float`-valued vector.
pub type Vec6flt = Vec6<float>;
/// 6-dimensional `f64`-valued matrix. /// 6-dimensional `f64`-valued matrix.
pub type Mat6f64 = Mat6<f64>; pub type Mat6f64 = Mat6<f64>;
/// 6-dimensional `f32`-valued matrix. /// 6-dimensional `f32`-valued matrix.
pub type Mat6f32 = Mat6<f32>; pub type Mat6f32 = Mat6<f32>;
/// 6-dimensional `float`-valued matrix.
pub type Mat6flt = Mat6<float>;
// /// 6-dimensional `f64`-valued rotation matrix. // /// 6-dimensional `f64`-valued rotation matrix.
// pub type Rot6f64 = Rotmat<Mat6<f64>>; // pub type Rot6f64 = Rotmat<Mat6<f64>>;
// /// 6-dimensional `f32`-valued rotation matrix. // /// 6-dimensional `f32`-valued rotation matrix.
// pub type Rot6f32 = Rotmat<Mat6<f32>>; // pub type Rot6f32 = Rotmat<Mat6<f32>>;
// /// 6-dimensional `float`-valued rotation matrix.
// pub type Rot6flt = Rotmat<Mat6<float>>;
// //
// /// 6-dimensional `f64`-valued isometric transform. // /// 6-dimensional `f64`-valued isometric transform.
// pub type Iso6f64 = Transform<Rot6f64, Vec6f64>; // pub type Iso6f64 = Transform<Rot6f64, Vec6f64>;
// /// 6-dimensional `f32`-valued isometric transform. // /// 6-dimensional `f32`-valued isometric transform.
// pub type Iso6f32 = Transform<Rot6f32, Vec6f32>; // pub type Iso6f32 = Transform<Rot6f32, Vec6f32>;
// /// 6-dimensional `float`-valued isometric transform.
// pub type Iso6flt = Transform<Rot6flt, Vec6flt>;
/// 6-dimensional `f64`-valued general transform. /// 6-dimensional `f64`-valued general transform.
pub type Aff6f64 = Transform<Vec6f64, Mat6f64>; pub type Aff6f64 = Transform<Vec6f64, Mat6f64>;
/// 6-dimensional `f32`-valued general transform. /// 6-dimensional `f32`-valued general transform.
pub type Aff6f32 = Transform<Vec6f32, Mat6f32>; pub type Aff6f32 = Transform<Vec6f32, Mat6f32>;
/// 6-dimensional `float`-valued general transform.
pub type Aff6flt = Transform<Vec6flt, Mat6flt>;

View File

@ -67,7 +67,6 @@ scalar_mul_impl!(Vec1, i64, Vec1MulRhs, x)
scalar_mul_impl!(Vec1, i32, Vec1MulRhs, x) scalar_mul_impl!(Vec1, i32, Vec1MulRhs, x)
scalar_mul_impl!(Vec1, i16, Vec1MulRhs, x) scalar_mul_impl!(Vec1, i16, Vec1MulRhs, x)
scalar_mul_impl!(Vec1, i8, Vec1MulRhs, x) scalar_mul_impl!(Vec1, i8, Vec1MulRhs, x)
scalar_mul_impl!(Vec1, float, Vec1MulRhs, x)
scalar_mul_impl!(Vec1, uint, Vec1MulRhs, x) scalar_mul_impl!(Vec1, uint, Vec1MulRhs, x)
scalar_mul_impl!(Vec1, int, Vec1MulRhs, x) scalar_mul_impl!(Vec1, int, Vec1MulRhs, x)
scalar_div_impl!(Vec1, f64, Vec1DivRhs, x) scalar_div_impl!(Vec1, f64, Vec1DivRhs, x)
@ -80,7 +79,6 @@ scalar_div_impl!(Vec1, i64, Vec1DivRhs, x)
scalar_div_impl!(Vec1, i32, Vec1DivRhs, x) scalar_div_impl!(Vec1, i32, Vec1DivRhs, x)
scalar_div_impl!(Vec1, i16, Vec1DivRhs, x) scalar_div_impl!(Vec1, i16, Vec1DivRhs, x)
scalar_div_impl!(Vec1, i8, Vec1DivRhs, x) scalar_div_impl!(Vec1, i8, Vec1DivRhs, x)
scalar_div_impl!(Vec1, float, Vec1DivRhs, x)
scalar_div_impl!(Vec1, uint, Vec1DivRhs, x) scalar_div_impl!(Vec1, uint, Vec1DivRhs, x)
scalar_div_impl!(Vec1, int, Vec1DivRhs, x) scalar_div_impl!(Vec1, int, Vec1DivRhs, x)
scalar_add_impl!(Vec1, f64, Vec1AddRhs, x) scalar_add_impl!(Vec1, f64, Vec1AddRhs, x)
@ -93,7 +91,6 @@ scalar_add_impl!(Vec1, i64, Vec1AddRhs, x)
scalar_add_impl!(Vec1, i32, Vec1AddRhs, x) scalar_add_impl!(Vec1, i32, Vec1AddRhs, x)
scalar_add_impl!(Vec1, i16, Vec1AddRhs, x) scalar_add_impl!(Vec1, i16, Vec1AddRhs, x)
scalar_add_impl!(Vec1, i8, Vec1AddRhs, x) scalar_add_impl!(Vec1, i8, Vec1AddRhs, x)
scalar_add_impl!(Vec1, float, Vec1AddRhs, x)
scalar_add_impl!(Vec1, uint, Vec1AddRhs, x) scalar_add_impl!(Vec1, uint, Vec1AddRhs, x)
scalar_add_impl!(Vec1, int, Vec1AddRhs, x) scalar_add_impl!(Vec1, int, Vec1AddRhs, x)
scalar_sub_impl!(Vec1, f64, Vec1SubRhs, x) scalar_sub_impl!(Vec1, f64, Vec1SubRhs, x)
@ -106,7 +103,6 @@ scalar_sub_impl!(Vec1, i64, Vec1SubRhs, x)
scalar_sub_impl!(Vec1, i32, Vec1SubRhs, x) scalar_sub_impl!(Vec1, i32, Vec1SubRhs, x)
scalar_sub_impl!(Vec1, i16, Vec1SubRhs, x) scalar_sub_impl!(Vec1, i16, Vec1SubRhs, x)
scalar_sub_impl!(Vec1, i8, Vec1SubRhs, x) scalar_sub_impl!(Vec1, i8, Vec1SubRhs, x)
scalar_sub_impl!(Vec1, float, Vec1SubRhs, x)
scalar_sub_impl!(Vec1, uint, Vec1SubRhs, x) scalar_sub_impl!(Vec1, uint, Vec1SubRhs, x)
scalar_sub_impl!(Vec1, int, Vec1SubRhs, x) scalar_sub_impl!(Vec1, int, Vec1SubRhs, x)
translation_impl!(Vec1) translation_impl!(Vec1)
@ -166,7 +162,6 @@ scalar_mul_impl!(Vec2, i64, Vec2MulRhs, x, y)
scalar_mul_impl!(Vec2, i32, Vec2MulRhs, x, y) scalar_mul_impl!(Vec2, i32, Vec2MulRhs, x, y)
scalar_mul_impl!(Vec2, i16, Vec2MulRhs, x, y) scalar_mul_impl!(Vec2, i16, Vec2MulRhs, x, y)
scalar_mul_impl!(Vec2, i8, Vec2MulRhs, x, y) scalar_mul_impl!(Vec2, i8, Vec2MulRhs, x, y)
scalar_mul_impl!(Vec2, float, Vec2MulRhs, x, y)
scalar_mul_impl!(Vec2, uint, Vec2MulRhs, x, y) scalar_mul_impl!(Vec2, uint, Vec2MulRhs, x, y)
scalar_mul_impl!(Vec2, int, Vec2MulRhs, x, y) scalar_mul_impl!(Vec2, int, Vec2MulRhs, x, y)
scalar_div_impl!(Vec2, f64, Vec2DivRhs, x, y) scalar_div_impl!(Vec2, f64, Vec2DivRhs, x, y)
@ -179,7 +174,6 @@ scalar_div_impl!(Vec2, i64, Vec2DivRhs, x, y)
scalar_div_impl!(Vec2, i32, Vec2DivRhs, x, y) scalar_div_impl!(Vec2, i32, Vec2DivRhs, x, y)
scalar_div_impl!(Vec2, i16, Vec2DivRhs, x, y) scalar_div_impl!(Vec2, i16, Vec2DivRhs, x, y)
scalar_div_impl!(Vec2, i8, Vec2DivRhs, x, y) scalar_div_impl!(Vec2, i8, Vec2DivRhs, x, y)
scalar_div_impl!(Vec2, float, Vec2DivRhs, x, y)
scalar_div_impl!(Vec2, uint, Vec2DivRhs, x, y) scalar_div_impl!(Vec2, uint, Vec2DivRhs, x, y)
scalar_div_impl!(Vec2, int, Vec2DivRhs, x, y) scalar_div_impl!(Vec2, int, Vec2DivRhs, x, y)
scalar_add_impl!(Vec2, f64, Vec2AddRhs, x, y) scalar_add_impl!(Vec2, f64, Vec2AddRhs, x, y)
@ -192,7 +186,6 @@ scalar_add_impl!(Vec2, i64, Vec2AddRhs, x, y)
scalar_add_impl!(Vec2, i32, Vec2AddRhs, x, y) scalar_add_impl!(Vec2, i32, Vec2AddRhs, x, y)
scalar_add_impl!(Vec2, i16, Vec2AddRhs, x, y) scalar_add_impl!(Vec2, i16, Vec2AddRhs, x, y)
scalar_add_impl!(Vec2, i8, Vec2AddRhs, x, y) scalar_add_impl!(Vec2, i8, Vec2AddRhs, x, y)
scalar_add_impl!(Vec2, float, Vec2AddRhs, x, y)
scalar_add_impl!(Vec2, uint, Vec2AddRhs, x, y) scalar_add_impl!(Vec2, uint, Vec2AddRhs, x, y)
scalar_add_impl!(Vec2, int, Vec2AddRhs, x, y) scalar_add_impl!(Vec2, int, Vec2AddRhs, x, y)
scalar_sub_impl!(Vec2, f64, Vec2SubRhs, x, y) scalar_sub_impl!(Vec2, f64, Vec2SubRhs, x, y)
@ -205,7 +198,6 @@ scalar_sub_impl!(Vec2, i64, Vec2SubRhs, x, y)
scalar_sub_impl!(Vec2, i32, Vec2SubRhs, x, y) scalar_sub_impl!(Vec2, i32, Vec2SubRhs, x, y)
scalar_sub_impl!(Vec2, i16, Vec2SubRhs, x, y) scalar_sub_impl!(Vec2, i16, Vec2SubRhs, x, y)
scalar_sub_impl!(Vec2, i8, Vec2SubRhs, x, y) scalar_sub_impl!(Vec2, i8, Vec2SubRhs, x, y)
scalar_sub_impl!(Vec2, float, Vec2SubRhs, x, y)
scalar_sub_impl!(Vec2, uint, Vec2SubRhs, x, y) scalar_sub_impl!(Vec2, uint, Vec2SubRhs, x, y)
scalar_sub_impl!(Vec2, int, Vec2SubRhs, x, y) scalar_sub_impl!(Vec2, int, Vec2SubRhs, x, y)
translation_impl!(Vec2) translation_impl!(Vec2)
@ -267,7 +259,6 @@ scalar_mul_impl!(Vec3, i64, Vec3MulRhs, x, y, z)
scalar_mul_impl!(Vec3, i32, Vec3MulRhs, x, y, z) scalar_mul_impl!(Vec3, i32, Vec3MulRhs, x, y, z)
scalar_mul_impl!(Vec3, i16, Vec3MulRhs, x, y, z) scalar_mul_impl!(Vec3, i16, Vec3MulRhs, x, y, z)
scalar_mul_impl!(Vec3, i8, Vec3MulRhs, x, y, z) scalar_mul_impl!(Vec3, i8, Vec3MulRhs, x, y, z)
scalar_mul_impl!(Vec3, float, Vec3MulRhs, x, y, z)
scalar_mul_impl!(Vec3, uint, Vec3MulRhs, x, y, z) scalar_mul_impl!(Vec3, uint, Vec3MulRhs, x, y, z)
scalar_mul_impl!(Vec3, int, Vec3MulRhs, x, y, z) scalar_mul_impl!(Vec3, int, Vec3MulRhs, x, y, z)
@ -281,7 +272,6 @@ scalar_div_impl!(Vec3, i64, Vec3DivRhs, x, y, z)
scalar_div_impl!(Vec3, i32, Vec3DivRhs, x, y, z) scalar_div_impl!(Vec3, i32, Vec3DivRhs, x, y, z)
scalar_div_impl!(Vec3, i16, Vec3DivRhs, x, y, z) scalar_div_impl!(Vec3, i16, Vec3DivRhs, x, y, z)
scalar_div_impl!(Vec3, i8, Vec3DivRhs, x, y, z) scalar_div_impl!(Vec3, i8, Vec3DivRhs, x, y, z)
scalar_div_impl!(Vec3, float, Vec3DivRhs, x, y, z)
scalar_div_impl!(Vec3, uint, Vec3DivRhs, x, y, z) scalar_div_impl!(Vec3, uint, Vec3DivRhs, x, y, z)
scalar_div_impl!(Vec3, int, Vec3DivRhs, x, y, z) scalar_div_impl!(Vec3, int, Vec3DivRhs, x, y, z)
@ -295,7 +285,6 @@ scalar_add_impl!(Vec3, i64, Vec3AddRhs, x, y, z)
scalar_add_impl!(Vec3, i32, Vec3AddRhs, x, y, z) scalar_add_impl!(Vec3, i32, Vec3AddRhs, x, y, z)
scalar_add_impl!(Vec3, i16, Vec3AddRhs, x, y, z) scalar_add_impl!(Vec3, i16, Vec3AddRhs, x, y, z)
scalar_add_impl!(Vec3, i8, Vec3AddRhs, x, y, z) scalar_add_impl!(Vec3, i8, Vec3AddRhs, x, y, z)
scalar_add_impl!(Vec3, float, Vec3AddRhs, x, y, z)
scalar_add_impl!(Vec3, uint, Vec3AddRhs, x, y, z) scalar_add_impl!(Vec3, uint, Vec3AddRhs, x, y, z)
scalar_add_impl!(Vec3, int, Vec3AddRhs, x, y, z) scalar_add_impl!(Vec3, int, Vec3AddRhs, x, y, z)
@ -309,7 +298,6 @@ scalar_sub_impl!(Vec3, i64, Vec3SubRhs, x, y, z)
scalar_sub_impl!(Vec3, i32, Vec3SubRhs, x, y, z) scalar_sub_impl!(Vec3, i32, Vec3SubRhs, x, y, z)
scalar_sub_impl!(Vec3, i16, Vec3SubRhs, x, y, z) scalar_sub_impl!(Vec3, i16, Vec3SubRhs, x, y, z)
scalar_sub_impl!(Vec3, i8, Vec3SubRhs, x, y, z) scalar_sub_impl!(Vec3, i8, Vec3SubRhs, x, y, z)
scalar_sub_impl!(Vec3, float, Vec3SubRhs, x, y, z)
scalar_sub_impl!(Vec3, uint, Vec3SubRhs, x, y, z) scalar_sub_impl!(Vec3, uint, Vec3SubRhs, x, y, z)
scalar_sub_impl!(Vec3, int, Vec3SubRhs, x, y, z) scalar_sub_impl!(Vec3, int, Vec3SubRhs, x, y, z)
translation_impl!(Vec3) translation_impl!(Vec3)
@ -380,7 +368,6 @@ scalar_mul_impl!(PVec3, i64, PVec3MulRhs, x, y, z)
scalar_mul_impl!(PVec3, i32, PVec3MulRhs, x, y, z) scalar_mul_impl!(PVec3, i32, PVec3MulRhs, x, y, z)
scalar_mul_impl!(PVec3, i16, PVec3MulRhs, x, y, z) scalar_mul_impl!(PVec3, i16, PVec3MulRhs, x, y, z)
scalar_mul_impl!(PVec3, i8, PVec3MulRhs, x, y, z) scalar_mul_impl!(PVec3, i8, PVec3MulRhs, x, y, z)
scalar_mul_impl!(PVec3, float, PVec3MulRhs, x, y, z)
scalar_mul_impl!(PVec3, uint, PVec3MulRhs, x, y, z) scalar_mul_impl!(PVec3, uint, PVec3MulRhs, x, y, z)
scalar_mul_impl!(PVec3, int, PVec3MulRhs, x, y, z) scalar_mul_impl!(PVec3, int, PVec3MulRhs, x, y, z)
scalar_div_impl!(PVec3, f64, PVec3DivRhs, x, y, z) scalar_div_impl!(PVec3, f64, PVec3DivRhs, x, y, z)
@ -393,7 +380,6 @@ scalar_div_impl!(PVec3, i64, PVec3DivRhs, x, y, z)
scalar_div_impl!(PVec3, i32, PVec3DivRhs, x, y, z) scalar_div_impl!(PVec3, i32, PVec3DivRhs, x, y, z)
scalar_div_impl!(PVec3, i16, PVec3DivRhs, x, y, z) scalar_div_impl!(PVec3, i16, PVec3DivRhs, x, y, z)
scalar_div_impl!(PVec3, i8, PVec3DivRhs, x, y, z) scalar_div_impl!(PVec3, i8, PVec3DivRhs, x, y, z)
scalar_div_impl!(PVec3, float, PVec3DivRhs, x, y, z)
scalar_div_impl!(PVec3, uint, PVec3DivRhs, x, y, z) scalar_div_impl!(PVec3, uint, PVec3DivRhs, x, y, z)
scalar_div_impl!(PVec3, int, PVec3DivRhs, x, y, z) scalar_div_impl!(PVec3, int, PVec3DivRhs, x, y, z)
scalar_add_impl!(PVec3, f64, PVec3AddRhs, x, y, z) scalar_add_impl!(PVec3, f64, PVec3AddRhs, x, y, z)
@ -406,7 +392,6 @@ scalar_add_impl!(PVec3, i64, PVec3AddRhs, x, y, z)
scalar_add_impl!(PVec3, i32, PVec3AddRhs, x, y, z) scalar_add_impl!(PVec3, i32, PVec3AddRhs, x, y, z)
scalar_add_impl!(PVec3, i16, PVec3AddRhs, x, y, z) scalar_add_impl!(PVec3, i16, PVec3AddRhs, x, y, z)
scalar_add_impl!(PVec3, i8, PVec3AddRhs, x, y, z) scalar_add_impl!(PVec3, i8, PVec3AddRhs, x, y, z)
scalar_add_impl!(PVec3, float, PVec3AddRhs, x, y, z)
scalar_add_impl!(PVec3, uint, PVec3AddRhs, x, y, z) scalar_add_impl!(PVec3, uint, PVec3AddRhs, x, y, z)
scalar_add_impl!(PVec3, int, PVec3AddRhs, x, y, z) scalar_add_impl!(PVec3, int, PVec3AddRhs, x, y, z)
scalar_sub_impl!(PVec3, f64, PVec3SubRhs, x, y, z) scalar_sub_impl!(PVec3, f64, PVec3SubRhs, x, y, z)
@ -419,7 +404,6 @@ scalar_sub_impl!(PVec3, i64, PVec3SubRhs, x, y, z)
scalar_sub_impl!(PVec3, i32, PVec3SubRhs, x, y, z) scalar_sub_impl!(PVec3, i32, PVec3SubRhs, x, y, z)
scalar_sub_impl!(PVec3, i16, PVec3SubRhs, x, y, z) scalar_sub_impl!(PVec3, i16, PVec3SubRhs, x, y, z)
scalar_sub_impl!(PVec3, i8, PVec3SubRhs, x, y, z) scalar_sub_impl!(PVec3, i8, PVec3SubRhs, x, y, z)
scalar_sub_impl!(PVec3, float, PVec3SubRhs, x, y, z)
scalar_sub_impl!(PVec3, uint, PVec3SubRhs, x, y, z) scalar_sub_impl!(PVec3, uint, PVec3SubRhs, x, y, z)
scalar_sub_impl!(PVec3, int, PVec3SubRhs, x, y, z) scalar_sub_impl!(PVec3, int, PVec3SubRhs, x, y, z)
translation_impl!(PVec3) translation_impl!(PVec3)
@ -485,7 +469,6 @@ scalar_mul_impl!(Vec4, i64, Vec4MulRhs, x, y, z, w)
scalar_mul_impl!(Vec4, i32, Vec4MulRhs, x, y, z, w) scalar_mul_impl!(Vec4, i32, Vec4MulRhs, x, y, z, w)
scalar_mul_impl!(Vec4, i16, Vec4MulRhs, x, y, z, w) scalar_mul_impl!(Vec4, i16, Vec4MulRhs, x, y, z, w)
scalar_mul_impl!(Vec4, i8, Vec4MulRhs, x, y, z, w) scalar_mul_impl!(Vec4, i8, Vec4MulRhs, x, y, z, w)
scalar_mul_impl!(Vec4, float, Vec4MulRhs, x, y, z, w)
scalar_mul_impl!(Vec4, uint, Vec4MulRhs, x, y, z, w) scalar_mul_impl!(Vec4, uint, Vec4MulRhs, x, y, z, w)
scalar_mul_impl!(Vec4, int, Vec4MulRhs, x, y, z, w) scalar_mul_impl!(Vec4, int, Vec4MulRhs, x, y, z, w)
scalar_div_impl!(Vec4, f64, Vec4DivRhs, x, y, z, w) scalar_div_impl!(Vec4, f64, Vec4DivRhs, x, y, z, w)
@ -498,7 +481,6 @@ scalar_div_impl!(Vec4, i64, Vec4DivRhs, x, y, z, w)
scalar_div_impl!(Vec4, i32, Vec4DivRhs, x, y, z, w) scalar_div_impl!(Vec4, i32, Vec4DivRhs, x, y, z, w)
scalar_div_impl!(Vec4, i16, Vec4DivRhs, x, y, z, w) scalar_div_impl!(Vec4, i16, Vec4DivRhs, x, y, z, w)
scalar_div_impl!(Vec4, i8, Vec4DivRhs, x, y, z, w) scalar_div_impl!(Vec4, i8, Vec4DivRhs, x, y, z, w)
scalar_div_impl!(Vec4, float, Vec4DivRhs, x, y, z, w)
scalar_div_impl!(Vec4, uint, Vec4DivRhs, x, y, z, w) scalar_div_impl!(Vec4, uint, Vec4DivRhs, x, y, z, w)
scalar_div_impl!(Vec4, int, Vec4DivRhs, x, y, z, w) scalar_div_impl!(Vec4, int, Vec4DivRhs, x, y, z, w)
scalar_add_impl!(Vec4, f64, Vec4AddRhs, x, y, z, w) scalar_add_impl!(Vec4, f64, Vec4AddRhs, x, y, z, w)
@ -511,7 +493,6 @@ scalar_add_impl!(Vec4, i64, Vec4AddRhs, x, y, z, w)
scalar_add_impl!(Vec4, i32, Vec4AddRhs, x, y, z, w) scalar_add_impl!(Vec4, i32, Vec4AddRhs, x, y, z, w)
scalar_add_impl!(Vec4, i16, Vec4AddRhs, x, y, z, w) scalar_add_impl!(Vec4, i16, Vec4AddRhs, x, y, z, w)
scalar_add_impl!(Vec4, i8, Vec4AddRhs, x, y, z, w) scalar_add_impl!(Vec4, i8, Vec4AddRhs, x, y, z, w)
scalar_add_impl!(Vec4, float, Vec4AddRhs, x, y, z, w)
scalar_add_impl!(Vec4, uint, Vec4AddRhs, x, y, z, w) scalar_add_impl!(Vec4, uint, Vec4AddRhs, x, y, z, w)
scalar_add_impl!(Vec4, int, Vec4AddRhs, x, y, z, w) scalar_add_impl!(Vec4, int, Vec4AddRhs, x, y, z, w)
scalar_sub_impl!(Vec4, f64, Vec4SubRhs, x, y, z, w) scalar_sub_impl!(Vec4, f64, Vec4SubRhs, x, y, z, w)
@ -524,7 +505,6 @@ scalar_sub_impl!(Vec4, i64, Vec4SubRhs, x, y, z, w)
scalar_sub_impl!(Vec4, i32, Vec4SubRhs, x, y, z, w) scalar_sub_impl!(Vec4, i32, Vec4SubRhs, x, y, z, w)
scalar_sub_impl!(Vec4, i16, Vec4SubRhs, x, y, z, w) scalar_sub_impl!(Vec4, i16, Vec4SubRhs, x, y, z, w)
scalar_sub_impl!(Vec4, i8, Vec4SubRhs, x, y, z, w) scalar_sub_impl!(Vec4, i8, Vec4SubRhs, x, y, z, w)
scalar_sub_impl!(Vec4, float, Vec4SubRhs, x, y, z, w)
scalar_sub_impl!(Vec4, uint, Vec4SubRhs, x, y, z, w) scalar_sub_impl!(Vec4, uint, Vec4SubRhs, x, y, z, w)
scalar_sub_impl!(Vec4, int, Vec4SubRhs, x, y, z, w) scalar_sub_impl!(Vec4, int, Vec4SubRhs, x, y, z, w)
translation_impl!(Vec4) translation_impl!(Vec4)
@ -590,7 +570,6 @@ scalar_mul_impl!(Vec5, i64, Vec5MulRhs, x, y, z, w, a)
scalar_mul_impl!(Vec5, i32, Vec5MulRhs, x, y, z, w, a) scalar_mul_impl!(Vec5, i32, Vec5MulRhs, x, y, z, w, a)
scalar_mul_impl!(Vec5, i16, Vec5MulRhs, x, y, z, w, a) scalar_mul_impl!(Vec5, i16, Vec5MulRhs, x, y, z, w, a)
scalar_mul_impl!(Vec5, i8, Vec5MulRhs, x, y, z, w, a) scalar_mul_impl!(Vec5, i8, Vec5MulRhs, x, y, z, w, a)
scalar_mul_impl!(Vec5, float, Vec5MulRhs, x, y, z, w, a)
scalar_mul_impl!(Vec5, uint, Vec5MulRhs, x, y, z, w, a) scalar_mul_impl!(Vec5, uint, Vec5MulRhs, x, y, z, w, a)
scalar_mul_impl!(Vec5, int, Vec5MulRhs, x, y, z, w, a) scalar_mul_impl!(Vec5, int, Vec5MulRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, f64, Vec5DivRhs, x, y, z, w, a) scalar_div_impl!(Vec5, f64, Vec5DivRhs, x, y, z, w, a)
@ -603,7 +582,6 @@ scalar_div_impl!(Vec5, i64, Vec5DivRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, i32, Vec5DivRhs, x, y, z, w, a) scalar_div_impl!(Vec5, i32, Vec5DivRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, i16, Vec5DivRhs, x, y, z, w, a) scalar_div_impl!(Vec5, i16, Vec5DivRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, i8, Vec5DivRhs, x, y, z, w, a) scalar_div_impl!(Vec5, i8, Vec5DivRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, float, Vec5DivRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, uint, Vec5DivRhs, x, y, z, w, a) scalar_div_impl!(Vec5, uint, Vec5DivRhs, x, y, z, w, a)
scalar_div_impl!(Vec5, int, Vec5DivRhs, x, y, z, w, a) scalar_div_impl!(Vec5, int, Vec5DivRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, f64, Vec5AddRhs, x, y, z, w, a) scalar_add_impl!(Vec5, f64, Vec5AddRhs, x, y, z, w, a)
@ -616,7 +594,6 @@ scalar_add_impl!(Vec5, i64, Vec5AddRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, i32, Vec5AddRhs, x, y, z, w, a) scalar_add_impl!(Vec5, i32, Vec5AddRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, i16, Vec5AddRhs, x, y, z, w, a) scalar_add_impl!(Vec5, i16, Vec5AddRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, i8, Vec5AddRhs, x, y, z, w, a) scalar_add_impl!(Vec5, i8, Vec5AddRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, float, Vec5AddRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, uint, Vec5AddRhs, x, y, z, w, a) scalar_add_impl!(Vec5, uint, Vec5AddRhs, x, y, z, w, a)
scalar_add_impl!(Vec5, int, Vec5AddRhs, x, y, z, w, a) scalar_add_impl!(Vec5, int, Vec5AddRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, f64, Vec5SubRhs, x, y, z, w, a) scalar_sub_impl!(Vec5, f64, Vec5SubRhs, x, y, z, w, a)
@ -629,7 +606,6 @@ scalar_sub_impl!(Vec5, i64, Vec5SubRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, i32, Vec5SubRhs, x, y, z, w, a) scalar_sub_impl!(Vec5, i32, Vec5SubRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, i16, Vec5SubRhs, x, y, z, w, a) scalar_sub_impl!(Vec5, i16, Vec5SubRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, i8, Vec5SubRhs, x, y, z, w, a) scalar_sub_impl!(Vec5, i8, Vec5SubRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, float, Vec5SubRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, uint, Vec5SubRhs, x, y, z, w, a) scalar_sub_impl!(Vec5, uint, Vec5SubRhs, x, y, z, w, a)
scalar_sub_impl!(Vec5, int, Vec5SubRhs, x, y, z, w, a) scalar_sub_impl!(Vec5, int, Vec5SubRhs, x, y, z, w, a)
translation_impl!(Vec5) translation_impl!(Vec5)
@ -697,7 +673,6 @@ scalar_mul_impl!(Vec6, i64, Vec6MulRhs, x, y, z, w, a, b)
scalar_mul_impl!(Vec6, i32, Vec6MulRhs, x, y, z, w, a, b) scalar_mul_impl!(Vec6, i32, Vec6MulRhs, x, y, z, w, a, b)
scalar_mul_impl!(Vec6, i16, Vec6MulRhs, x, y, z, w, a, b) scalar_mul_impl!(Vec6, i16, Vec6MulRhs, x, y, z, w, a, b)
scalar_mul_impl!(Vec6, i8, Vec6MulRhs, x, y, z, w, a, b) scalar_mul_impl!(Vec6, i8, Vec6MulRhs, x, y, z, w, a, b)
scalar_mul_impl!(Vec6, float, Vec6MulRhs, x, y, z, w, a, b)
scalar_mul_impl!(Vec6, uint, Vec6MulRhs, x, y, z, w, a, b) scalar_mul_impl!(Vec6, uint, Vec6MulRhs, x, y, z, w, a, b)
scalar_mul_impl!(Vec6, int, Vec6MulRhs, x, y, z, w, a, b) scalar_mul_impl!(Vec6, int, Vec6MulRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, f64, Vec6DivRhs, x, y, z, w, a, b) scalar_div_impl!(Vec6, f64, Vec6DivRhs, x, y, z, w, a, b)
@ -710,7 +685,6 @@ scalar_div_impl!(Vec6, i64, Vec6DivRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, i32, Vec6DivRhs, x, y, z, w, a, b) scalar_div_impl!(Vec6, i32, Vec6DivRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, i16, Vec6DivRhs, x, y, z, w, a, b) scalar_div_impl!(Vec6, i16, Vec6DivRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, i8, Vec6DivRhs, x, y, z, w, a, b) scalar_div_impl!(Vec6, i8, Vec6DivRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, float, Vec6DivRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, uint, Vec6DivRhs, x, y, z, w, a, b) scalar_div_impl!(Vec6, uint, Vec6DivRhs, x, y, z, w, a, b)
scalar_div_impl!(Vec6, int, Vec6DivRhs, x, y, z, w, a, b) scalar_div_impl!(Vec6, int, Vec6DivRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, f64, Vec6AddRhs, x, y, z, w, a, b) scalar_add_impl!(Vec6, f64, Vec6AddRhs, x, y, z, w, a, b)
@ -723,7 +697,6 @@ scalar_add_impl!(Vec6, i64, Vec6AddRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, i32, Vec6AddRhs, x, y, z, w, a, b) scalar_add_impl!(Vec6, i32, Vec6AddRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, i16, Vec6AddRhs, x, y, z, w, a, b) scalar_add_impl!(Vec6, i16, Vec6AddRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, i8, Vec6AddRhs, x, y, z, w, a, b) scalar_add_impl!(Vec6, i8, Vec6AddRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, float, Vec6AddRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, uint, Vec6AddRhs, x, y, z, w, a, b) scalar_add_impl!(Vec6, uint, Vec6AddRhs, x, y, z, w, a, b)
scalar_add_impl!(Vec6, int, Vec6AddRhs, x, y, z, w, a, b) scalar_add_impl!(Vec6, int, Vec6AddRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, f64, Vec6SubRhs, x, y, z, w, a, b) scalar_sub_impl!(Vec6, f64, Vec6SubRhs, x, y, z, w, a, b)
@ -736,7 +709,6 @@ scalar_sub_impl!(Vec6, i64, Vec6SubRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, i32, Vec6SubRhs, x, y, z, w, a, b) scalar_sub_impl!(Vec6, i32, Vec6SubRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, i16, Vec6SubRhs, x, y, z, w, a, b) scalar_sub_impl!(Vec6, i16, Vec6SubRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, i8, Vec6SubRhs, x, y, z, w, a, b) scalar_sub_impl!(Vec6, i8, Vec6SubRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, float, Vec6SubRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, uint, Vec6SubRhs, x, y, z, w, a, b) scalar_sub_impl!(Vec6, uint, Vec6SubRhs, x, y, z, w, a, b)
scalar_sub_impl!(Vec6, int, Vec6SubRhs, x, y, z, w, a, b) scalar_sub_impl!(Vec6, int, Vec6SubRhs, x, y, z, w, a, b)
translation_impl!(Vec6) translation_impl!(Vec6)