#[repr(C)]
pub struct Matrix4x4 { pub m: [[f32; 4]; 4], }

Fields

m: [[f32; 4]; 4]

Implementations

Construct a translation matrix

Construct a scale matrix

Construct a rotation matrix

Construct a new off-center orthographic projection matrix

Construct a new orthographic projection matrix using the given aspect ratio, scale, and near/far plane clip distances

Construct a new perspective projection matrix using the given aspect ratio, field of view, and near/far plane clip distances

Load an identity matrix into the SIMD register

Load a matrix into the SIMD register

Store the current value of the SIMD register to the given matrix

Multiply the matrix in the SIMD register by the given matrix

Transform an array of vectors using the SIMD matrix register

Transform a field of an array of input vertex structs using the SIMD matrix register

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.