|
||||||||||
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
|
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 void |
mulToOut(XForm T,
Vec2 v,
Vec2 out)
|
static Vec2 |
mulTrans(XForm T,
Vec2 v)
|
static void |
mulTransToOut(XForm T,
Vec2 v,
Vec2 out)
|
void |
set(XForm xf)
Set this to equal another transform. |
void |
setIdentity()
Set this to the identity transform. |
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 final void set(XForm xf)
public final void setIdentity()
public static final Vec2 mul(XForm T, Vec2 v)
public static final void mulToOut(XForm T, Vec2 v, Vec2 out)
public static final Vec2 mulTrans(XForm T, Vec2 v)
public static final void mulTransToOut(XForm T, Vec2 v, Vec2 out)
public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |