b2Mat33 Struct Reference

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

#include <b2Math.h>

List of all members.

Public Member Functions

 b2Mat33 ()
 The default constructor does nothing (for performance).
 b2Mat33 (const b2Vec3 &c1, const b2Vec3 &c2, const b2Vec3 &c3)
 Construct this matrix using columns.
void SetZero ()
 Set this matrix to all zeros.
b2Vec3 Solve33 (const b2Vec3 &b) const
b2Vec2 Solve22 (const b2Vec2 &b) const

Public Attributes

b2Vec3 col1
b2Vec3 col2
b2Vec3 col3

Detailed Description

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


Constructor & Destructor Documentation

b2Mat33::b2Mat33 (  )  [inline]

The default constructor does nothing (for performance).

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

Construct this matrix using columns.


Member Function Documentation

void b2Mat33::SetZero (  )  [inline]

Set this matrix to all zeros.

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.

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.


Member Data Documentation


The documentation for this struct was generated from the following files:
Generated on Sat Apr 3 18:18:09 2010 for Box2D by  doxygen 1.6.3