[−][src]Struct polyhorn_ios::linalg::inter::LaplaceExpansion3D
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]
T: Float,
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 for LaplaceExpansion3D<'a, T> where
T: Clone + Float,
[src]
T: Clone + Float,
fn clone(&self) -> LaplaceExpansion3D<'a, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> Copy for LaplaceExpansion3D<'a, T> where
T: Copy + Float,
[src]
T: Copy + Float,
impl<'a, T> Debug for LaplaceExpansion3D<'a, T> where
T: Debug + Float,
[src]
T: Debug + Float,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for LaplaceExpansion3D<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for LaplaceExpansion3D<'a, T> where
T: Send + Sync,
T: Send + Sync,
impl<'a, T> Sync for LaplaceExpansion3D<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for LaplaceExpansion3D<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for LaplaceExpansion3D<'a, T> where
T: RefUnwindSafe + UnwindSafe,
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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
fn type_name(&self) -> &'static str
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,