pub trait Mat4Ext {
type SymmetricMat4;
// Required methods
fn mul_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self;
fn add_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self;
fn sub_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self;
}Expand description
An extension trait for 4x4 matrices.
Required Associated Types§
Sourcetype SymmetricMat4
type SymmetricMat4
The type of the symmetric 4x4 matrix.
Required Methods§
Sourcefn mul_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self
fn mul_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self
Multiplies self by a symmetric 4x4 matrix.
Sourcefn add_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self
fn add_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self
Adds a symmetric 4x4 matrix to self.
Sourcefn sub_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self
fn sub_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self
Subtracts a symmetric 4x4 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 Mat4Ext for Mat4
Available on crate feature f32 only.
impl Mat4Ext for Mat4
Available on crate feature
f32 only.type SymmetricMat4 = SymmetricMat4
fn mul_symmetric_mat4(&self, rhs: &SymmetricMat4) -> Mat4
fn add_symmetric_mat4(&self, rhs: &SymmetricMat4) -> Mat4
fn sub_symmetric_mat4(&self, rhs: &SymmetricMat4) -> Mat4
Source§impl Mat4Ext for DMat4
Available on crate feature f64 only.
impl Mat4Ext for DMat4
Available on crate feature
f64 only.