Struct matriarch::Mat3[][src]

pub struct Mat3 {
    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,
}

A 3x3 Matrix with elements arranged in row-major order.

A Mat3 is laid out as follows:

    [ a  b  c ]
A = [ d  e  f ]
    [ g  h  i ]

Fields

Methods

impl Mat3
[src]

Trait Implementations

impl Clone for Mat3
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Mat3
[src]

impl Debug for Mat3
[src]

Formats the value using the given formatter. Read more

impl Default for Mat3
[src]

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

impl PartialEq for Mat3
[src]

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

This method tests for !=.

impl Mul<Mat3> for Mat3
[src]

The resulting type after applying the * operator.

Multiplies two Mat3s together, returning a new Mat3.

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_mat3 = mat3 * some_other_mat3;

impl Mul<Vec3> for Mat3
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Mat3> for f32
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations

impl Send for Mat3

impl Sync for Mat3