Trait MulVectorMatrix

Source
pub trait MulVectorMatrix<Matrix> {
    type VectorType;

    // Required methods
    fn mul_matrix_left(&self, lhs: &Matrix) -> Self::VectorType;
    fn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType;
}
Expand description

Adds matrix operations to vector types.

Required Associated Types§

Required Methods§

Source

fn mul_matrix_left(&self, lhs: &Matrix) -> Self::VectorType

Interprets self as a column vector and multiplies the given matrix from the left-hand-side, i.e. lhs * self

Source

fn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType

Interprets self as a row vector and multiplies the given matrix from the right-hand-side, i.e. self * rhs

Implementors§