Package buildengine.math
Class Transform
java.lang.Object
buildengine.math.Transform
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
float
float
getSize()
float
getWidth()
move
(float x, float y) void
setPosition
(float x, float y) void
setPosition
(Vector2f position) void
setRotation
(float rotation) void
setSize
(float width, float height) void
toString()
static Transform
-
Field Details
-
position
-
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
-
Transform
-
Transform
-
Transform
-
Transform
-
-
Method Details
-
set
-
toRectangle
-
move
-
move
-
move
-
move
-
getPosition
-
setPosition
-
setPosition
public void setPosition(float x, float y) -
getWidth
public float getWidth() -
getHeight
public float getHeight() -
getSize
-
setSize
-
setSize
public void setSize(float width, float height) -
getRotation
public float getRotation() -
setRotation
public void setRotation(float rotation) -
valueOf
-
toString
-
equals
-
clone
-