Struct euler::Mat2[][src]

#[repr(C)]
pub struct Mat2 { pub m00: f32, pub m01: f32, pub m10: f32, pub m11: f32, }

Single-precision 2x2 column major matrix.

Fields

Methods

impl Mat2
[src]

Full constructor.

Identity constructor.

Diagonal constructor.

Tri-diagonal constructor.

impl Mat2
[src]

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 Mat2
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Mat2
[src]

impl Debug for Mat2
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Mat2
[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 Mat2
[src]

Formats the value using the given formatter. Read more

impl From<f32> for Mat2
[src]

Performs the conversion.

impl From<f64> for Mat2
[src]

Performs the conversion.

impl From<DMat2> for Mat2
[src]

Performs the conversion.

impl From<Mat3> for Mat2
[src]

Performs the conversion.

impl From<DMat3> for Mat2
[src]

Performs the conversion.

impl From<Mat4> for Mat2
[src]

Performs the conversion.

impl From<DMat4> for Mat2
[src]

Performs the conversion.

impl From<Mat2> for DMat2
[src]

Performs the conversion.

impl From<Mat2> for Mat3
[src]

Performs the conversion.

impl From<Mat2> for DMat3
[src]

Performs the conversion.

impl From<Mat2> for Mat4
[src]

Performs the conversion.

impl From<Mat2> for DMat4
[src]

Performs the conversion.

impl Add<Mat2> for Mat2
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Mat2> for Mat2
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<f32> for Mat2
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Vec2> for Mat2
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<Vec2> for &'a Mat2
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Mat2> for f32
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Mat2> for Mat2
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Default for Mat2
[src]

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

impl AsRef<[[f32; 2]; 2]> for Mat2
[src]

Performs the conversion.

impl From<[[f32; 2]; 2]> for Mat2
[src]

Performs the conversion.

impl Into<[[f32; 2]; 2]> for Mat2
[src]

Performs the conversion.

impl ApproxEq for Mat2
[src]

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

The default relative tolerance for testing values that are far-apart. Read more

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of ApproxEq::relative_eq.

The inverse of ApproxEq::ulps_eq.

Auto Trait Implementations

impl Send for Mat2

impl Sync for Mat2