Struct ami::Matrix[][src]

#[repr(C)]
pub struct Matrix { pub m00: f32, pub m01: f32, pub m02: f32, pub m03: f32, pub m10: f32, pub m11: f32, pub m12: f32, pub m13: f32, pub m20: f32, pub m21: f32, pub m22: f32, pub m23: f32, pub m30: f32, pub m31: f32, pub m32: f32, pub m33: f32, }

4x4 Matrix.

Fields

Methods

impl Matrix
[src]

Scale, then rotate Quaternion (axis, angle), then translate.

Rotate Quaternion (axis, angle), then translate.

Scale, then translate.

Translate.

Scale.

Rotate Quaternion (axis, angle).

Multiply by a custom matrix

Full constructor.

Diagonal constructor.

Tri-diagonal constructor.

Orthographic projection matrix constructor.

Finite perspective projection matrix constructor.

Computes the matrix determinant.

Computes the matrix trace.

Computes the matrix inverse.

Panics

Panics if the matrix has no inverse (i.e. has zero determinant).

Returns the matrix transpose.

Attempts to compute the matrix inverse, returning None if the matrix is non-invertible (i.e. has zero determinant).

Trait Implementations

impl Clone for Matrix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Matrix
[src]

impl Debug for Matrix
[src]

Formats the value using the given formatter. Read more

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 Display for Matrix
[src]

Formats the value using the given formatter. Read more

impl Add<Matrix> for Matrix
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Matrix> for Matrix
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<f32> for Matrix
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<(Vector, f32)> for Matrix
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<(Vector, f32)> for &'a Matrix
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Matrix> for f32
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Matrix> for Matrix
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Default for Matrix
[src]

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

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

impl From<f32> for Matrix
[src]

Performs the conversion.

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

Performs the conversion.

Auto Trait Implementations

impl Send for Matrix

impl Sync for Matrix