pub struct SpatialMat {
pub data: Mat6,
}Expand description
6x6 spatial matrix (inertia, transforms acting on spatial vectors).
Fields§
§data: Mat6Implementations§
Source§impl SpatialMat
impl SpatialMat
Sourcepub fn mul_vec(&self, v: &SpatialVec) -> SpatialVec
pub fn mul_vec(&self, v: &SpatialVec) -> SpatialVec
Multiply by a spatial vector.
Sourcepub fn mul_mat(&self, other: &SpatialMat) -> SpatialMat
pub fn mul_mat(&self, other: &SpatialMat) -> SpatialMat
Matrix-matrix multiply.
Sourcepub fn transpose(&self) -> SpatialMat
pub fn transpose(&self) -> SpatialMat
Transpose.
Trait Implementations§
Source§impl Add for SpatialMat
impl Add for SpatialMat
Source§type Output = SpatialMat
type Output = SpatialMat
The resulting type after applying the
+ operator.Source§fn add(self, rhs: SpatialMat) -> SpatialMat
fn add(self, rhs: SpatialMat) -> SpatialMat
Performs the
+ operation. Read moreSource§impl Clone for SpatialMat
impl Clone for SpatialMat
Source§fn clone(&self) -> SpatialMat
fn clone(&self) -> SpatialMat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpatialMat
impl Debug for SpatialMat
Source§impl Sub for SpatialMat
impl Sub for SpatialMat
Source§type Output = SpatialMat
type Output = SpatialMat
The resulting type after applying the
- operator.Source§fn sub(self, rhs: SpatialMat) -> SpatialMat
fn sub(self, rhs: SpatialMat) -> SpatialMat
Performs the
- operation. Read moreimpl Copy for SpatialMat
Auto Trait Implementations§
impl Freeze for SpatialMat
impl RefUnwindSafe for SpatialMat
impl Send for SpatialMat
impl Sync for SpatialMat
impl Unpin for SpatialMat
impl UnsafeUnpin for SpatialMat
impl UnwindSafe for SpatialMat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.