bevy_heavy

Trait MatExt

source
pub trait MatExt {
    // Required method
    fn inverse_or_zero(self) -> Self;
}
Expand description

An extension trait for matrix types.

Required Methods§

source

fn inverse_or_zero(self) -> Self

Computes the inverse of self if self is not zero, and returns zero otherwise to avoid division by zero.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MatExt for Mat3

source§

fn inverse_or_zero(self) -> Self

source§

impl MatExt for Mat2

source§

fn inverse_or_zero(self) -> Self

source§

impl MatExt for DMat2

source§

fn inverse_or_zero(self) -> Self

source§

impl MatExt for DMat3

source§

fn inverse_or_zero(self) -> Self

Implementors§