[−][src]Struct box2d_rs::b2_math::B2Mat33
A 3-by-3 matrix. Stored in column-major order.
Fields
ex: B2Vec3
ey: B2Vec3
ez: B2Vec3
Implementations
impl B2Mat33
[src]
pub fn new(c1: B2Vec3, c2: B2Vec3, c3: B2Vec3) -> B2Mat33
[src]
Construct this matrix using columns.
pub fn set_zero(&mut self)
[src]
Set this matrix to all zeros.
pub fn zero() -> Self
[src]
pub fn solve33(self, b: B2Vec3) -> B2Vec3
[src]
solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.
pub fn solve22(self, b: B2vec2) -> B2vec2
[src]
solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. solve only the upper 2-by-2 matrix equation.
pub fn get_inverse22(self, m: &mut B2Mat33)
[src]
Get the inverse of this matrix as a 2-by-2. Returns the zero matrix if singular.
pub fn get_sym_inverse33(self, m: &mut B2Mat33)
[src]
Get the symmetric inverse of this matrix as a 3-by-3. Returns the zero matrix if singular.
Trait Implementations
impl Clone for B2Mat33
[src]
impl Copy for B2Mat33
[src]
impl Debug for B2Mat33
[src]
impl Default for B2Mat33
[src]
Auto Trait Implementations
impl RefUnwindSafe for B2Mat33
impl Send for B2Mat33
impl Sync for B2Mat33
impl Unpin for B2Mat33
impl UnwindSafe for B2Mat33
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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.
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>,