A 2-by-2 matrix. Stored in column-major order. More...
#include <b2Math.h>
Public Member Functions | |
b2Mat22 () | |
The default constructor does nothing (for performance). | |
b2Mat22 (const b2Vec2 &c1, const b2Vec2 &c2) | |
Construct this matrix using columns. | |
b2Mat22 (float32 a11, float32 a12, float32 a21, float32 a22) | |
Construct this matrix using scalars. | |
b2Mat22 | GetInverse () const |
void | Set (const b2Vec2 &c1, const b2Vec2 &c2) |
Initialize this matrix using columns. | |
void | SetIdentity () |
Set this to the identity matrix. | |
void | SetZero () |
Set this matrix to all zeros. | |
b2Vec2 | Solve (const b2Vec2 &b) const |
Public Attributes | |
b2Vec2 | ex |
b2Vec2 | ey |
b2Mat22::b2Mat22 | ( | ) | [inline] |
b2Mat22::b2Mat22 | ( | const b2Vec2 & | c1, |
const b2Vec2 & | c2 | ||
) | [inline] |
b2Mat22::b2Mat22 | ( | float32 | a11, |
float32 | a12, | ||
float32 | a21, | ||
float32 | a22 | ||
) | [inline] |
b2Mat22 b2Mat22::GetInverse | ( | ) | const [inline] |
void b2Mat22::Set | ( | const b2Vec2 & | c1, |
const b2Vec2 & | c2 | ||
) | [inline] |
void b2Mat22::SetIdentity | ( | ) | [inline] |
void b2Mat22::SetZero | ( | ) | [inline] |
b2Vec2 b2Mat22::Solve | ( | const b2Vec2 & | b | ) | const [inline] |