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]
N: SimdRealField,
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]
mat: Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
) -> SdpMatrix3<N>
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]
&self,
m: &Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>
) -> SdpMatrix2<N>
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]
&self,
m: &Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
) -> SdpMatrix3<N>
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]
N: Add<N>,
type Output = SdpMatrix3<<N as Add<N>>::Output>
The resulting type after applying the +
operator.
pub fn add(
self,
rhs: SdpMatrix3<N>
) -> <SdpMatrix3<N> as Add<SdpMatrix3<N>>>::Output
[src]
self,
rhs: SdpMatrix3<N>
) -> <SdpMatrix3<N> as Add<SdpMatrix3<N>>>::Output
impl<N> Clone for SdpMatrix3<N> where
N: Clone,
[src]
N: Clone,
pub fn clone(&self) -> SdpMatrix3<N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N> Copy for SdpMatrix3<N> where
N: Copy,
[src]
N: Copy,
impl<N> Debug for SdpMatrix3<N> where
N: Debug,
[src]
N: Debug,
impl<T> From<[SdpMatrix3<f32>; 4]> for SdpMatrix3<T> where
T: From<[f32; 4]>,
[src]
T: From<[f32; 4]>,
pub fn from(data: [SdpMatrix3<f32>; 4]) -> SdpMatrix3<T>
[src]
impl<N> Mul<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>> for SdpMatrix3<N> where
N: SimdRealField,
[src]
N: SimdRealField,
type Output = Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>
The resulting type after applying the *
operator.
pub fn mul(
self,
rhs: Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>
) -> <SdpMatrix3<N> as Mul<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>>>::Output
[src]
self,
rhs: Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>
) -> <SdpMatrix3<N> as Mul<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>>>::Output
impl<N> Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>> for SdpMatrix3<N> where
N: SimdRealField,
[src]
N: SimdRealField,
type Output = Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>
The resulting type after applying the *
operator.
pub fn mul(
self,
rhs: Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>
) -> <SdpMatrix3<N> as Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>>>::Output
[src]
self,
rhs: Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>
) -> <SdpMatrix3<N> as Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 2_usize>>>>::Output
impl<N> Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>> for SdpMatrix3<N> where
N: SimdRealField,
[src]
N: SimdRealField,
type Output = Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
The resulting type after applying the *
operator.
pub fn mul(
self,
rhs: Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
) -> <SdpMatrix3<N> as Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>>>::Output
[src]
self,
rhs: Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>
) -> <SdpMatrix3<N> as Mul<Matrix<N, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<N, 3_usize, 3_usize>>>>::Output
impl Mul<f32> for SdpMatrix3<f32>
[src]
type Output = SdpMatrix3<f32>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: f32) -> <SdpMatrix3<f32> as Mul<f32>>::Output
[src]
impl<N> PartialEq<SdpMatrix3<N>> for SdpMatrix3<N> where
N: PartialEq<N>,
[src]
N: PartialEq<N>,
pub fn eq(&self, other: &SdpMatrix3<N>) -> bool
[src]
pub fn ne(&self, other: &SdpMatrix3<N>) -> bool
[src]
impl<N> StructuralPartialEq for SdpMatrix3<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for SdpMatrix3<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for SdpMatrix3<N> where
N: Send,
N: Send,
impl<N> Sync for SdpMatrix3<N> where
N: Sync,
N: Sync,
impl<N> Unpin for SdpMatrix3<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for SdpMatrix3<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Downcast<T> for T
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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]
T: Copy + PartialEq<T> + Debug + Any,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
T: 'static + Send + Sync + Clone,
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,