Transformable

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

This interface is provided for convenience, on top of Transform.

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]

The local origin of the object.

origin
Vector2f origin [@property getter]
Undocumented in source.
position
Vector2f position [@property setter]

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

position
Vector2f position [@property getter]
Undocumented in source.
rotation
float rotation [@property setter]

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

rotation
float rotation [@property getter]
Undocumented in source.
scale
Vector2f scale [@property setter]

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

scale
Vector2f scale [@property getter]
Undocumented in source.

See Also

Meta

Authors

Laurent Gomila, Jeremy DeHaan