RectExt extension
- on
Properties
- centerVector2 → Vector2
-
no setter
- positionVector2 → Vector2
-
no setter
- sizeVector2 → Vector2
-
no setter
Methods
-
deflatexy(
double deltaX, double deltaY) → Rect - Returns a new rectangle with edges moved inwards by the given delta.
-
getRectangleByTileSize(
double tileSize) → Rectangle< num> -
inflatexy(
double deltaX, double deltaY) → Rect - Returns a new rectangle with edges moved outwards by the given delta.
-
overlapComponent(
PositionComponent c) → bool