Package pybox2d :: Module Box2D :: Class b2Mat33
[hide private]
[frames] | no frames]

type b2Mat33

source code


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

Instance Methods [hide private]
b2Mat33
__init__(self)
__init__(self, b2Vec3 c1, b2Vec3 c2, b2Vec3 c3) -> b2Mat33
source code
 
__repr__(self) source code
 
__getstate__(self, additional_ignore=[])
Returns a dictionary representation of self, with dict(var=value [, ...])
source code
 
__setstate__(self, dict)
Takes each variable=value pair in the dictionary and sets the attributes based on them
source code
 
__swig_destroy__(...)
delete_b2Mat33(b2Mat33 self)
 
SetZero(...)
b2Mat33_SetZero(b2Mat33 self)
source code
 
Solve33(...)
b2Mat33_Solve33(b2Mat33 self, b2Vec3 b) -> b2Vec3
source code
 
Solve22(...)
b2Mat33_Solve22(b2Mat33 self, b2Vec2 b) -> b2Vec2
source code
Properties [hide private]
  thisown
The membership flag
  col1
b2Mat33_col1_get(b2Mat33 self) -> b2Vec3
  col2
b2Mat33_col2_get(b2Mat33 self) -> b2Vec3
  col3
b2Mat33_col3_get(b2Mat33 self) -> b2Vec3
Method Details [hide private]

__init__(self)
(Constructor)

source code 

__init__(self, b2Vec3 c1, b2Vec3 c2, b2Vec3 c3) -> b2Mat33

Construct this matrix using columns.

Returns: b2Mat33
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

__getstate__(self, additional_ignore=[])

source code 

Returns a dictionary representation of self, with 
 dict(var=value [, ...])

additional_ignore can be specified to ignore certain
properties. 

SetZero(...)

source code 

b2Mat33_SetZero(b2Mat33 self)

Set this matrix to all zeros.

Solve33(...)

source code 

b2Mat33_Solve33(b2Mat33 self, b2Vec3 b) -> b2Vec3

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

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

Solve22(...)

source code 

b2Mat33_Solve22(b2Mat33 self, b2Vec2 b) -> b2Vec2

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.


Property Details [hide private]

thisown

The membership flag

col1

b2Mat33_col1_get(b2Mat33 self) -> b2Vec3

col2

b2Mat33_col2_get(b2Mat33 self) -> b2Vec3

col3

b2Mat33_col3_get(b2Mat33 self) -> b2Vec3