Struct glm::Matrix2 [] [src]

#[repr(C)]
pub struct Matrix2<T: BaseFloat> { pub c0: Vector2<T>, pub c1: Vector2<T>, }

Fields

Methods

impl<T: BaseFloat> Matrix2<T>
[src]

impl<T: BaseFloat> Matrix2<T>
[src]

Extends self to a Matrix3x2 by appending the column vector z.

Example

use glm::*;

let m2 = mat2(1., 2., 3., 4.);
let m3x2 = mat3x2(1., 2., 3., 4., 0., 0.);
assert_eq!(m2.extend(vec2(0., 0.)), m3x2);

Trait Implementations

impl<T: Copy + BaseFloat> Copy for Matrix2<T>
[src]

impl<T: Clone + BaseFloat> Clone for Matrix2<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq + BaseFloat> PartialEq for Matrix2<T>
[src]

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

This method tests for !=.

impl<T: Debug + BaseFloat> Debug for Matrix2<T>
[src]

Formats the value using the given formatter. Read more

impl<T: BaseFloat> Index<usize> for Matrix2<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T: BaseFloat> IndexMut<usize> for Matrix2<T>
[src]

Performs the mutable indexing (container[index]) operation.

impl<T: BaseFloat> Rand for Matrix2<T>
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl<T: BaseFloat> Add<T> for Matrix2<T>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T: BaseFloat> ApproxEq for Matrix2<T>
[src]

Returns true if the difference between x and y is less than max_diff. Read more

Returns true if the difference between x and y is less than machine epsilon. Read more

impl<T: BaseFloat> Add<Matrix2<T>> for Matrix2<T>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T: BaseFloat> Sub<T> for Matrix2<T>
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<T: BaseFloat> Sub<Matrix2<T>> for Matrix2<T>
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<T: BaseFloat> Div<T> for Matrix2<T>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<T: BaseFloat> Div<Matrix2<T>> for Matrix2<T>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<T: BaseFloat> Rem<T> for Matrix2<T>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<T: BaseFloat> Rem<Matrix2<T>> for Matrix2<T>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<T: BaseFloat> Neg for Matrix2<T>
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<T: BaseFloat> Mul<T> for Matrix2<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> Mul<Vector2<T>> for Matrix2<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> Mul<Matrix2<T>> for Matrix2<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> Zero for Matrix2<T>
[src]

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

impl<T: BaseFloat> GenMat<T, Vector2<T>> for Matrix2<T>
[src]

Type of row vectors.

Type of transpose matrix.

Returns the transpose matrix. Read more

Component-wise multiplication. Read more

impl<T: BaseFloat> Mul<Matrix2<T>> for Matrix2x3<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> Mul<Matrix2<T>> for Matrix2x4<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> Mul<Matrix4x2<T>> for Matrix2<T>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T: BaseFloat> One for Matrix2<T>
[src]

Returns the multiplicative identity element of Self, 1. Read more

Returns true if self is equal to the multiplicative identity. Read more

impl<T: BaseFloat> GenSquareMat<T, Vector2<T>> for Matrix2<T>
[src]

Returns the determinant of a square matrix. Read more

Returns the inverse matrix of a square matrix, or None if the matrix is not invertible. Read more

Auto Trait Implementations

impl<T> Send for Matrix2<T>

impl<T> Sync for Matrix2<T> where
    T: Sync