Struct immi::Matrix [] [src]

pub struct Matrix(pub [[f32; 2]; 3]);

A 2x3 matrix. The data is stored in column-major.

Methods

impl Matrix
[src]

Builds an identity matrix, in other words a matrix that has no effect.

Builds a matrix that will rescale both width and height of a given factor.

Builds a matrix that will multiply the width and height by a certain factor.

Builds a matrix that will translate the object.

Builds a matrix that will rotate the object.

Builds a matrix that will skew the x coordinate by a certain angle.

Builds the matrix's invert.

Returns None if the determinant is zero, infinite or NaN.

Trait Implementations

impl Copy for Matrix
[src]

impl Clone for Matrix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Matrix
[src]

Formats the value using the given formatter.

impl PartialEq for Matrix
[src]

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

This method tests for !=.

impl Mul for Matrix
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<[f32; 3]> for Matrix
[src]

The resulting type after applying the * operator

The method for the * operator

impl Into<[[f32; 3]; 3]> for Matrix
[src]

Performs the conversion.

impl Into<[[f32; 4]; 4]> for Matrix
[src]

Performs the conversion.