new Cesium.AxisAlignedBoundingBox(minimum, maximum, center)

从 x、 y 和 z 轴的最小点和最大点创建轴连接框实例.
Name Type Default Description
minimum Cartesian3 Cartesian3.ZERO optional The minimum point along the x, y, and z axes.
maximum Cartesian3 Cartesian3.ZERO optional The maximum point along the x, y, and z axes.
center Cartesian3 optional 框的中心;如果不提供则自动计算.
See:

Members

center : Cartesian3

边框中心点.

maximum : Cartesian3

定义边框的最大点 .
Default Value: Cartesian3.ZERO

minimum : Cartesian3

定义边框的最小点 .
Default Value: Cartesian3.ZERO

Methods

static Cesium.AxisAlignedBoundingBox.clone(box, result)AxisAlignedBoundingBox

复制 AxisContentBondingBox 实例 .
Name Type Description
box AxisAlignedBoundingBox 要复制的边框 .
result AxisAlignedBoundingBox optional 存储结果的对象 .
Returns:
The modified result parameter or a new AxisAlignedBoundingBox instance if none was provided. (Returns undefined if box is undefined)

static Cesium.AxisAlignedBoundingBox.equals(left, right)boolean

比较所提供的 AxisAcentingBox 组件并返回 -NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
Name Type Description
left AxisAlignedBoundingBox optional 第一个轴联BondingBox.
right AxisAlignedBoundingBox optional 第二轴联动BondingBox.
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .

static Cesium.AxisAlignedBoundingBox.fromCorners(minimum, maximum, result)AxisAlignedBoundingBox

从角落创建 AxisacontingBox 实例 .
Name Type Description
minimum Cartesian3 沿x,y,和z轴的最小点.
maximum Cartesian3 沿x,y,和z轴的最大点.
result AxisAlignedBoundingBox optional 存储结果的对象 .
Returns:
如果未提供修改的结果参数或新的 AxisAcontentBoundingBox 实例.
Example:
// Compute an axis aligned bounding box from the two corners.
const box = Cesium.AxisAlignedBoundingBox.fromCorners(new Cesium.Cartesian3(-1, -1, -1), new Cesium.Cartesian3(1, 1, 1));

static Cesium.AxisAlignedBoundingBox.fromPoints(positions, result)AxisAlignedBoundingBox

计算 AxisacontingBox 的实例 。 框由 在x、y和z轴上找到最远的点.
Name Type Description
positions Array.<Cartesian3> 边框将附上的点列表 。 每点必须拥有 x , y ,和 z 属性.
result AxisAlignedBoundingBox optional 存储结果的对象 .
Returns:
如果未提供修改的结果参数或新的 AxisAcontentBoundingBox 实例.
Example:
// Compute an axis aligned bounding box enclosing two points.
const box = Cesium.AxisAlignedBoundingBox.fromPoints([new Cesium.Cartesian3(2, 0, 0), new Cesium.Cartesian3(-2, 0, 0)]);

static Cesium.AxisAlignedBoundingBox.intersectAxisAlignedBoundingBox(box, other)boolean

确定两个轴对齐的边框是否交叉.
Name Type Description
box AxisAlignedBoundingBox first box
other AxisAlignedBoundingBox second box
Returns:
如果框相互交叉,则使用 NT 0 真 NT 1 ;否则, NT 2 假 NT 3 .

static Cesium.AxisAlignedBoundingBox.intersectPlane(box, plane)Intersect

确定一个平面框的哪一边.
Name Type Description
box AxisAlignedBoundingBox 边框来试.
plane Plane 要测试的飞机.
Returns:
Intersect.INSIDE if the entire box is on the side of the plane the normal is pointing, Intersect.OUTSIDE if the entire box is on the opposite side, and Intersect.INTERSECTING if the box 飞机交叉.

clone(result)AxisAlignedBoundingBox

复制此 AxisacontingBondingBox 实例 .
Name Type Description
result AxisAlignedBoundingBox optional 存储结果的对象 .
Returns:
如果未提供修改的结果参数或新的 AxisAcontentBoundingBox 实例.

equals(right)boolean

将此 AxisacontingBox 与 oxisacontingBox 组件比对,然后返回 -NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
Name Type Description
right AxisAlignedBoundingBox optional 右手侧 Axisacent BoundingBox. 中国植物物种信息数据库.
Returns:
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.

intersectAxisAlignedBoundingBox(other)boolean

确定其他轴对齐的边框是否与此框交叉.
Name Type Description
other AxisAlignedBoundingBox 另一轴对齐边框 .
Returns:
如果框相互交叉,则使用 NT 0 真 NT 1 ;否则, NT 2 假 NT 3 .

intersectPlane(plane)Intersect

确定此框所在的平面的哪一侧 .
Name Type Description
plane Plane 要测试的飞机.
Returns:
Intersect.INSIDE if the entire box is on the side of the plane the normal is pointing, Intersect.OUTSIDE if the entire box is on the opposite side, and Intersect.INTERSECTING if the box 飞机交叉.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.