Constructors
constructor
- new Bounds(topLeft, bottomRight): Bounds
-
- new Bounds(points?): Bounds
-
Properties
Optional
max
Optional
min
Methods
contains
- contains(pointOrBounds): boolean
-
Returns boolean
equals
- equals(otherBounds): boolean
-
Returns boolean
extend
- extend(point): Bounds
-
- extend(otherBounds): Bounds
-
getBottomLeft
- getBottomLeft(): Point
-
getBottomRight
- getBottomRight(): Point
-
getCenter
- getCenter(round?): Point
-
getSize
- getSize(): Point
-
getTopLeft
- getTopLeft(): Point
-
getTopRight
- getTopRight(): Point
-
intersects
- intersects(otherBounds): boolean
-
Returns boolean
isValid
- isValid(): boolean
-
Returns boolean
overlaps
- overlaps(otherBounds): boolean
-
Returns boolean
pad
- pad(bufferRatio): Bounds
-