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

type b2XForm

source code


A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.

Instance Methods [hide private]
b2XForm
__init__(self)
__init__(self, b2Vec2 position, b2Mat22 R) -> b2XForm
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_b2XForm(b2XForm self)
 
SetIdentity(...)
b2XForm_SetIdentity(b2XForm self)
source code
Properties [hide private]
  thisown
The membership flag
  position
b2XForm_position_get(b2XForm self) -> b2Vec2
  R
b2XForm_R_get(b2XForm self) -> b2Mat22
Method Details [hide private]

__init__(self)
(Constructor)

source code 

__init__(self, b2Vec2 position, b2Mat22 R) -> b2XForm

Initialize using a position vector and a rotation matrix.

Returns: b2XForm
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. 

SetIdentity(...)

source code 

b2XForm_SetIdentity(b2XForm self)

Set this to the identity transform.


Property Details [hide private]

thisown

The membership flag

position

b2XForm_position_get(b2XForm self) -> b2Vec2

R

b2XForm_R_get(b2XForm self) -> b2Mat22