|
@@ -93,6 +93,22 @@
|
|
|
Determines whether or not this box intersects *plane*.
|
|
|
</div>
|
|
|
|
|
|
+ <h3>[method:Box3 setFromArray]( [page:Array array] ) [page:Box3 this]</h3>
|
|
|
+ <div>
|
|
|
+ array -- An array of position data that the resulting box will envelop.
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ Sets the upper and lower bounds of this box to include all of the data in *array*.
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h3>[method:Box3 setFromBuffer]( [page:BufferAttribute buffer] ) [page:Box3 this]</h3>
|
|
|
+ <div>
|
|
|
+ buffer -- An buffer attribute of position data that the resulting box will envelop.
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ Sets the upper and lower bounds of this box to include all of the data in *buffer*.
|
|
|
+ </div>
|
|
|
+
|
|
|
<h3>[method:Box3 setFromPoints]( [page:Array points] ) [page:Box3 this]</h3>
|
|
|
<div>
|
|
|
points -- Set of points that the resulting box will envelop.
|
|
@@ -101,6 +117,16 @@
|
|
|
Sets the upper and lower bounds of this box to include all of the points in *points*.
|
|
|
</div>
|
|
|
|
|
|
+ <h3>[method:Box3 setFromCenterAndSize]( [page:Vector3 center], [page:Vector3 size] ) [page:Box3 this]</h3>
|
|
|
+ <div>
|
|
|
+ center -- Desired center position of the box. <br>
|
|
|
+ size -- Desired x, y and z dimensions of the box.
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ Centers this box on *center* and sets this box's width, height and depth to the values specified <br>
|
|
|
+ in *size*.
|
|
|
+ </div>
|
|
|
+
|
|
|
<h3>[method:Box3 setFromObject]( [page:Object3D object] ) [page:Box3 this]</h3>
|
|
|
<div>
|
|
|
object -- [page:Object3D] to compute the bounding box for.
|
|
@@ -262,16 +288,6 @@
|
|
|
If the point lies inside of this box, the distance will be 0.
|
|
|
</div>
|
|
|
|
|
|
- <h3>[method:Box3 setFromCenterAndSize]( [page:Vector3 center], [page:Vector3 size] ) [page:Box3 this]</h3>
|
|
|
- <div>
|
|
|
- center -- Desired center position of the box. <br>
|
|
|
- size -- Desired x, y and z dimensions of the box.
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- Centers this box on *center* and sets this box's width, height and depth to the values specified <br>
|
|
|
- in *size*.
|
|
|
- </div>
|
|
|
-
|
|
|
<h2>Source</h2>
|
|
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|