Struct matmath::matrix_class::Matrix[][src]

pub struct Matrix<T> { /* fields omitted */ }

A Matrix with generic type items. Can be indexed by mat[(row, col)]

Methods

impl<T> Matrix<T>
[src]

Generates a rowsxcols matrix where every element is e

Generates a rowsxcols matrix where every element is obtained by evaluating builder_fn(row, col)

Generates a rowsxrows identity matrix (using MatrixElement::zero() and MatrixElement::one())

Generates a rowsxcols matrix with the data specified in data

impl<T> Matrix<T>
[src]

Multiplies the matrix with a scalar

impl Matrix<RotmatElement>
[src]

Takes a previously generated Rotation Matrix and inserts a specific value into it For f32 and f64, this would be the angle in radians, but for your own type it could be whatever... (it uses the Trig and the MatrixElement traits to get values for sin, -sin, cos, 0 and 1)

Trait Implementations

impl<T: Debug> Debug for Matrix<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Matrix<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for Matrix<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: Eq> Eq for Matrix<T>
[src]

impl<T> Display for Matrix<T> where
    T: Display + Clone
[src]

Formats the value using the given formatter. Read more

impl<T> Index<(usize, usize)> for Matrix<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<(usize, usize)> for Matrix<T>
[src]

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

impl<T, U, O> Add<Matrix<U>> for Matrix<T> where
    T: Add<U, Output = O>, 
[src]

Adds two matrices element by element

The resulting type after applying the + operator.

Performs the + operation.

impl<T, U, O> Sub<Matrix<U>> for Matrix<T> where
    T: Clone + Sub<U, Output = O>,
    U: Clone
[src]

Subtracts two matrices element by element

The resulting type after applying the - operator.

Performs the - operation.

impl<T, U, O> Mul<Matrix<U>> for Matrix<T> where
    T: Mul<U, Output = O> + Clone,
    U: Clone,
    O: Add<O, Output = O>, 
[src]

Matrix Multiplication

The resulting type after applying the * operator.

Performs the * operation.

impl<T, U, O> Mul<Vector<U>> for Matrix<T> where
    T: Mul<U, Output = O> + Clone,
    U: Clone,
    O: Add<O, Output = O>, 
[src]

Matrix-Vector Multiplication

The resulting type after applying the * operator.

Performs the * operation.

impl<T, O> Neg for Matrix<T> where
    T: Neg<Output = O>, 
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<T, U, O> Rem<U> for Matrix<T> where
    T: Rem<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<T, U, O> BitAnd<U> for Matrix<T> where
    T: BitAnd<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<T, U, O> BitOr<U> for Matrix<T> where
    T: BitOr<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<T, U, O> BitXor<U> for Matrix<T> where
    T: BitXor<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<T, O> Not for Matrix<T> where
    T: Not<Output = O>, 
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl<T, U, O> Shl<U> for Matrix<T> where
    T: Shl<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<T, U, O> Shr<U> for Matrix<T> where
    T: Shr<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<T> Into<Matrix<T>> for Vector<T>
[src]

A Vector can be cast to a matrix and back

Performs the conversion.

impl<T> From<Matrix<T>> for Vector<T>
[src]

A Vector can be cast to a matrix and back

Performs the conversion.

impl<T> Into<Matrix<T>> for Vector2<T>
[src]

A Vector can be cast to a matrix and back

Performs the conversion.

impl<T> From<Matrix<T>> for Vector2<T> where
    T: Clone
[src]

A Vector can be cast to a matrix and back

Performs the conversion.

impl<T> Into<Matrix<T>> for Vector3<T>
[src]

Performs the conversion.

impl<T> From<Matrix<T>> for Vector3<T> where
    T: Clone
[src]

Performs the conversion.

impl<T> Into<Matrix<T>> for Vector4<T>
[src]

Performs the conversion.

impl<T> From<Matrix<T>> for Vector4<T> where
    T: Clone
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Matrix<T> where
    T: Send

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