Class Transform

java.lang.Object
buildengine.math.Transform

public class Transform extends Object
This class contains information regarding the bounds of 2D objects and shapes. This class is not attached to any other class and can be instantiated at any point without any further information.
Author:
Kai v. Maurik
  • Field Details

    • position

      public Vector2f position
    • size

      public Vector2f size
    • rotation

      public float rotation
  • Constructor Details

    • Transform

      public Transform()
    • Transform

      public Transform(float x, float y)
    • Transform

      public Transform(float x, float y, float width, float height)
    • Transform

      public Transform(float x, float y, float width, float height, float rotation)
    • Transform

      public Transform(Vector2f position, float width, float height)
    • Transform

      public Transform(Vector2f position, float width, float height, float rotation)
    • Transform

      public Transform(Vector2f position)
    • Transform

      public Transform(Vector2f position, Vector2f size)
    • Transform

      public Transform(Vector2f position, Vector2f size, float rotation)
  • Method Details

    • set

      public Transform set(Vector2f position, Vector2f size, float rotation)
    • toRectangle

      public Rectangle toRectangle()
    • move

      public Transform move(Vector2f v)
    • move

      public Transform move(float x, float y)
    • move

      public Transform move(Vector2f v, Transform dest)
    • move

      public Transform move(float x, float y, Transform dest)
    • getPosition

      public Vector2f getPosition()
    • setPosition

      public void setPosition(Vector2f position)
    • setPosition

      public void setPosition(float x, float y)
    • getWidth

      public float getWidth()
    • getHeight

      public float getHeight()
    • getSize

      public Vector2f getSize()
    • setSize

      public void setSize(Vector2f size)
    • setSize

      public void setSize(float width, float height)
    • getRotation

      public float getRotation()
    • setRotation

      public void setRotation(float rotation)
    • valueOf

      public static Transform valueOf(String s)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • clone

      public Transform clone()
      Overrides:
      clone in class Object