Constructor
new Box2(min, max)
Methods
clone() → {Box2}
Returns a new Box2 with the same min and max as this one.
Returns:
- Type:
- Box2
copy(box) → {Box2}
Copies the min and max from box to this box.
Parameters:
Name | Type | Description |
---|---|---|
box | Box2 |
Returns:
- Type:
- Box2
set(x1, y1, x2, y2)
Parameters:
Name | Type | Description |
---|---|---|
x1 | number | |
y1 | number | |
x2 | number | |
y2 | number |