[name]
Represents a boundary box in 3d space.
Constructor
[name]([page:Vector3 min], [page:Vector3 max])
min -- Lower (x, y, z) boundary of the box.
max -- Upper (x, y, z) boundary of the box.
Creates a box bounded by min and max
Properties
.[page:Vector3 max]
Upper (x, y, z) boundary of this box.
.[page:Vector3 min]
Lower (x, y, z) boundary of this box.
Methods
.set([page:Vector3 min], [page:Vector3 max]) [page:Box3 this]
min -- Upper (x, y, z) boundary of this box.
max -- Lower (x, y, z) boundary of this box.
todo
.applyMatrix4([page:Matrix4 matrix]) [page:Box3 this]
matrix -- Transform the box with a matrix.
todo
.expandByPoint([page:Vector3 point]) [page:Box3 this]
Expands the box outwards by the point. It takes the min and max values of the box.
.clampPoint([page:Vector3 point], [page:todo optionalTarget]) [page:todo]
point -- todo
optionalTarget -- todo
todo
.isIntersectionBox([page:todo box]) [page:todo]
box -- todo
todo
.setFromPoints([page:todo points]) [page:todo]
points -- todo
todo
.size([page:todo optionalTarget]) [page:todo]
optionalTarget -- todo
todo
.union([page:todo box]) [page:todo]
box -- todo
todo
.getParameter([page:todo point]) [page:todo]
point -- todo
todo
.expandByScalar([page:todo scalar]) [page:todo]
scalar -- todo
todo
.intersect([page:todo box]) [page:todo]
box -- todo
todo
.containsBox([page:todo box]) [page:todo]
box -- todo
todo
.translate([page:todo offset]) [page:todo]
offset -- todo
todo
.empty() [page:todo]
todo
.clone() [page:todo]
todo
.equals([page:todo box]) [page:todo]
box -- todo
todo
.expandByVector([page:todo vector]) [page:todo]
vector -- todo
todo
.copy([page:todo box]) [page:todo]
box -- todo
todo
.makeEmpty() [page:todo]
todo
.center([page:todo optionalTarget]) [page:todo]
optionalTarget -- todo
todo
.getBoundingSphere([page:todo optionalTarget]) [page:todo]
optionalTarget -- todo
todo
.distanceToPoint([page:todo point]) [page:todo]
point -- todo
todo
.containsPoint([page:todo point]) [page:todo]
point -- todo
todo
.setFromCenterAndSize([page:todo center], [page:todo size]) [page:todo]
center -- todo
size -- todo
todo
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]