Class Transform

java.lang.Object
org.jbox2d.common.Transform
All Implemented Interfaces:
Serializable

public class Transform extends Object implements Serializable
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
See Also:
  • Field Details

    • p

      public final Vec2 p
      The translation caused by the transform
    • q

      public final Rot q
      A matrix representing a rotation
  • 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