Public Member Functions | Public Attributes
b2Mat22 Struct Reference

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

#include <b2Math.h>

List of all members.

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

Detailed Description

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

Definition at line 183 of file b2Math.h.


Constructor & Destructor Documentation

b2Mat22::b2Mat22 ( ) [inline]

The default constructor does nothing (for performance).

Definition at line 186 of file b2Math.h.

b2Mat22::b2Mat22 ( const b2Vec2 c1,
const b2Vec2 c2 
) [inline]

Construct this matrix using columns.

Definition at line 189 of file b2Math.h.

b2Mat22::b2Mat22 ( float32  a11,
float32  a12,
float32  a21,
float32  a22 
) [inline]

Construct this matrix using scalars.

Definition at line 196 of file b2Math.h.


Member Function Documentation

b2Mat22 b2Mat22::GetInverse ( ) const [inline]

Definition at line 223 of file b2Math.h.

void b2Mat22::Set ( const b2Vec2 c1,
const b2Vec2 c2 
) [inline]

Initialize this matrix using columns.

Definition at line 203 of file b2Math.h.

void b2Mat22::SetIdentity ( ) [inline]

Set this to the identity matrix.

Definition at line 210 of file b2Math.h.

void b2Mat22::SetZero ( ) [inline]

Set this matrix to all zeros.

Definition at line 217 of file b2Math.h.

b2Vec2 b2Mat22::Solve ( const b2Vec2 b) const [inline]

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 239 of file b2Math.h.


Member Data Documentation

Definition at line 253 of file b2Math.h.

Definition at line 253 of file b2Math.h.


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


mvsim
Author(s):
autogenerated on Thu Sep 7 2017 09:27:49