pub trait Mat3Ext {
type SymmetricMat3;
// Required methods
fn mul_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self;
fn add_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self;
fn sub_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self;
}Expand description
An extension trait for 3x3 matrices.
Required Associated Types§
Sourcetype SymmetricMat3
type SymmetricMat3
The type of the symmetric 3x3 matrix.
Required Methods§
Sourcefn mul_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self
fn mul_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self
Multiplies self by a symmetric 3x3 matrix.
Sourcefn add_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self
fn add_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self
Adds a symmetric 3x3 matrix to self.
Sourcefn sub_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self
fn sub_symmetric_mat3(&self, rhs: &Self::SymmetricMat3) -> Self
Subtracts a symmetric 3x3 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 Mat3Ext for Mat3
Available on crate feature f32 only.
impl Mat3Ext for Mat3
Available on crate feature
f32 only.type SymmetricMat3 = SymmetricMat3
fn mul_symmetric_mat3(&self, rhs: &SymmetricMat3) -> Mat3
fn add_symmetric_mat3(&self, rhs: &SymmetricMat3) -> Mat3
fn sub_symmetric_mat3(&self, rhs: &SymmetricMat3) -> Mat3
Source§impl Mat3Ext for DMat3
Available on crate feature f64 only.
impl Mat3Ext for DMat3
Available on crate feature
f64 only.