|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.common.Transform
public class Transform
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
Field Summary | |
---|---|
Vec2 |
position
The translation caused by the transform |
Mat22 |
R
A matrix representing a rotation |
Constructor Summary | |
---|---|
Transform()
The default constructor. |
|
Transform(Transform xf)
Initialize as a copy of another transform. |
|
Transform(Vec2 _position,
Mat22 _R)
Initialize using a position vector and a rotation matrix. |
Method Summary | |
---|---|
float |
getAngle()
Calculate the angle that the rotation matrix represents. |
static Vec2 |
mul(Transform T,
Vec2 v)
|
static void |
mulToOut(Transform T,
Vec2 v,
Vec2 out)
|
static Vec2 |
mulTrans(Transform T,
Vec2 v)
|
static void |
mulTransToOut(Transform T,
Vec2 v,
Vec2 out)
|
Transform |
set(Transform xf)
Set this to equal another transform. |
void |
set(Vec2 p,
float angle)
Set this based on the position and angle. |
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 final Vec2 position
public final Mat22 R
Constructor Detail |
---|
public Transform()
public Transform(Transform xf)
public Transform(Vec2 _position, Mat22 _R)
Method Detail |
---|
public final Transform set(Transform xf)
public final void set(Vec2 p, float angle)
p
- angle
- public final float getAngle()
public final void setIdentity()
public static final Vec2 mul(Transform T, Vec2 v)
public static final void mulToOut(Transform T, Vec2 v, Vec2 out)
public static final Vec2 mulTrans(Transform T, Vec2 v)
public static final void mulTransToOut(Transform 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 |