Constructors
constructor
-
-
Parameters
Properties
max
min
Accessors
center
-
points
-
size
-
Methods
checkValid
-
Returns boolean
isPointInBox
- isPointInBox(point: Vector2, tolerance?: number): boolean
-
Parameters
Returns boolean
setMax
-
Parameters
Returns void
setMin
-
Parameters
Returns void
Static createByGeometry
-
Parameters
A Box2
Static createByPoints
-
Parameters
A Box2
表示一个二维平面中的 AABB 盒子
+---------+ | | | | | | +---------+
Class representing a bounding box in Two-dimensional coordinate system