Shape.getLocalBounds

Get the local bounding rectangle of the entity.

The returned rectangle is in local coordinates, which means that it ignores the transformations (translation, rotation, scale, ...) that are applied to the entity. In other words, this function returns the bounds of the entity in the entity's coordinate system.

class Shape
getLocalBounds
const
(
)

Return Value

Type: FloatRect

Local bounding rectangle of the entity.

Meta