Constructors
constructor
- new Box2(min?, max?): Box2
Properties
max
min
Methods
clampPoint
- clampPoint(point, target): Vector2
clone
- clone(): this
Returns this
containsBox
- containsBox(box): boolean
Returns boolean
containsPoint
- containsPoint(point): boolean
Returns boolean
copy
- copy(box): this
Returns this
distanceToPoint
- distanceToPoint(point): number
Returns number
empty
- empty(): any
Returns any
equals
- equals(box): boolean
Returns boolean
expandByPoint
- expandByPoint(point): Box2
expandByScalar
- expandByScalar(scalar): Box2
expandByVector
- expandByVector(vector): Box2
getCenter
- getCenter(target): Vector2
getParameter
- getParameter(point, target): Vector2
getSize
- getSize(target): Vector2
intersect
- intersect(box): Box2
intersectsBox
- intersectsBox(box): boolean
Returns boolean
isEmpty
- isEmpty(): boolean
Returns boolean
isIntersectionBox
- isIntersectionBox(b): any
Returns any
makeEmpty
- makeEmpty(): Box2
set
- set(min, max): Box2
setFromCenterAndSize
- setFromCenterAndSize(center, size): Box2
setFromPoints
- setFromPoints(points): Box2
translate
- translate(offset): Box2
union
- union(box): Box2
Default