[][src]Struct polyhorn_ui::linalg::inter::LaplaceExpansion3D

pub struct LaplaceExpansion3D<'a, T> where
    T: Float
{ pub transform: &'a Transform3D<T>, pub blue: [T; 6], pub red: [T; 6], }

Container that memoizes the results of laplace expansion that is used to compute the determinant, adjugate and (as a result) the inverse of a 3D transformation matrix.

Fields

transform: &'a Transform3D<T>

Reference to the original transformation matrices that we will need to compute the adjugate matrix.

blue: [T; 6]

Coefficients of the blue areas.

red: [T; 6]

Coefficients of the red areas.

Implementations

impl<'a, T> LaplaceExpansion3D<'a, T> where
    T: Float
[src]

pub fn new(transform: &Transform3D<T>) -> LaplaceExpansion3D<'_, T>[src]

Returns a new laplace expansion of the given transformation matrix.

pub fn determinant(&self) -> T[src]

Returns the determinant of this transformation matrix.

pub fn adjugate(&self) -> Transform3D<T>[src]

Returns the adjugate of this transformation matrix.

pub fn inverse(&self) -> Option<Transform3D<T>>[src]

Returns the inverse of this transformation matrix (if it exists) using the determinant and adjugate. If the determinant is zero, this function returns None.

Trait Implementations

impl<'a, T: Clone> Clone for LaplaceExpansion3D<'a, T> where
    T: Float
[src]

impl<'a, T: Copy> Copy for LaplaceExpansion3D<'a, T> where
    T: Float
[src]

impl<'a, T: Debug> Debug for LaplaceExpansion3D<'a, T> where
    T: Float
[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for LaplaceExpansion3D<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for LaplaceExpansion3D<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for LaplaceExpansion3D<'a, T> where
    T: Sync

impl<'a, T> Unpin for LaplaceExpansion3D<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for LaplaceExpansion3D<'a, T> where
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.