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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Transformstatic final Vec2static final voidstatic final voidstatic final voidmulToOutUnsafe(Transform A, Transform B, Transform out) static final voidmulToOutUnsafe(Transform T, Vec2 v, Vec2 out) static final Transformstatic final Vec2static final voidmulTransToOut(Transform A, Transform B, Transform out) static final voidmulTransToOut(Transform T, Vec2 v, Vec2 out) static final voidmulTransToOutUnsafe(Transform A, Transform B, Transform out) static final voidmulTransToOutUnsafe(Transform T, Vec2 v, Vec2 out) final TransformSet this to equal another transform.final voidSet this based on the position and angle.final voidSet this to the identity transform.final java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
p
The translation caused by the transform -
q
A matrix representing a rotation -
pool
-
-
Constructor Details
-
Transform
public Transform()The default constructor. -
Transform
Initialize as a copy of another transform. -
Transform
-
-
Method Details
-
set
-
set
Set this based on the position and angle.- Parameters:
p-angle-
-
setIdentity
public final void setIdentity()Set this to the identity transform. -
mul
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransToOut
-
mulTransToOutUnsafe
-
mul
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransToOut
-
mulTransToOutUnsafe
-
toString
public final java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-