Returns the current matrix. If any transformations was made, the matrix is updated before
Returns the current origin
Returns the current position
Returns the current rotation
Returns the current rotation center
Returns the current scaling
Move the position by offset (x, y)
Move the position by offset (x, y)
Inc-/Decrease the rotation. If the rotation is <b>after</b> that not in range of 0 .. 360 it will be set to 0.
Inc-/Decrease the scaling
Inc-/Decrease the scaling
Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.
Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.
Sets the position
Sets the position
Set the rotation angle. If not in range of 0 .. 360 it will be set to 0.
Sets the center position
Sets the center of the rotation
Sets the scaling (for both, x and y)
Sets the scaling (for both, x and y)
Transformable is an abstract class which enables his child classes to be transformable which means that they have a position, can be scaled and can be rotated. For that purpose an additional Matrix is used (besides the Vector2f and float components) which maps the transformations.
See: Matrix4 See: Vector2f