Public Member Functions | Public Attributes | List of all members
b2Mat33 Struct Reference

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

#include <b2Math.h>

Public Member Functions

 b2Mat33 ()
 The default constructor does nothing (for performance). More...
 
 b2Mat33 (const b2Vec3 &c1, const b2Vec3 &c2, const b2Vec3 &c3)
 Construct this matrix using columns. More...
 
void GetInverse22 (b2Mat33 *M) const
 
void GetSymInverse33 (b2Mat33 *M) const
 Returns the zero matrix if singular. More...
 
void SetZero ()
 Set this matrix to all zeros. More...
 
b2Vec2 Solve22 (const b2Vec2 &b) const
 
b2Vec3 Solve33 (const b2Vec3 &b) const
 

Public Attributes

b2Vec3 ex
 
b2Vec3 ey
 
b2Vec3 ez
 

Detailed Description

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

Definition at line 256 of file b2Math.h.

Constructor & Destructor Documentation

b2Mat33::b2Mat33 ( )
inline

The default constructor does nothing (for performance).

Definition at line 259 of file b2Math.h.

b2Mat33::b2Mat33 ( const b2Vec3 c1,
const b2Vec3 c2,
const b2Vec3 c3 
)
inline

Construct this matrix using columns.

Definition at line 262 of file b2Math.h.

Member Function Documentation

void b2Mat33::GetInverse22 ( b2Mat33 M) const

Get the inverse of this matrix as a 2-by-2. Returns the zero matrix if singular.

Definition at line 56 of file b2Math.cpp.

void b2Mat33::GetSymInverse33 ( b2Mat33 M) const

Returns the zero matrix if singular.

Get the symmetric inverse of this matrix as a 3-by-3. Returns the zero matrix if singular.

Definition at line 71 of file b2Math.cpp.

void b2Mat33::SetZero ( )
inline

Set this matrix to all zeros.

Definition at line 270 of file b2Math.h.

b2Vec2 b2Mat33::Solve22 ( const b2Vec2 b) const

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.

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Definition at line 41 of file b2Math.cpp.

b2Vec3 b2Mat33::Solve33 ( const b2Vec3 b) const

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Definition at line 25 of file b2Math.cpp.

Member Data Documentation

b2Vec3 b2Mat33::ex

Definition at line 294 of file b2Math.h.

b2Vec3 b2Mat33::ey

Definition at line 294 of file b2Math.h.

b2Vec3 b2Mat33::ez

Definition at line 294 of file b2Math.h.


The documentation for this struct was generated from the following files:


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52