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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Transform
static final Vec2
static final void
static final void
static final void
mulToOutUnsafe
(Transform A, Transform B, Transform out) static final void
mulToOutUnsafe
(Transform T, Vec2 v, Vec2 out) static final Transform
static final Vec2
static final void
mulTransToOut
(Transform A, Transform B, Transform out) static final void
mulTransToOut
(Transform T, Vec2 v, Vec2 out) static final void
mulTransToOutUnsafe
(Transform A, Transform B, Transform out) static final void
mulTransToOutUnsafe
(Transform T, Vec2 v, Vec2 out) final Transform
Set this to equal another transform.final void
Set this based on the position and angle.final void
Set this to the identity transform.final java.lang.String
toString()
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
Initialize using a position vector and a rotation matrix.
-
-
Method Details
-
set
Set this to equal another transform. -
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:
toString
in classjava.lang.Object
-