Constructors
constructor
- new Box2(min?, max?): Box2
Properties
Readonly
isBox2
isBox2: boolean
Methods
containsBox
- containsBox(box, distTol?): boolean
Parameters
distTol: number = Tolerance.global.distTol
Returns boolean
containsPoint
- containsPoint(point, distTol?): boolean
Parameters
distTol: number = Tolerance.global.distTol
Returns boolean
distanceToPoint
- distanceToPoint(point): number
Returns number
equals
- equals(box, distTol?): boolean
Parameters
distTol: number = Tolerance.global.distTol
Returns boolean
expandByPoint
- expandByPoint(point): Box2
expandByScalar
- expandByScalar(scalar): Box2
expandByVector
- expandByVector(vector): Box2
getParameter
- getParameter(point, target): Vector2
intersectsBox
- intersectsBox(box): boolean
Returns boolean
isEmpty
- isEmpty(): boolean
Returns boolean
isOverlapping
- isOverlapping(box, distTol?): boolean
Parameters
distTol: number = Tolerance.global.distTol
Returns boolean
isValid
- isValid(): boolean
Returns boolean
setFromCenterAndSize
- setFromCenterAndSize(center, size): Box2
setFromPoints
- setFromPoints(points): Box2