[][src]Struct box2d_rs::b2_math::B2Mat33

pub struct B2Mat33 {
    pub ex: B2Vec3,
    pub ey: B2Vec3,
    pub ez: B2Vec3,
}

A 3-by-3 matrix. Stored in column-major order.

Fields

ex: B2Vec3ey: B2Vec3ez: 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]

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

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

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

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

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.