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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • 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
  • Constructor Details

    • Transform

      public Transform()
      The default constructor.
    • Transform

      public Transform(Transform xf)
      Initialize as a copy of another transform.
    • Transform

      public Transform(Vec2 _position, Rot _R)
      Initialize using a position vector and a rotation matrix.
  • Method Details