RectExt extension

on

Properties

centerVector2 Vector2

Available on Rect, provided by the RectExt extension

no setter
positionVector2 Vector2

Available on Rect, provided by the RectExt extension

no setter
sizeVector2 Vector2

Available on Rect, provided by the RectExt extension

no setter

Methods

deflatexy(double deltaX, double deltaY) Rect

Available on Rect, provided by the RectExt extension

Returns a new rectangle with edges moved inwards by the given delta.
getRectangleByTileSize(double tileSize) Rectangle<num>

Available on Rect, provided by the RectExt extension

inflatexy(double deltaX, double deltaY) Rect

Available on Rect, provided by the RectExt extension

Returns a new rectangle with edges moved outwards by the given delta.
overlapComponent(PositionComponent c) bool

Available on Rect, provided by the RectExt extension