Class 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:
    Serialized Form
    • Field Detail

      • 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 Detail

      • 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.