Struct geometric::Matrix4 [] [src]

pub struct Matrix4<T: Copy> {
    pub components: [[T; 4]; 4],
}

Fields

Methods

impl<T: Copy> Matrix4<T>
[src]

Create an identity matrix.

Create a matrix representing a scaling transform.

Create a matrix representing a translation.

Prepend a scale to this transform.

Prepend a translation to this transform.

Return the inverse of this matrix.

Return the determinant of this matrix.

Return the transpose of this matrix.

Trait Implementations

impl<T: Clone + Copy> Clone for Matrix4<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + Copy> Copy for Matrix4<T>
[src]

impl<T: Default + Copy> Default for Matrix4<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Debug + Copy> Debug for Matrix4<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq + Copy> PartialEq for Matrix4<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq + Copy> Eq for Matrix4<T>
[src]

impl<T: Copy> From<[[T; 4]; 4]> for Matrix4<T>
[src]

Performs the conversion.

impl<T: Copy> Mul for Matrix4<T> where
    T: Mul<Output = T> + Add<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: Copy> Mul<Vector4<T>> for Matrix4<T> where
    T: Mul<Output = T> + Add<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: Copy> MulAssign for Matrix4<T> where
    T: Mul<Output = T> + Add<Output = T>, 
[src]

The method for the *= operator