|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox2d.common.XForm
public class XForm
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
| Field Summary | |
|---|---|
static XForm |
identity
The identity transform |
Vec2 |
position
The translation caused by the transform |
Mat22 |
R
A matrix representing a rotation |
| Constructor Summary | |
|---|---|
XForm()
The default constructor. |
|
XForm(Vec2 _position,
Mat22 _R)
Initialize using a position vector and a rotation matrix. |
|
XForm(XForm xf)
Initialize as a copy of another transform. |
|
| Method Summary | |
|---|---|
static Vec2 |
mul(XForm T,
Vec2 v)
|
static Vec2 |
mulT(XForm T,
Vec2 v)
|
void |
set(XForm xf)
Set this to equal another transform. |
void |
setIdentity()
Set this to the identity transform. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Vec2 position
public Mat22 R
public static XForm identity
| Constructor Detail |
|---|
public XForm()
public XForm(XForm xf)
public XForm(Vec2 _position,
Mat22 _R)
| Method Detail |
|---|
public void set(XForm xf)
public void setIdentity()
public static Vec2 mul(XForm T,
Vec2 v)
public static Vec2 mulT(XForm T,
Vec2 v)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||