|
@@ -66,7 +66,7 @@
|
|
|
|
|
|
<h2>方法(Methods)</h2>
|
|
|
|
|
|
- <h3>[method:Box3 applyMatrix4]( [param:Matrix4 matrix] )</h3>
|
|
|
+ <h3>[method:this applyMatrix4]( [param:Matrix4 matrix] )</h3>
|
|
|
<p>
|
|
|
[page:Matrix4 matrix] - 要应用的 [page:Matrix4] <br /><br />
|
|
|
|
|
@@ -97,7 +97,7 @@
|
|
|
当传入的值 [page:Vector3 point] 在包围盒内部或者边界都会返回true。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 copy]( [param:Box3 box] )</h3>
|
|
|
+ <h3>[method:this copy]( [param:Box3 box] )</h3>
|
|
|
<p>
|
|
|
[page:Box3 box] - 需要复制的包围盒 [page:Box3] 。<br /><br />
|
|
|
|
|
@@ -119,7 +119,7 @@
|
|
|
返回true如果传入的值与当前的对象 [page:Box3 box] 有相同的上下边界。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 expandByObject]( [param:Object3D object] )</h3>
|
|
|
+ <h3>[method:this expandByObject]( [param:Object3D object] )</h3>
|
|
|
<p>
|
|
|
[page:Object3D object] - 包裹在包围盒中的3d对象 [page:Object3D]。<br /><br />
|
|
|
|
|
@@ -128,21 +128,21 @@
|
|
|
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 expandByPoint]( [param:Vector3 point] )</h3>
|
|
|
+ <h3>[method:this expandByPoint]( [param:Vector3 point] )</h3>
|
|
|
<p>
|
|
|
[page:Vector3 point] - 需要在包围盒中的点 [page:Vector3]。<br /><br />
|
|
|
|
|
|
扩展这个包围盒的边界使得该点([page:Vector3 point])在包围盒内。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 expandByScalar]( [param:float scalar] )</h3>
|
|
|
+ <h3>[method:this expandByScalar]( [param:float scalar] )</h3>
|
|
|
<p>
|
|
|
[page:float scalar] - 扩展包围盒的比例。<br /><br />
|
|
|
|
|
|
按 [page:float scalar] 的值展开盒子的每个维度。如果是负数,盒子的尺寸会缩小。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 expandByVector]( [param:Vector3 vector] )</h3>
|
|
|
+ <h3>[method:this expandByVector]( [param:Vector3 vector] )</h3>
|
|
|
<p>
|
|
|
[page:Vector3 vector] - 扩展包围盒的数值 [page:Vector3] 。<br /><br />
|
|
|
|
|
@@ -182,12 +182,12 @@
|
|
|
返回包围盒的宽度,高度,和深度。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 intersect]( [param:Box3 box] )</h3>
|
|
|
+ <h3>[method:this intersect]( [param:Box3 box] )</h3>
|
|
|
<p>
|
|
|
[page:Box3 box] - 与包围盒的交集<br /><br />
|
|
|
|
|
|
- 返回此包围盒和 [page:Box3 box] 的交集,将此框的上界设置为两个框的max的较小部分,
|
|
|
- 将此包围盒的下界设置为两个包围盒的min的较大部分。
|
|
|
+ 计算此包围盒和 [page:Box3 box] 的交集,将此框的上界设置为两个框的max的较小部分,
|
|
|
+ 将此包围盒的下界设置为两个包围盒的min的较大部分。If there's no overlap, makes this box empty.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Boolean intersectsBox]( [param:Box3 box] )</h3>
|
|
@@ -224,10 +224,10 @@
|
|
|
注意,下界和上界相等的方框仍然包含一个点,即两个边界共享的那个点。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 makeEmpty]()</h3>
|
|
|
+ <h3>[method:this makeEmpty]()</h3>
|
|
|
<p>清空包围盒。</p>
|
|
|
|
|
|
- <h3>[method:Box3 set]( [param:Vector3 min], [param:Vector3 max] )</h3>
|
|
|
+ <h3>[method:this set]( [param:Vector3 min], [param:Vector3 max] )</h3>
|
|
|
<p>
|
|
|
[page:Vector3 min] - [page:Vector3] 表示下边界每个纬度(x,y,z)的值。<br />
|
|
|
[page:Vector3 max] - [page:Vector3] 表示上边界每个纬度(x,y,z)的值。<br /><br />
|
|
@@ -236,21 +236,21 @@
|
|
|
Please note that this method only copies the values from the given objects.
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 setFromArray]( [param:Array array] ) [param:Box3 this]</h3>
|
|
|
+ <h3>[method:this setFromArray]( [param:Array array] ) [param:Box3 this]</h3>
|
|
|
<p>
|
|
|
array -- 数组当中的所有的点都将被包围盒包裹。<br /><br />
|
|
|
|
|
|
设置包围盒的上下边界使得数组 *array* 中的所有点的点都被包含在内。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 setFromBufferAttribute]( [param:BufferAttribute attribute] ) [param:Box3 this]</h3>
|
|
|
+ <h3>[method:this setFromBufferAttribute]( [param:BufferAttribute attribute] ) [param:Box3 this]</h3>
|
|
|
<p>
|
|
|
[page:BufferAttribute attribute] - 位置的缓冲数据,包含在返回的包围盒内。<br /><br />
|
|
|
|
|
|
设置此包围盒的上边界和下边界,以包含 [page:BufferAttribute attribute] 中的所有位置数据。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 setFromCenterAndSize]( [param:Vector3 center], [param:Vector3 size] ) [param:Box3 this]</h3>
|
|
|
+ <h3>[method:this setFromCenterAndSize]( [param:Vector3 center], [param:Vector3 size] ) [param:Box3 this]</h3>
|
|
|
<p>
|
|
|
[page:Vector3 center], - 包围盒所要设置的中心位置。 <br>
|
|
|
[page:Vector3 size] - 包围盒所要设置的x、y和z尺寸(宽/高/长)。<br /><br />
|
|
@@ -258,7 +258,7 @@
|
|
|
将当前包围盒的中心点设置为 [page:Vector3 center] ,并将此包围盒的宽度,高度和深度设置为大小指定 [page:Vector3 size] 的值。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 setFromObject]( [param:Object3D object] )</h3>
|
|
|
+ <h3>[method:this setFromObject]( [param:Object3D object] )</h3>
|
|
|
<p>
|
|
|
[page:Object3D object] - 用来计算包围盒的3D对象 [page:Object3D]。<br /><br />
|
|
|
|
|
@@ -267,14 +267,14 @@
|
|
|
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 setFromPoints]( [param:Array points] )</h3>
|
|
|
+ <h3>[method:this setFromPoints]( [param:Array points] )</h3>
|
|
|
<p>
|
|
|
[page:Array points] - 计算出的包围盒将包含数组中所有的点 [page:Vector3 Vector3s]<br /><br />
|
|
|
|
|
|
设置此包围盒的上边界和下边界,以包含数组 [page:Array points] 中的所有点。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 translate]( [param:Vector3 offset] )</h3>
|
|
|
+ <h3>[method:this translate]( [param:Vector3 offset] )</h3>
|
|
|
<p>
|
|
|
[page:Vector3 offset] - 偏移方向和距离。<br /><br />
|
|
|
|
|
@@ -282,9 +282,9 @@
|
|
|
偏移量为 [page:Vector3 offset] 大小。
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Box3 union]( [param:Box3 box] )</h3>
|
|
|
+ <h3>[method:this union]( [param:Box3 box] )</h3>
|
|
|
<p>
|
|
|
- [page:Box3 box] - 要结合在一起的包围盒。<br /><br />
|
|
|
+ [page:Box3 box] - 将被用于与该盒子计算并集的盒子。<br /><br />
|
|
|
|
|
|
在 [page:Box3 box] 参数的上边界和已有box对象的上边界之间取较大者,而对两者的下边界取较小者,这样获得一个新的较大的联合盒子。
|
|
|
</p>
|