Threepp.Box3¶
Axis-aligned bounding box (AABB) class
Members¶
Constructors¶
Properties¶
Methods¶
- set
- clone
- copy
- makeEmpty
- isEmpty
- getCenter
- getSize
- expandByPoint
- expandByVector
- expandByScalar
- containsPoint
- containsBox
- intersectsBox
- intersectsSphere
- intersectsPlane
- distanceToPoint
- intersect
- union_
- applyMatrix4
- translate
- equals
Box3¶
Constructor
Arguments
| Arguments | Default | Description |
|---|---|---|
min |
|
Lower bound (Vector3). |
max |
|
Upper bound (Vector3). |
Description
Constructor
min¶
Property \ Access: r/w
Description
Lower bound (read-only)
max¶
Property \ Access: r/w
Description
Upper bound (read-only)
set¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
min |
|
|
max |
|
Description
Sets the values
clone¶
Method
Description
Clones the box
copy¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Copies another box
makeEmpty¶
Method
Description
Makes the box empty
isEmpty¶
Method
Description
Whether the box is empty
getCenter¶
Method
Description
Gets the center
getSize¶
Method
Description
Gets the size
expandByPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
Description
Expands the box to include a point
expandByVector¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
vector |
|
Description
Expands the box by a vector
expandByScalar¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
scalar |
|
Description
Expands the box by a scalar
containsPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
Description
Whether the box contains a point
containsBox¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Whether the box contains another box
intersectsBox¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Whether the box intersects another box
intersectsSphere¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sphere |
|
Description
Whether the box intersects a sphere
intersectsPlane¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
plane |
|
Description
Whether the box intersects a plane
distanceToPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
Description
Distance to a point
intersect¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Gets the intersection
union_¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Gets the union
applyMatrix4¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
m |
|
Description
Applies a matrix
translate¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
offset |
|
Description
Translates the box
equals¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Equality test