Type Alias Mat3

Source
pub type Mat3<E, Descriptor> = Mat<3, 3, E, Descriptor>;

Aliased Type§

pub struct Mat3<E, Descriptor>(/* private fields */);

Implementations§

Source§

impl<E, Descriptor> Mat3<E, Descriptor>
where E: MatEl + NdFloat, Descriptor: Descriptor, Self: RawSliceMut<Scalar = E> + ScalarMut<Scalar = E, Index = Ix2> + ConstLayout<Index = Ix2> + IndexingMut<Scalar = E, Index = Ix2>,

Source

pub fn from_cols(x: Vector<E, 3>, y: Vector<E, 3>, z: Vector<E, 3>) -> Self

Construct a matrix from columns

Source

pub fn determinant(&self) -> E

Computes the determinant of the matrix

Source

pub fn inverse(&self) -> Option<Self>

Computes the inverse of the matrix. If the determinant is zero - return None