Trait Mat2Ext

Source
pub trait Mat2Ext {
    type SymmetricMat2;

    // Required methods
    fn mul_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self;
    fn add_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self;
    fn sub_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self;
}
Expand description

An extension trait for 2x2 matrices.

Required Associated Types§

Source

type SymmetricMat2

The type of the symmetric 2x2 matrix.

Required Methods§

Source

fn mul_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self

Multiplies self by a symmetric 2x2 matrix.

Source

fn add_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self

Adds a symmetric 2x2 matrix to self.

Source

fn sub_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self

Subtracts a symmetric 2x2 matrix from self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Mat2Ext for Mat2

Source§

impl Mat2Ext for DMat2

Implementors§