Struct heron::rapier_plugin::rapier::parry::utils::SdpMatrix3[][src]

pub struct SdpMatrix3<N> {
    pub m11: N,
    pub m12: N,
    pub m13: N,
    pub m22: N,
    pub m23: N,
    pub m33: N,
}

A 3x3 symmetric-definite-positive matrix.

Fields

m11: N

The component at the first row and first column of this matrix.

m12: N

The component at the first row and second column of this matrix.

m13: N

The component at the first row and third column of this matrix.

m22: N

The component at the second row and second column of this matrix.

m23: N

The component at the second row and third column of this matrix.

m33: N

The component at the third row and third column of this matrix.

Implementations

impl<N> SdpMatrix3<N> where
    N: SimdRealField
[src]

pub fn new(m11: N, m12: N, m13: N, m22: N, m23: N, m33: N) -> SdpMatrix3<N>[src]

A new SDP 3x3 matrix with the given components.

Because the matrix is symmetric, only the lower off-diagonal components is required.

pub fn from_sdp_matrix(
    mat: Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
) -> SdpMatrix3<N>
[src]

Build an SdpMatrix3 structure from a plain matrix, assuming it is SDP.

No check is performed to ensure mat is actually SDP.

pub fn zero() -> SdpMatrix3<N>[src]

Create a new SDP matrix filled with zeros.

pub fn diagonal(val: N) -> SdpMatrix3<N>[src]

Create a new SDP matrix with its diagonal filled with val, and its off-diagonal elements set to zero.

pub fn is_zero(&self) -> bool[src]

Are all components of this matrix equal to zero?

pub fn inverse_unchecked(&self) -> SdpMatrix3<N>[src]

Compute the inverse of this SDP matrix without performing any inversibility check.

pub fn quadform3x2(
    &self,
    m: &Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>
) -> SdpMatrix2<N>
[src]

Compute the quadratic form m.transpose() * self * m.

pub fn quadform(
    &self,
    m: &Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
) -> SdpMatrix3<N>
[src]

Compute the quadratic form m.transpose() * self * m.

pub fn add_diagonal(&self, elt: N) -> SdpMatrix3<N>[src]

Adds elt to the diagonal components of self.

Trait Implementations

impl<N> Add<SdpMatrix3<N>> for SdpMatrix3<N> where
    N: Add<N>, 
[src]

type Output = SdpMatrix3<<N as Add<N>>::Output>

The resulting type after applying the + operator.

impl<N> Clone for SdpMatrix3<N> where
    N: Clone
[src]

impl<N> Copy for SdpMatrix3<N> where
    N: Copy
[src]

impl<N> Debug for SdpMatrix3<N> where
    N: Debug
[src]

impl<T> From<[SdpMatrix3<f32>; 4]> for SdpMatrix3<T> where
    T: From<[f32; 4]>, 
[src]

impl<N> Mul<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>> for SdpMatrix3<N> where
    N: SimdRealField
[src]

type Output = Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>

The resulting type after applying the * operator.

impl<N> Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>> for SdpMatrix3<N> where
    N: SimdRealField
[src]

type Output = Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>

The resulting type after applying the * operator.

impl<N> Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>> for SdpMatrix3<N> where
    N: SimdRealField
[src]

type Output = Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>

The resulting type after applying the * operator.

impl Mul<f32> for SdpMatrix3<f32>[src]

type Output = SdpMatrix3<f32>

The resulting type after applying the * operator.

impl<N> PartialEq<SdpMatrix3<N>> for SdpMatrix3<N> where
    N: PartialEq<N>, 
[src]

impl<N> StructuralPartialEq for SdpMatrix3<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for SdpMatrix3<N> where
    N: RefUnwindSafe

impl<N> Send for SdpMatrix3<N> where
    N: Send

impl<N> Sync for SdpMatrix3<N> where
    N: Sync

impl<N> Unpin for SdpMatrix3<N> where
    N: Unpin

impl<N> UnwindSafe for SdpMatrix3<N> where
    N: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> Downcast<T> for T

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<T> TypeData for T where
    T: 'static + Send + Sync + Clone

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,