PackageBox2D.Common.Math
Classpublic class b2XForm
Sourceb2XForm.as

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



Public Properties
 PropertyDefined by
  position : b2Vec2
b2XForm
  R : b2Mat22
b2XForm
Public Methods
 MethodDefined by
  
b2XForm(pos:b2Vec2 = null, r:b2Mat22 = null)
The default constructor does nothing (for performance).
b2XForm
  
Initialize(pos:b2Vec2, r:b2Mat22):void
Initialize using a position vector and a rotation matrix.
b2XForm
  
Set(x:b2XForm):void
b2XForm
  
SetIdentity():void
Set this to the identity transform.
b2XForm
Property detail
positionproperty
public var position:b2Vec2
Rproperty 
public var R:b2Mat22
Constructor detail
b2XForm()constructor
public function b2XForm(pos:b2Vec2 = null, r:b2Mat22 = null)

The default constructor does nothing (for performance).

Parameters
pos:b2Vec2 (default = null)
 
r:b2Mat22 (default = null)
Method detail
Initialize()method
public function Initialize(pos:b2Vec2, r:b2Mat22):void

Initialize using a position vector and a rotation matrix.

Parameters
pos:b2Vec2
 
r:b2Mat22
Set()method 
public function Set(x:b2XForm):voidParameters
x:b2XForm
SetIdentity()method 
public function SetIdentity():void

Set this to the identity transform.