Trait Mat4Ext

Source
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§

Source

type SymmetricMat4

The type of the symmetric 4x4 matrix.

Required Methods§

Source

fn mul_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self

Multiplies self by a symmetric 4x4 matrix.

Source

fn add_symmetric_mat4(&self, rhs: &Self::SymmetricMat4) -> Self

Adds a symmetric 4x4 matrix to self.

Source

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

Source§

impl Mat4Ext for DMat4

Implementors§