Struct glm::Matrix4
[−]
[src]
#[repr(C)]pub struct Matrix4<T: BaseFloat> { pub c0: Vector4<T>, pub c1: Vector4<T>, pub c2: Vector4<T>, pub c3: Vector4<T>, }
Fields
c0: Vector4<T>
c1: Vector4<T>
c2: Vector4<T>
c3: Vector4<T>
Methods
impl<T: BaseFloat> Matrix4<T>[src]
impl<T: BaseFloat> Matrix4<T>pub fn new(
c0: Vector4<T>,
c1: Vector4<T>,
c2: Vector4<T>,
c3: Vector4<T>
) -> Matrix4<T>[src]
pub fn new(
c0: Vector4<T>,
c1: Vector4<T>,
c2: Vector4<T>,
c3: Vector4<T>
) -> Matrix4<T>pub fn from_array(ary: &[Vector4<T>; 4]) -> &Matrix4<T>[src]
pub fn from_array(ary: &[Vector4<T>; 4]) -> &Matrix4<T>pub fn from_array_mut(ary: &mut [Vector4<T>; 4]) -> &mut Matrix4<T>[src]
pub fn from_array_mut(ary: &mut [Vector4<T>; 4]) -> &mut Matrix4<T>pub fn as_array(&self) -> &[Vector4<T>; 4][src]
pub fn as_array(&self) -> &[Vector4<T>; 4]pub fn as_array_mut(&mut self) -> &mut [Vector4<T>; 4][src]
pub fn as_array_mut(&mut self) -> &mut [Vector4<T>; 4]pub fn add_s(&self, rhs: T) -> Matrix4<T>[src]
pub fn add_s(&self, rhs: T) -> Matrix4<T>pub fn add_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>[src]
pub fn add_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>pub fn sub_s(&self, rhs: T) -> Matrix4<T>[src]
pub fn sub_s(&self, rhs: T) -> Matrix4<T>pub fn sub_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>[src]
pub fn sub_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>pub fn div_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>[src]
pub fn div_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>pub fn div_s(&self, rhs: T) -> Matrix4<T>[src]
pub fn div_s(&self, rhs: T) -> Matrix4<T>pub fn rem_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>[src]
pub fn rem_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>pub fn rem_s(&self, rhs: T) -> Matrix4<T>[src]
pub fn rem_s(&self, rhs: T) -> Matrix4<T>pub fn mul_s(&self, rhs: T) -> Matrix4<T>[src]
pub fn mul_s(&self, rhs: T) -> Matrix4<T>pub fn mul_v(&self, rhs: &Vector4<T>) -> Vector4<T>[src]
pub fn mul_v(&self, rhs: &Vector4<T>) -> Vector4<T>pub fn mul_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>[src]
pub fn mul_m(&self, rhs: &Matrix4<T>) -> Matrix4<T>pub fn neg_m(&self) -> Matrix4<T>[src]
pub fn neg_m(&self) -> Matrix4<T>Trait Implementations
impl<T: Copy + BaseFloat> Copy for Matrix4<T>[src]
impl<T: Copy + BaseFloat> Copy for Matrix4<T>impl<T: Clone + BaseFloat> Clone for Matrix4<T>[src]
impl<T: Clone + BaseFloat> Clone for Matrix4<T>fn clone(&self) -> Matrix4<T>[src]
fn clone(&self) -> Matrix4<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: PartialEq + BaseFloat> PartialEq for Matrix4<T>[src]
impl<T: PartialEq + BaseFloat> PartialEq for Matrix4<T>fn eq(&self, __arg_0: &Matrix4<T>) -> bool[src]
fn eq(&self, __arg_0: &Matrix4<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Matrix4<T>) -> bool[src]
fn ne(&self, __arg_0: &Matrix4<T>) -> boolThis method tests for !=.
impl<T: Debug + BaseFloat> Debug for Matrix4<T>[src]
impl<T: Debug + BaseFloat> Debug for Matrix4<T>fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: BaseFloat> Index<usize> for Matrix4<T>[src]
impl<T: BaseFloat> Index<usize> for Matrix4<T>type Output = Vector4<T>
The returned type after indexing.
fn index<'a>(&'a self, i: usize) -> &'a Vector4<T>[src]
fn index<'a>(&'a self, i: usize) -> &'a Vector4<T>Performs the indexing (container[index]) operation.
impl<T: BaseFloat> IndexMut<usize> for Matrix4<T>[src]
impl<T: BaseFloat> IndexMut<usize> for Matrix4<T>fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut Vector4<T>[src]
fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut Vector4<T>Performs the mutable indexing (container[index]) operation.
impl<T: BaseFloat> Rand for Matrix4<T>[src]
impl<T: BaseFloat> Rand for Matrix4<T>fn rand<R: Rng>(rng: &mut R) -> Matrix4<T>[src]
fn rand<R: Rng>(rng: &mut R) -> Matrix4<T>Generates a random instance of this type using the specified source of randomness. Read more
impl<T: BaseFloat> Add<T> for Matrix4<T>[src]
impl<T: BaseFloat> Add<T> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the + operator.
fn add(self, rhs: T) -> Matrix4<T>[src]
fn add(self, rhs: T) -> Matrix4<T>Performs the + operation.
impl<T: BaseFloat> ApproxEq for Matrix4<T>[src]
impl<T: BaseFloat> ApproxEq for Matrix4<T>type BaseType = T
fn is_close_to(&self, rhs: &Matrix4<T>, max_diff: T) -> bool[src]
fn is_close_to(&self, rhs: &Matrix4<T>, max_diff: T) -> boolReturns true if the difference between x and y is less than max_diff. Read more
fn is_approx_eq(&self, rhs: &Self) -> bool[src]
fn is_approx_eq(&self, rhs: &Self) -> boolReturns true if the difference between x and y is less than machine epsilon. Read more
impl<T: BaseFloat> Add<Matrix4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Add<Matrix4<T>> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the + operator.
fn add(self, rhs: Matrix4<T>) -> Matrix4<T>[src]
fn add(self, rhs: Matrix4<T>) -> Matrix4<T>Performs the + operation.
impl<T: BaseFloat> Sub<T> for Matrix4<T>[src]
impl<T: BaseFloat> Sub<T> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the - operator.
fn sub(self, rhs: T) -> Matrix4<T>[src]
fn sub(self, rhs: T) -> Matrix4<T>Performs the - operation.
impl<T: BaseFloat> Sub<Matrix4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Sub<Matrix4<T>> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the - operator.
fn sub(self, rhs: Matrix4<T>) -> Matrix4<T>[src]
fn sub(self, rhs: Matrix4<T>) -> Matrix4<T>Performs the - operation.
impl<T: BaseFloat> Div<T> for Matrix4<T>[src]
impl<T: BaseFloat> Div<T> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the / operator.
fn div(self, rhs: T) -> Matrix4<T>[src]
fn div(self, rhs: T) -> Matrix4<T>Performs the / operation.
impl<T: BaseFloat> Div<Matrix4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Div<Matrix4<T>> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the / operator.
fn div(self, rhs: Matrix4<T>) -> Matrix4<T>[src]
fn div(self, rhs: Matrix4<T>) -> Matrix4<T>Performs the / operation.
impl<T: BaseFloat> Rem<T> for Matrix4<T>[src]
impl<T: BaseFloat> Rem<T> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the % operator.
fn rem(self, rhs: T) -> Matrix4<T>[src]
fn rem(self, rhs: T) -> Matrix4<T>Performs the % operation.
impl<T: BaseFloat> Rem<Matrix4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Rem<Matrix4<T>> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the % operator.
fn rem(self, rhs: Matrix4<T>) -> Matrix4<T>[src]
fn rem(self, rhs: Matrix4<T>) -> Matrix4<T>Performs the % operation.
impl<T: BaseFloat> Neg for Matrix4<T>[src]
impl<T: BaseFloat> Neg for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the - operator.
fn neg(self) -> Matrix4<T>[src]
fn neg(self) -> Matrix4<T>Performs the unary - operation.
impl<T: BaseFloat> Mul<T> for Matrix4<T>[src]
impl<T: BaseFloat> Mul<T> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the * operator.
fn mul(self, rhs: T) -> Matrix4<T>[src]
fn mul(self, rhs: T) -> Matrix4<T>Performs the * operation.
impl<T: BaseFloat> Mul<Vector4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Mul<Vector4<T>> for Matrix4<T>type Output = Vector4<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Vector4<T>) -> Vector4<T>[src]
fn mul(self, rhs: Vector4<T>) -> Vector4<T>Performs the * operation.
impl<T: BaseFloat> Mul<Matrix4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Mul<Matrix4<T>> for Matrix4<T>type Output = Matrix4<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Matrix4<T>) -> Matrix4<T>[src]
fn mul(self, rhs: Matrix4<T>) -> Matrix4<T>Performs the * operation.
impl<T: BaseFloat> Zero for Matrix4<T>[src]
impl<T: BaseFloat> Zero for Matrix4<T>fn zero() -> Matrix4<T>[src]
fn zero() -> Matrix4<T>Returns the additive identity element of Self, 0. Read more
fn is_zero(&self) -> bool[src]
fn is_zero(&self) -> boolReturns true if self is equal to the additive identity.
impl<T: BaseFloat> GenMat<T, Vector4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> GenMat<T, Vector4<T>> for Matrix4<T>type R = Vector4<T>
Type of row vectors.
type Transpose = Matrix4<T>
Type of transpose matrix.
fn transpose(&self) -> Matrix4<T>[src]
fn transpose(&self) -> Matrix4<T>Returns the transpose matrix. Read more
fn mul_c(&self, rhs: &Matrix4<T>) -> Matrix4<T>[src]
fn mul_c(&self, rhs: &Matrix4<T>) -> Matrix4<T>Component-wise multiplication. Read more
impl<T: BaseFloat> Mul<Matrix2x4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Mul<Matrix2x4<T>> for Matrix4<T>type Output = Matrix2x4<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Matrix2x4<T>) -> Matrix2x4<T>[src]
fn mul(self, rhs: Matrix2x4<T>) -> Matrix2x4<T>Performs the * operation.
impl<T: BaseFloat> Mul<Matrix3x4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> Mul<Matrix3x4<T>> for Matrix4<T>type Output = Matrix3x4<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Matrix3x4<T>) -> Matrix3x4<T>[src]
fn mul(self, rhs: Matrix3x4<T>) -> Matrix3x4<T>Performs the * operation.
impl<T: BaseFloat> Mul<Matrix4<T>> for Matrix4x2<T>[src]
impl<T: BaseFloat> Mul<Matrix4<T>> for Matrix4x2<T>type Output = Matrix4x2<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Matrix4<T>) -> Matrix4x2<T>[src]
fn mul(self, rhs: Matrix4<T>) -> Matrix4x2<T>Performs the * operation.
impl<T: BaseFloat> Mul<Matrix4<T>> for Matrix4x3<T>[src]
impl<T: BaseFloat> Mul<Matrix4<T>> for Matrix4x3<T>type Output = Matrix4x3<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Matrix4<T>) -> Matrix4x3<T>[src]
fn mul(self, rhs: Matrix4<T>) -> Matrix4x3<T>Performs the * operation.
impl<T: BaseFloat> One for Matrix4<T>[src]
impl<T: BaseFloat> One for Matrix4<T>fn one() -> Matrix4<T>[src]
fn one() -> Matrix4<T>Returns the multiplicative identity element of Self, 1. Read more
fn is_one(&self) -> bool where
Self: PartialEq<Self>, [src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>, Returns true if self is equal to the multiplicative identity. Read more
impl<T: BaseFloat> GenSquareMat<T, Vector4<T>> for Matrix4<T>[src]
impl<T: BaseFloat> GenSquareMat<T, Vector4<T>> for Matrix4<T>