Struct oxygen_quark::matrix::matrix4x4::Matrix4x4
source · Fields
data: [Fraction; 16]
The matrix data.
Trait Implementations
sourceimpl AddAssign<Matrix4x4> for Matrix4x4
impl AddAssign<Matrix4x4> for Matrix4x4
sourcefn add_assign(&mut self, other: Matrix4x4)
fn add_assign(&mut self, other: Matrix4x4)
Performs the
+=
operation. Read moresourceimpl Matrix for Matrix4x4
impl Matrix for Matrix4x4
sourcefn from_slice(values: &[Self::Data]) -> Self
fn from_slice(values: &[Self::Data]) -> Self
Generates a new Matrix4x4
from a list of Fraction
values.
sourcefn determinant(&self) -> Result<Self::Data, MatrixError>
fn determinant(&self) -> Result<Self::Data, MatrixError>
Calculates the determinant of the Matrix4x4
and returns it, a Fraction
.
sourcefn cofactor(&self) -> Result<Self, MatrixError>
fn cofactor(&self) -> Result<Self, MatrixError>
Returns the cofactor of the Matrix4x4
.
sourcefn adjugate(&self) -> Result<Self, MatrixError>
fn adjugate(&self) -> Result<Self, MatrixError>
Returns the adjugate of the Matrix4x4
.
Equal to calling cofactor() and then transpose().
sourceimpl MulAssign<Matrix4x4> for Matrix4x4
impl MulAssign<Matrix4x4> for Matrix4x4
sourcefn mul_assign(&mut self, other: Matrix4x4)
fn mul_assign(&mut self, other: Matrix4x4)
Performs the
*=
operation. Read moresourceimpl SubAssign<Matrix4x4> for Matrix4x4
impl SubAssign<Matrix4x4> for Matrix4x4
sourcefn sub_assign(&mut self, other: Matrix4x4)
fn sub_assign(&mut self, other: Matrix4x4)
Performs the
-=
operation. Read moresourceimpl TransformVector<Vector3D> for Matrix4x4
impl TransformVector<Vector3D> for Matrix4x4
sourcefn transform_vector(&self, other: Vector3D) -> Result<Vector3D, VectorError>
fn transform_vector(&self, other: Vector3D) -> Result<Vector3D, VectorError>
Transforms a Vector3D
with the Matrix4x4
and returns the result, an Option<Vector3D>
.
impl Copy for Matrix4x4
impl Eq for Matrix4x4
Auto Trait Implementations
impl RefUnwindSafe for Matrix4x4
impl Send for Matrix4x4
impl Sync for Matrix4x4
impl Unpin for Matrix4x4
impl UnwindSafe for Matrix4x4
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more