|
||||||||||
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 |
p
The translation caused by the transform |
Rot |
q
A matrix representing a rotation |
Constructor Summary | |
---|---|
Transform()
The default constructor. |
|
Transform(Transform xf)
Initialize as a copy of another transform. |
|
Transform(Vec2 _position,
Rot _R)
Initialize using a position vector and a rotation matrix. |
Method Summary | |
---|---|
static Transform |
mul(Transform A,
Transform B)
|
static Vec2 |
mul(Transform T,
Vec2 v)
|
static void |
mulToOut(Transform A,
Transform B,
Transform out)
|
static void |
mulToOut(Transform T,
Vec2 v,
Vec2 out)
|
static void |
mulToOutUnsafe(Transform A,
Transform B,
Transform out)
|
static void |
mulToOutUnsafe(Transform T,
Vec2 v,
Vec2 out)
|
static Transform |
mulTrans(Transform A,
Transform B)
|
static Vec2 |
mulTrans(Transform T,
Vec2 v)
|
static void |
mulTransToOut(Transform A,
Transform B,
Transform out)
|
static void |
mulTransToOut(Transform T,
Vec2 v,
Vec2 out)
|
static void |
mulTransToOutUnsafe(Transform A,
Transform B,
Transform out)
|
static void |
mulTransToOutUnsafe(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 p
public final Rot q
Constructor Detail |
---|
public Transform()
public Transform(Transform xf)
public Transform(Vec2 _position, Rot _R)
Method Detail |
---|
public final Transform set(Transform xf)
public final void set(Vec2 p, float angle)
p
- angle
- 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 void mulToOutUnsafe(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 static final void mulTransToOutUnsafe(Transform T, Vec2 v, Vec2 out)
public static final Transform mul(Transform A, Transform B)
public static final void mulToOut(Transform A, Transform B, Transform out)
public static final void mulToOutUnsafe(Transform A, Transform B, Transform out)
public static final Transform mulTrans(Transform A, Transform B)
public static final void mulTransToOut(Transform A, Transform B, Transform out)
public static final void mulTransToOutUnsafe(Transform A, Transform B, Transform 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 |