Struct matriarch::Mat4[][src]

pub struct Mat4 {
    pub a: f32,
    pub b: f32,
    pub c: f32,
    pub d: f32,
    pub e: f32,
    pub f: f32,
    pub g: f32,
    pub h: f32,
    pub i: f32,
    pub j: f32,
    pub k: f32,
    pub l: f32,
    pub m: f32,
    pub n: f32,
    pub o: f32,
    pub p: f32,
}

A 4x4 Matrix with elements arraged in row-major order.

A Mat4 is laid out as follows:

    [ a  b  c  d ]
A = [ e  f  g  h ]
    [ i  j  k  l ]
    [ m  n  o  p ]

Fields

Methods

impl Mat4
[src]

Trait Implementations

impl Clone for Mat4
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Mat4
[src]

impl Debug for Mat4
[src]

Formats the value using the given formatter. Read more

impl Default for Mat4
[src]

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

impl PartialEq for Mat4
[src]

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

This method tests for !=.

impl Mul<Mat4> for Mat4
[src]

The resulting type after applying the * operator.

Multiplies two Mat4s together, returning a new Mat4.

Keep in mind that matrix multiplication is not commutative, such that A*B != B*A for most matrices (the main exception being the Identity matrix)

Example:

let some_mat4 = mat4 * some_other_mat4;

impl Mul<Vec4> for Mat4
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Mat4> for f32
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations

impl Send for Mat4

impl Sync for Mat4