Struct oxygen_quark::matrix::matrix3x3::Matrix3x3
source · Fields
data: [Fraction; 9]
The matrix data.
Trait Implementations
sourceimpl AddAssign<Matrix3x3> for Matrix3x3
impl AddAssign<Matrix3x3> for Matrix3x3
sourcefn add_assign(&mut self, other: Matrix3x3)
fn add_assign(&mut self, other: Matrix3x3)
Performs the
+=
operation. Read moresourceimpl Matrix for Matrix3x3
impl Matrix for Matrix3x3
sourcefn from_slice(values: &[Self::Data]) -> Self
fn from_slice(values: &[Self::Data]) -> Self
Generates a new Matrix3x3
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 Matrix3x3
and returns it, a Fraction
.
sourcefn cofactor(&self) -> Result<Self, MatrixError>
fn cofactor(&self) -> Result<Self, MatrixError>
Returns the cofactor of the Matrix3x3
.
sourcefn adjugate(&self) -> Result<Self, MatrixError>
fn adjugate(&self) -> Result<Self, MatrixError>
Returns the adjugate of the Matrix3x3
.
Equal to calling cofactor() and then transpose().
sourceimpl MulAssign<Matrix3x3> for Matrix3x3
impl MulAssign<Matrix3x3> for Matrix3x3
sourcefn mul_assign(&mut self, other: Matrix3x3)
fn mul_assign(&mut self, other: Matrix3x3)
Performs the
*=
operation. Read moresourceimpl SubAssign<Matrix3x3> for Matrix3x3
impl SubAssign<Matrix3x3> for Matrix3x3
sourcefn sub_assign(&mut self, other: Matrix3x3)
fn sub_assign(&mut self, other: Matrix3x3)
Performs the
-=
operation. Read moresourceimpl TransformVector<Vector2D> for Matrix3x3
impl TransformVector<Vector2D> for Matrix3x3
sourcefn transform_vector(&self, other: Vector2D) -> Result<Vector2D, VectorError>
fn transform_vector(&self, other: Vector2D) -> Result<Vector2D, VectorError>
Transforms a Vector2D
with the Matrix3x3
and returns the result, a Option<Vector2D>
.
sourceimpl TransformVector<Vector3D> for Matrix3x3
impl TransformVector<Vector3D> for Matrix3x3
sourcefn transform_vector(&self, other: Vector3D) -> Result<Vector3D, VectorError>
fn transform_vector(&self, other: Vector3D) -> Result<Vector3D, VectorError>
Transforms a Vector3D
with the Matrix3x3
and returns the result, a Option<Vector3D>
.
impl Copy for Matrix3x3
impl Eq for Matrix3x3
Auto Trait Implementations
impl RefUnwindSafe for Matrix3x3
impl Send for Matrix3x3
impl Sync for Matrix3x3
impl Unpin for Matrix3x3
impl UnwindSafe for Matrix3x3
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