Struct euler::DMat3
[−]
[src]
#[repr(C)]pub struct DMat3 { pub m00: f64, pub m01: f64, pub m02: f64, pub m10: f64, pub m11: f64, pub m12: f64, pub m20: f64, pub m21: f64, pub m22: f64, }
Double-precision 2x2 column major matrix.
Fields
m00: f64
m01: f64
m02: f64
m10: f64
m11: f64
m12: f64
m20: f64
m21: f64
m22: f64
Methods
impl DMat3
[src]
fn new(
m00: f64,
m01: f64,
m02: f64,
m10: f64,
m11: f64,
m12: f64,
m20: f64,
m21: f64,
m22: f64
) -> Self
[src]
m00: f64,
m01: f64,
m02: f64,
m10: f64,
m11: f64,
m12: f64,
m20: f64,
m21: f64,
m22: f64
) -> Self
Full constructor.
fn identity() -> Self
[src]
Identity constructor.
fn diagonal(di: f64) -> Self
[src]
Diagonal constructor.
fn tridiagonal(lo: f64, di: f64, up: f64) -> Self
[src]
Tri-diagonal constructor.
impl DMat3
[src]
fn determinant(self) -> f64
[src]
Computes the matrix determinant.
fn trace(self) -> f64
[src]
Computes the matrix trace.
fn inverse(self) -> DMat3
[src]
Computes the matrix inverse.
Panics
Panics if the matrix has no inverse (i.e. has zero determinant).
fn transpose(self) -> DMat3
[src]
Returns the matrix transpose.
fn try_invert(self) -> Option<DMat3>
[src]
Attempts to compute the matrix inverse, returning None
if the matrix is
non-invertible (i.e. has zero determinant).
Trait Implementations
impl Clone for DMat3
[src]
fn clone(&self) -> DMat3
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DMat3
[src]
impl Debug for DMat3
[src]
impl PartialEq for DMat3
[src]
fn eq(&self, __arg_0: &DMat3) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DMat3) -> bool
[src]
This method tests for !=
.
impl Display for DMat3
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<f32> for DMat3
[src]
impl From<f64> for DMat3
[src]
impl From<Mat2> for DMat3
[src]
impl From<DMat2> for DMat3
[src]
impl From<Mat3> for DMat3
[src]
impl From<Mat4> for DMat3
[src]
impl From<DMat4> for DMat3
[src]
impl Add<DMat3> for DMat3
[src]
type Output = DMat3
The resulting type after applying the +
operator.
fn add(self, rhs: DMat3) -> Self::Output
[src]
Performs the +
operation.
impl Sub<DMat3> for DMat3
[src]
type Output = DMat3
The resulting type after applying the -
operator.
fn sub(self, rhs: DMat3) -> Self::Output
[src]
Performs the -
operation.
impl Mul<f64> for DMat3
[src]
type Output = DMat3
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
Performs the *
operation.
impl Mul<DVec3> for DMat3
[src]
type Output = DVec3
The resulting type after applying the *
operator.
fn mul(self, rhs: DVec3) -> Self::Output
[src]
Performs the *
operation.
impl<'a> Mul<DVec3> for &'a DMat3
[src]
type Output = DVec3
The resulting type after applying the *
operator.
fn mul(self, rhs: DVec3) -> Self::Output
[src]
Performs the *
operation.
impl Mul<DMat3> for DMat3
[src]
type Output = DMat3
The resulting type after applying the *
operator.
fn mul(self, rhs: DMat3) -> Self::Output
[src]
Performs the *
operation.
impl Default for DMat3
[src]
impl AsRef<[[f64; 3]; 3]> for DMat3
[src]
impl From<[[f64; 3]; 3]> for DMat3
[src]
impl Into<[[f64; 3]; 3]> for DMat3
[src]
impl ApproxEq for DMat3
[src]
type Epsilon = <Matrix3<f64> as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> Self::Epsilon
[src]
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
[src]
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
A test for equality that uses units in the last place (ULP) if the values are far apart.
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
The inverse of ApproxEq::ulps_eq
.