Package org.jbox2d.common
Class Transform
java.lang.Object
org.jbox2d.common.Transform
- All Implemented Interfaces:
Serializable
A transform contains translation and rotation. It is used to represent the
position and orientation of rigid frames.
- Author:
- Daniel Murphy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Transformstatic Vec2static voidstatic voidstatic voidmulToOutUnsafe(Transform A, Transform B, Transform out) static voidmulToOutUnsafe(Transform T, Vec2 v, Vec2 out) static Transformstatic Vec2static voidmulTransToOut(Transform A, Transform B, Transform out) static voidmulTransToOut(Transform T, Vec2 v, Vec2 out) static voidmulTransToOutUnsafe(Transform A, Transform B, Transform out) static 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 StringtoString()
-
Field Details
-
p
The translation caused by the transform -
q
A matrix representing a rotation
-
-
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. -
setIdentity
public final void setIdentity()Set this to the identity transform. -
mul
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransToOut
-
mulTransToOutUnsafe
-
mul
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransToOut
-
mulTransToOutUnsafe
-
toString
-