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§
Sourcetype SymmetricMat2
type SymmetricMat2
The type of the symmetric 2x2 matrix.
Required Methods§
Sourcefn mul_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self
fn mul_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self
Multiplies self by a symmetric 2x2 matrix.
Sourcefn add_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self
fn add_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self
Adds a symmetric 2x2 matrix to self.
Sourcefn sub_symmetric_mat2(&self, rhs: &Self::SymmetricMat2) -> Self
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
Available on crate feature f32 only.
impl Mat2Ext for Mat2
Available on crate feature
f32 only.type SymmetricMat2 = SymmetricMat2
fn mul_symmetric_mat2(&self, rhs: &SymmetricMat2) -> Mat2
fn add_symmetric_mat2(&self, rhs: &SymmetricMat2) -> Mat2
fn sub_symmetric_mat2(&self, rhs: &SymmetricMat2) -> Mat2
Source§impl Mat2Ext for DMat2
Available on crate feature f64 only.
impl Mat2Ext for DMat2
Available on crate feature
f64 only.