Package org.jbox2d.common
Class Transform
- java.lang.Object
-
- org.jbox2d.common.Transform
-
- All Implemented Interfaces:
java.io.Serializable
public class Transform extends java.lang.Object implements java.io.Serializable
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
p
public final Vec2 p
The translation caused by the transform
-
q
public final Rot q
A matrix representing a rotation
-
pool
private static Vec2 pool
-
-
Method Detail
-
set
public final void set(Vec2 p, float angle)
Set this based on the position and angle.- Parameters:
p
-angle
-
-
setIdentity
public final void setIdentity()
Set this to the identity transform.
-
mulTransToOutUnsafe
public static final void mulTransToOutUnsafe(Transform A, Transform B, Transform out)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-