English中文

BoundingSphere

new Cesium.BoundingSphere(center, radius)

具有中心和半径的边界球体。 A bounding sphere with a center and a radius.
名称 Name 类型 Type 默认值 Default 说明 Description
center Cartesian3 Cartesian3.ZERO 可选 optional 边界球体的中心。 The center of the bounding sphere.
radius number 0.0 可选 optional 边界球体的半径。 The radius of the bounding sphere.
另见: See:

成员 Members

static Cesium.BoundingSphere.packedLength : number

用于将对象打包到数组中的元素数量。 The number of elements used to pack the object into an array.
球体的中心点。 The center point of the sphere.
默认值: Default Value: Cartesian3.ZERO
球体的半径。 The radius of the sphere.
默认值: Default Value: 0.0

方法 Methods

static Cesium.BoundingSphere.clone(sphere, result)BoundingSphere

复制 BoundingSphere 实例。 Duplicates a BoundingSphere instance.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 要复制的边界球体。 The bounding sphere to duplicate.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 (如果球体未定义,则返回未定义) The modified result parameter or a new BoundingSphere instance if none was provided. (Returns undefined if sphere is undefined)

static Cesium.BoundingSphere.computePlaneDistances(sphere, position, direction, result)Interval

由从边界球体中心到投影到方向加上/减去边界球体半径的位置的矢量计算出的距离。 The distances calculated by the vector from the center of the bounding sphere to position projected onto direction plus/minus the radius of the bounding sphere.
如果您想象法线方向有无限多个平面,这将计算距与边界球相交的位置最近和最远平面的最小距离。 If you imagine the infinite number of planes with normal direction, this computes the smallest distance to the closest and farthest planes from position that intersect the bounding sphere.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 用于计算距离的边界球体。 The bounding sphere to calculate the distance to.
position Cartesian3 计算距离的位置。 The position to calculate the distance from.
direction Cartesian3 从位置开始的方向。 The direction from position.
result Interval 可选 optional 存储最近和最远距离的间隔。 A Interval to store the nearest and farthest distances.
返回: Returns:
边界球上距方向位置的最近和最远距离。 The nearest and farthest distances on the bounding sphere from position in direction.

static Cesium.BoundingSphere.distanceSquaredTo(sphere, cartesian)number

计算从边界球上最近的点到某个点的估计距离的平方。 Computes the estimated distance squared from the closest point on a bounding sphere to a point.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 球体。 The sphere.
cartesian Cartesian3 重点 The point
返回: Returns:
从边界球体到该点的距离的平方。如果该点位于球体内部,则返回 0。 The distance squared from the bounding sphere to the point. Returns 0 if the point is inside the sphere.
示例: Example:
// Sort bounding spheres from back to front
spheres.sort(function(a, b) {
    return Cesium.BoundingSphere.distanceSquaredTo(b, camera.positionWC) - Cesium.BoundingSphere.distanceSquaredTo(a, camera.positionWC);
});

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

比较提供的 BoundingSphere 组件并返回 Compares the provided BoundingSphere componentwise and returns true 如果它们相等, if they are equal, false otherwise.
名称 Name 类型 Type 说明 Description
left BoundingSphere 可选 optional 第一个边界球体。 The first BoundingSphere.
right BoundingSphere 可选 optional 第二个边界球体。 The second BoundingSphere.
返回: Returns:
true 如果左和右相等, if left and right are equal, false otherwise.

static Cesium.BoundingSphere.expand(sphere, point, result)BoundingSphere

通过放大提供的球体以包含提供的点来计算边界球体。 Computes a bounding sphere by enlarging the provided sphere to contain the provided point.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 一个可以扩展的领域。 A sphere to expand.
point Cartesian3 包围在边界球内的点。 A point to enclose in a bounding sphere.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.fromBoundingSpheres(boundingSpheres, result)BoundingSphere

计算封闭所提供的边界球数组的紧密拟合边界球。 Computes a tight-fitting bounding sphere enclosing the provided array of bounding spheres.
名称 Name 类型 Type 说明 Description
boundingSpheres Array.<BoundingSphere> 可选 optional 边界球体数组。 The array of bounding spheres.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.fromCornerPoints(corner, oppositeCorner, result)BoundingSphere

从轴对齐边界框的角点计算边界球体。球体紧紧地、完全地包围着盒子。 Computes a bounding sphere from the corner points of an axis-aligned bounding box. The sphere tightly and fully encompasses the box.
名称 Name 类型 Type 说明 Description
corner Cartesian3 可选 optional 矩形的最小高度。 The minimum height over the rectangle.
oppositeCorner Cartesian3 可选 optional 矩形的最大高度。 The maximum height over the rectangle.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.
示例: Example:
// Create a bounding sphere around the unit cube
const sphere = Cesium.BoundingSphere.fromCornerPoints(new Cesium.Cartesian3(-0.5, -0.5, -0.5), new Cesium.Cartesian3(0.5, 0.5, 0.5));

static Cesium.BoundingSphere.fromEllipsoid(ellipsoid, result)BoundingSphere

创建包围椭球体的边界球体。 Creates a bounding sphere encompassing an ellipsoid.
名称 Name 类型 Type 说明 Description
ellipsoid Ellipsoid 围绕其创建边界球体的椭球体。 The ellipsoid around which to create a bounding sphere.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.
示例: Example:
const boundingSphere = Cesium.BoundingSphere.fromEllipsoid(ellipsoid);

static Cesium.BoundingSphere.fromEncodedCartesianVertices(positionsHigh, positionsLow, result)BoundingSphere

计算包含 EncodedCartesian3 列表的紧密拟合边界球,其中点按 X、Y、Z 顺序存储在并行平面数组中。边界球是通过运行两种算法(朴素算法和 Ritter 算法)来计算的。两个球体中较小的一个用于确保紧密配合。 Computes a tight-fitting bounding sphere enclosing a list of EncodedCartesian3s, where the points are stored in parallel flat arrays in X, Y, Z, order. The bounding sphere is computed by running two algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to ensure a tight fit.
名称 Name 类型 Type 说明 Description
positionsHigh Array.<number> 可选 optional 边界球将包围的编码笛卡尔高位数组。每个点由数组中的三个元素按 X、Y、Z 的顺序组成。 An array of high bits of the encoded cartesians that the bounding sphere will enclose. Each point is formed from three elements in the array in the order X, Y, Z.
positionsLow Array.<number> 可选 optional 边界球将包围的编码笛卡尔低位数组。每个点由数组中的三个元素按 X、Y、Z 的顺序组成。 An array of low bits of the encoded cartesians that the bounding sphere will enclose. Each point is formed from three elements in the array in the order X, Y, Z.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if one was not provided.
另见: See:

static Cesium.BoundingSphere.fromOrientedBoundingBox(orientedBoundingBox, result)BoundingSphere

计算封闭所提供的定向边界框的紧配合边界球。 Computes a tight-fitting bounding sphere enclosing the provided oriented bounding box.
名称 Name 类型 Type 说明 Description
orientedBoundingBox OrientedBoundingBox 定向边界框。 The oriented bounding box.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

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

计算包围 3D 笛卡尔点列表的紧密拟合边界球。边界球是通过运行两种算法(朴素算法和 Ritter 算法)来计算的。两个球体中较小的一个用于确保紧密配合。 Computes a tight-fitting bounding sphere enclosing a list of 3D Cartesian points. The bounding sphere is computed by running two algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to ensure a tight fit.
名称 Name 类型 Type 说明 Description
positions Array.<Cartesian3> 可选 optional 边界球体将包围的点数组。每个点必须有 An array of points that the bounding sphere will enclose. Each point must have x, y, 和 , and z properties.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if one was not provided.
另见: See:

static Cesium.BoundingSphere.fromRectangle2D(rectangle, projection, result)BoundingSphere

根据二维投影的矩形计算边界球体。 Computes a bounding sphere from a rectangle projected in 2D.
名称 Name 类型 Type 默认值 Default 说明 Description
rectangle Rectangle 可选 optional 围绕其创建边界球体的矩形。 The rectangle around which to create a bounding sphere.
projection object GeographicProjection 可选 optional 用于将矩形投影为 2D 的投影。 The projection used to project the rectangle into 2D.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.fromRectangle3D(rectangle, ellipsoid, surfaceHeight, result)BoundingSphere

根据 3D 矩形计算边界球体。边界球体是使用椭圆体上的点的子样本创建的并包含在矩形中。对于所有类型的椭球体上的所有矩形来说,它可能并不准确。 Computes a bounding sphere from a rectangle in 3D. The bounding sphere is created using a subsample of points on the ellipsoid and contained in the rectangle. It may not be accurate for all rectangles on all types of ellipsoids.
名称 Name 类型 Type 默认值 Default 说明 Description
rectangle Rectangle 可选 optional 用于创建边界球体的有效矩形。 The valid rectangle used to create a bounding sphere.
ellipsoid Ellipsoid Ellipsoid.default 可选 optional 用于确定矩形位置的椭球体。 The ellipsoid used to determine positions of the rectangle.
surfaceHeight number 0.0 可选 optional 距椭球体表面的高度。 The height above the surface of the ellipsoid.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.fromRectangleWithHeights2D(rectangle, projection, minimumHeight, maximumHeight, result)BoundingSphere

根据二维投影的矩形计算边界球体。边界球体考虑了对象在矩形上的最小和最大高度。 Computes a bounding sphere from a rectangle projected in 2D. The bounding sphere accounts for the object's minimum and maximum heights over the rectangle.
名称 Name 类型 Type 默认值 Default 说明 Description
rectangle Rectangle 可选 optional 围绕其创建边界球体的矩形。 The rectangle around which to create a bounding sphere.
projection object GeographicProjection 可选 optional 用于将矩形投影为 2D 的投影。 The projection used to project the rectangle into 2D.
minimumHeight number 0.0 可选 optional 矩形的最小高度。 The minimum height over the rectangle.
maximumHeight number 0.0 可选 optional 矩形的最大高度。 The maximum height over the rectangle.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.fromTransformation(transformation, result)BoundingSphere

计算包围所提供的仿射变换的紧密拟合边界球。 Computes a tight-fitting bounding sphere enclosing the provided affine transformation.
名称 Name 类型 Type 说明 Description
transformation Matrix4 仿射变换。 The affine transformation.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.fromVertices(positions, center, stride, result)BoundingSphere

计算包围 3D 点列表的紧密拟合边界球,其中点按 X、Y、Z 顺序存储在平面数组中。边界球是通过运行两种算法(朴素算法和 Ritter 算法)来计算的。两个球体中较小的一个用于确保紧密配合。 Computes a tight-fitting bounding sphere enclosing a list of 3D points, where the points are stored in a flat array in X, Y, Z, order. The bounding sphere is computed by running two algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to ensure a tight fit.
名称 Name 类型 Type 默认值 Default 说明 Description
positions Array.<number> | TypedArray 可选 optional 边界球体将包围的点数组。每个点由数组中的三个元素按 X、Y、Z 的顺序组成。 An array of points that the bounding sphere will enclose. Each point is formed from three elements in the array in the order X, Y, Z.
center Cartesian3 Cartesian3.ZERO 可选 optional 位置的相对位置,不一定是坐标系的原点。当位置用于相对中心 (RTC) 渲染时,这非常有用。 The position to which the positions are relative, which need not be the origin of the coordinate system. This is useful when the positions are to be used for relative-to-center (RTC) rendering.
stride number 3 可选 optional 每个顶点的数组元素数。它必须至少为 3,但也可以更高。无论此参数的值如何,第一个位置的 X 坐标位于数组索引 0 处,Y 坐标位于数组索引 1 处,Z 坐标位于数组索引 2 处。当步幅为 3 时,下一个位置的 X 坐标从数组索引 3 开始。但是,如果步幅为 5,则跳过两个数组元素,下一个位置从数组索引 5 开始。 The number of array elements per vertex. It must be at least 3, but it may be higher. Regardless of the value of this parameter, the X coordinate of the first position is at array index 0, the Y coordinate is at array index 1, and the Z coordinate is at array index 2. When stride is 3, the X coordinate of the next position then begins at array index 3. If the stride is 5, however, two array elements are skipped and the next position begins at array index 5.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if one was not provided.
示例: Example:
// Compute the bounding sphere from 3 positions, each specified relative to a center.
// In addition to the X, Y, and Z coordinates, the points array contains two additional
// elements per point which are ignored for the purpose of computing the bounding sphere.
const center = new Cesium.Cartesian3(1.0, 2.0, 3.0);
const points = [1.0, 2.0, 3.0, 0.1, 0.2,
              4.0, 5.0, 6.0, 0.1, 0.2,
              7.0, 8.0, 9.0, 0.1, 0.2];
const sphere = Cesium.BoundingSphere.fromVertices(points, center, 5);
另见: See:

static Cesium.BoundingSphere.intersectPlane(sphere, plane)Intersect

确定球体位于平面的哪一侧。 Determines which side of a plane a sphere is located.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 要测试的边界球。 The bounding sphere to test.
plane Plane 要测试的飞机。 The plane to test against.
返回: Returns:
Intersect.INSIDE 如果整个球体位于法线指向的平面一侧, if the entire sphere is on the side of the plane the normal is pointing, Intersect.OUTSIDE 如果整个球体都在另一侧,并且 if the entire sphere is on the opposite side, and Intersect.INTERSECTING 如果球体与平面相交。 if the sphere intersects the plane.

static Cesium.BoundingSphere.isOccluded(sphere, occluder)boolean

确定球体是否被遮挡器隐藏在视图之外。 Determines whether or not a sphere is hidden from view by the occluder.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 包围被遮挡对象的边界球体。 The bounding sphere surrounding the occluded object.
occluder Occluder 遮挡器。 The occluder.
返回: Returns:
true 如果球体不可见;否则 if the sphere is not visible; otherwise false.

static Cesium.BoundingSphere.pack(value, array, startingIndex)Array.<number>

将提供的实例存储到提供的数组中。 Stores the provided instance into the provided array.
名称 Name 类型 Type 默认值 Default 说明 Description
value BoundingSphere 包装的价值。 The value to pack.
array Array.<number> 要打包到的数组。 The array to pack into.
startingIndex number 0 可选 optional 开始打包元素的数组索引。 The index into the array at which to start packing the elements.
返回: Returns:
被打包成的数组 The array that was packed into

static Cesium.BoundingSphere.projectTo2D(sphere, projection, result)BoundingSphere

根据 3D 世界坐标中的边界球体创建 2D 边界球体。 Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates.
名称 Name 类型 Type 默认值 Default 说明 Description
sphere BoundingSphere 要转换为 2D 的边界球体。 The bounding sphere to transform to 2D.
projection object GeographicProjection 可选 optional 2D 投影。 The projection to 2D.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.transform(sphere, transform, result)BoundingSphere

将 4x4 仿射变换矩阵应用于边界球。 Applies a 4x4 affine transformation matrix to a bounding sphere.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 要应用变换的边界球体。 The bounding sphere to apply the transformation to.
transform Matrix4 应用于边界球的变换矩阵。 The transformation matrix to apply to the bounding sphere.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.transformWithoutScale(sphere, transform, result)BoundingSphere

将 4x4 仿射变换矩阵应用于没有比例的边界球。变换矩阵未验证为具有统一比例 1。此方法比使用以下方法计算一般边界球变换更快 Applies a 4x4 affine transformation matrix to a bounding sphere where there is no scale The transformation matrix is not verified to have a uniform scale of 1. This method is faster than computing the general bounding sphere transform using BoundingSphere.transform.
名称 Name 类型 Type 说明 Description
sphere BoundingSphere 要应用变换的边界球体。 The bounding sphere to apply the transformation to.
transform Matrix4 应用于边界球的变换矩阵。 The transformation matrix to apply to the bounding sphere.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.
示例: Example:
const modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(positionOnEllipsoid);
const boundingSphere = new Cesium.BoundingSphere();
const newBoundingSphere = Cesium.BoundingSphere.transformWithoutScale(boundingSphere, modelMatrix);

static Cesium.BoundingSphere.union(left, right, result)BoundingSphere

计算包含左边界球和右边界球的边界球。 Computes a bounding sphere that contains both the left and right bounding spheres.
名称 Name 类型 Type 说明 Description
left BoundingSphere 包围在边界球体中的球体。 A sphere to enclose in a bounding sphere.
right BoundingSphere 包围在边界球体中的球体。 A sphere to enclose in a bounding sphere.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

static Cesium.BoundingSphere.unpack(array, startingIndex, result)BoundingSphere

从打包数组中检索实例。 Retrieves an instance from a packed array.
名称 Name 类型 Type 默认值 Default 说明 Description
array Array.<number> 打包的数组。 The packed array.
startingIndex number 0 可选 optional 要解包的元素的起始索引。 The starting index of the element to be unpacked.
result BoundingSphere 可选 optional 用于存储结果的对象。 The object into which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if one was not provided.
复制此 BoundingSphere 实例。 Duplicates this BoundingSphere instance.
名称 Name 类型 Type 说明 Description
result BoundingSphere 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
修改后的结果参数或新的 BoundingSphere 实例(如果未提供)。 The modified result parameter or a new BoundingSphere instance if none was provided.

computePlaneDistances(position, direction, result)Interval

由从边界球体中心到投影到方向加上/减去边界球体半径的位置的矢量计算出的距离。 The distances calculated by the vector from the center of the bounding sphere to position projected onto direction plus/minus the radius of the bounding sphere.
如果您想象法线方向有无限多个平面,这将计算距与边界球相交的位置最近和最远平面的最小距离。 If you imagine the infinite number of planes with normal direction, this computes the smallest distance to the closest and farthest planes from position that intersect the bounding sphere.
名称 Name 类型 Type 说明 Description
position Cartesian3 计算距离的位置。 The position to calculate the distance from.
direction Cartesian3 从位置开始的方向。 The direction from position.
result Interval 可选 optional 存储最近和最远距离的间隔。 A Interval to store the nearest and farthest distances.
返回: Returns:
边界球上距方向位置的最近和最远距离。 The nearest and farthest distances on the bounding sphere from position in direction.

distanceSquaredTo(cartesian)number

计算从边界球上最近的点到某个点的估计距离的平方。 Computes the estimated distance squared from the closest point on a bounding sphere to a point.
名称 Name 类型 Type 说明 Description
cartesian Cartesian3 重点 The point
返回: Returns:
从边界球到该点的估计距离的平方。 The estimated distance squared from the bounding sphere to the point.
示例: Example:
// Sort bounding spheres from back to front
spheres.sort(function(a, b) {
    return b.distanceSquaredTo(camera.positionWC) - a.distanceSquaredTo(camera.positionWC);
});

equals(right)boolean

将此 BoundingSphere 与提供的 BoundingSphere 组件进行比较并返回 Compares this BoundingSphere against the provided BoundingSphere componentwise and returns true 如果它们相等, if they are equal, false otherwise.
名称 Name 类型 Type 说明 Description
right BoundingSphere 可选 optional 右侧 BoundingSphere。 The right hand side BoundingSphere.
返回: Returns:
true 如果它们相等, if they are equal, false otherwise.
确定球体位于平面的哪一侧。 Determines which side of a plane the sphere is located.
名称 Name 类型 Type 说明 Description
plane Plane 要测试的飞机。 The plane to test against.
返回: Returns:
Intersect.INSIDE 如果整个球体位于法线指向的平面一侧, if the entire sphere is on the side of the plane the normal is pointing, Intersect.OUTSIDE 如果整个球体都在另一侧,并且 if the entire sphere is on the opposite side, and Intersect.INTERSECTING 如果球体与平面相交。 if the sphere intersects the plane.

isOccluded(occluder)boolean

确定球体是否被遮挡器隐藏在视图之外。 Determines whether or not a sphere is hidden from view by the occluder.
名称 Name 类型 Type 说明 Description
occluder Occluder 遮挡器。 The occluder.
返回: Returns:
true 如果球体不可见;否则 if the sphere is not visible; otherwise false.
计算 BoundingSphere 的半径。 Computes the radius of the BoundingSphere.
返回: Returns:
边界球体的半径。 The radius of the BoundingSphere.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.