Transformable

Decomposed transform defined by a position, a rotation, and a scale.

Members

Functions

getInverseTransform
const(Transform) getInverseTransform()

Get the combined transform of the object.

getTransform
const(Transform) getTransform()

Get the inverse of the combined transform of the object.

move
void move(Vector2f offset)

Move the object by a given offset.

Properties

origin
Vector2f origin [@property setter]
Vector2f origin [@property getter]

The local origin of the object.

position
Vector2f position [@property setter]
Vector2f position [@property getter]

The position of the object. The default is (0, 0).

rotation
float rotation [@property setter]
float rotation [@property getter]

The orientation of the object, in degrees. The default is 0 degrees.

scale
Vector2f scale [@property setter]
Vector2f scale [@property getter]

The scale factors of the object. The default is (1, 1).

Meta