| Package | Description | 
|---|---|
| org.cesiumjs.cs.core | |
| org.cesiumjs.cs.core.geometry | |
| org.cesiumjs.cs.core.options | |
| org.cesiumjs.cs.scene | 
| Modifier and Type | Method and Description | 
|---|---|
| BoundingSphere | BoundingSphere. clone()Duplicates this BoundingSphere instance. | 
| static BoundingSphere | BoundingSphere. clone(BoundingSphere sphere)Duplicates a BoundingSphere instance. | 
| static BoundingSphere | BoundingSphere. clone(BoundingSphere sphere,
     BoundingSphere result)Duplicates a BoundingSphere instance. | 
| static BoundingSphere | BoundingSphere. expand(BoundingSphere sphere,
      Cartesian3 point)Computes a bounding sphere by enlarging the provided sphere to contain the provided point. | 
| static BoundingSphere | BoundingSphere. expand(BoundingSphere sphere,
      Cartesian3 point,
      BoundingSphere result)Computes a bounding sphere by enlarging the provided sphere to contain the provided point. | 
| static BoundingSphere | BoundingSphere. fromBoundingSpheres(BoundingSphere[] boundingSpheres)Computes a tight-fitting bounding sphere enclosing the provided array of bounding spheres. | 
| static BoundingSphere | BoundingSphere. fromBoundingSpheres(BoundingSphere[] boundingSpheres,
                   BoundingSphere result)Computes a tight-fitting bounding sphere enclosing the provided array of bounding spheres. | 
| static BoundingSphere | BoundingSphere. fromCornerPoints(Cartesian3 corner,
                Cartesian3 oppositeCorner)Computes a bounding sphere from the corner points of an axis-aligned bounding box. | 
| static BoundingSphere | BoundingSphere. fromCornerPoints(Cartesian3 corner,
                Cartesian3 oppositeCorner,
                BoundingSphere result)Computes a bounding sphere from the corner points of an axis-aligned bounding box. | 
| static BoundingSphere | BoundingSphere. fromEllipsoid(Ellipsoid ellipsoid)Creates a bounding sphere encompassing an ellipsoid. | 
| static BoundingSphere | BoundingSphere. fromEllipsoid(Ellipsoid ellipsoid,
             BoundingSphere result)Creates a bounding sphere encompassing an ellipsoid. | 
| static BoundingSphere | BoundingSphere. fromEncodedCartesianVertices(double[] positionsHigh,
                            double[] positionsLow)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. | 
| static BoundingSphere | BoundingSphere. fromEncodedCartesianVertices(double[] positionsHigh,
                            double[] positionsLow,
                            BoundingSphere result)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. | 
| static BoundingSphere | BoundingSphere. fromOrientedBoundingBox(OrientedBoundingBox orientedBoundingBox)Computes a tight-fitting bounding sphere enclosing the provided oriented bounding box. | 
| static BoundingSphere | BoundingSphere. fromOrientedBoundingBox(OrientedBoundingBox orientedBoundingBox,
                       BoundingSphere result)Computes a tight-fitting bounding sphere enclosing the provided oriented bounding box. | 
| static BoundingSphere | BoundingSphere. fromPoints(Cartesian3[] positions,
          BoundingSphere result)Computes a tight-fitting bounding sphere enclosing a list of 3D Cartesian points. | 
| static BoundingSphere | BoundingSphere. fromRectangle2D(Rectangle rectangle)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromRectangle2D(Rectangle rectangle,
               Object projection)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromRectangle2D(Rectangle rectangle,
               Object projection,
               BoundingSphere result)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromRectangle3D(Rectangle rectangle)Computes a bounding sphere from an rectangle in 3D. | 
| static BoundingSphere | BoundingSphere. fromRectangle3D(Rectangle rectangle,
               Ellipsoid ellipsoid,
               double surfaceHeight)Computes a bounding sphere from an rectangle in 3D. | 
| static BoundingSphere | BoundingSphere. fromRectangle3D(Rectangle rectangle,
               Ellipsoid ellipsoid,
               double surfaceHeight,
               BoundingSphere result)Computes a bounding sphere from an rectangle in 3D. | 
| static BoundingSphere | BoundingSphere. fromRectangleWithHeights2D(Rectangle rectangle,
                          Object projection,
                          double minimumHeight,
                          double maximumHeight)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromRectangleWithHeights2D(Rectangle rectangle,
                          Object projection,
                          double minimumHeight,
                          double maximumHeight,
                          BoundingSphere result)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromVertices(double[] positions)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. | 
| static BoundingSphere | BoundingSphere. fromVertices(double[] positions,
            Cartesian3 center,
            int stride)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. | 
| static BoundingSphere | BoundingSphere. fromVertices(double[] positions,
            Cartesian3 center,
            int stride,
            BoundingSphere result)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. | 
| static BoundingSphere | BoundingSphere. projectTo2D(BoundingSphere sphere)Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates. | 
| static BoundingSphere | BoundingSphere. projectTo2D(BoundingSphere sphere,
           Object projection)Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates. | 
| static BoundingSphere | BoundingSphere. projectTo2D(BoundingSphere sphere,
           Object projection,
           BoundingSphere result)Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates. | 
| static BoundingSphere | BoundingSphere. transform(BoundingSphere sphere,
         Matrix4 transform)Applies a 4x4 affine transformation matrix to a bounding sphere. | 
| static BoundingSphere | BoundingSphere. transform(BoundingSphere sphere,
         Matrix4 transform,
         BoundingSphere result)Applies a 4x4 affine transformation matrix to a bounding sphere. | 
| static BoundingSphere | BoundingSphere. transformWithoutScale(BoundingSphere sphere,
                     Matrix4 transform)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. | 
| static BoundingSphere | BoundingSphere. transformWithoutScale(BoundingSphere sphere,
                     Matrix4 transform,
                     BoundingSphere result)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. | 
| static BoundingSphere | BoundingSphere. union(BoundingSphere left,
     BoundingSphere right)Computes a bounding sphere that contains both the left and right bounding spheres. | 
| static BoundingSphere | BoundingSphere. union(BoundingSphere left,
     BoundingSphere right,
     BoundingSphere result)Computes a bounding sphere that contains both the left and right bounding spheres. | 
| static BoundingSphere | BoundingSphere. unpack(double[] array)Retrieves an instance from a packed array. | 
| static BoundingSphere | BoundingSphere. unpack(double[] array,
      int startingIndex)Retrieves an instance from a packed array. | 
| static BoundingSphere | BoundingSphere. unpack(double[] array,
      int startingIndex,
      BoundingSphere result)Retrieves an instance from a packed array. | 
| Modifier and Type | Method and Description | 
|---|---|
| static BoundingSphere | BoundingSphere. clone(BoundingSphere sphere)Duplicates a BoundingSphere instance. | 
| static BoundingSphere | BoundingSphere. clone(BoundingSphere sphere,
     BoundingSphere result)Duplicates a BoundingSphere instance. | 
| static Object | Occluder. computeOccludeePoint(BoundingSphere occluderBoundingSphere,
                    Cartesian3 occludeePosition,
                    Cartesian3[] positions)Computes a point that can be used as the occludee position to the visibility functions. | 
| static Interval | BoundingSphere. computePlaneDistances(BoundingSphere sphere,
                     Cartesian3 position,
                     Cartesian3 direction)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. | 
| static Interval | BoundingSphere. computePlaneDistances(BoundingSphere sphere,
                     Cartesian3 position,
                     Cartesian3 direction,
                     Interval result)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. | 
| Number | Occluder. computeVisibility(BoundingSphere occludeeBS)Determine to what extent an occludee is visible (not visible, partially visible, or fully visible). | 
| static double | BoundingSphere. distanceSquaredTo(BoundingSphere sphere,
                 Cartesian3 cartesian)Computes the estimated distance squared from the closest point on a bounding sphere to a point. | 
| boolean | BoundingSphere. equals(BoundingSphere right)Compares this BoundingSphere against the provided BoundingSphere componentwise and returns true if they are equal, false otherwise. | 
| static boolean | BoundingSphere. equals(BoundingSphere left,
      BoundingSphere right)Compares the provided BoundingSphere componentwise and returns true if they are equal, false otherwise. | 
| static BoundingSphere | BoundingSphere. expand(BoundingSphere sphere,
      Cartesian3 point)Computes a bounding sphere by enlarging the provided sphere to contain the provided point. | 
| static BoundingSphere | BoundingSphere. expand(BoundingSphere sphere,
      Cartesian3 point,
      BoundingSphere result)Computes a bounding sphere by enlarging the provided sphere to contain the provided point. | 
| static CullingVolume | CullingVolume. fromBoundingSphere(BoundingSphere boundingSphere)Constructs a culling volume from a bounding sphere. | 
| static Occluder | Occluder. fromBoundingSphere(BoundingSphere occluderBoundingSphere,
                  Cartesian3 cameraPosition)Creates an occluder from a bounding sphere and the camera position. | 
| static Occluder | Occluder. fromBoundingSphere(BoundingSphere occluderBoundingSphere,
                  Cartesian3 cameraPosition,
                  Occluder result)Creates an occluder from a bounding sphere and the camera position. | 
| static CullingVolume | CullingVolume. fromBoundingSphere(BoundingSphere boundingSphere,
                  CullingVolume result)Constructs a culling volume from a bounding sphere. | 
| static BoundingSphere | BoundingSphere. fromBoundingSpheres(BoundingSphere[] boundingSpheres)Computes a tight-fitting bounding sphere enclosing the provided array of bounding spheres. | 
| static BoundingSphere | BoundingSphere. fromBoundingSpheres(BoundingSphere[] boundingSpheres,
                   BoundingSphere result)Computes a tight-fitting bounding sphere enclosing the provided array of bounding spheres. | 
| static BoundingSphere | BoundingSphere. fromBoundingSpheres(BoundingSphere[] boundingSpheres,
                   BoundingSphere result)Computes a tight-fitting bounding sphere enclosing the provided array of bounding spheres. | 
| static BoundingSphere | BoundingSphere. fromCornerPoints(Cartesian3 corner,
                Cartesian3 oppositeCorner,
                BoundingSphere result)Computes a bounding sphere from the corner points of an axis-aligned bounding box. | 
| static BoundingSphere | BoundingSphere. fromEllipsoid(Ellipsoid ellipsoid,
             BoundingSphere result)Creates a bounding sphere encompassing an ellipsoid. | 
| static BoundingSphere | BoundingSphere. fromEncodedCartesianVertices(double[] positionsHigh,
                            double[] positionsLow,
                            BoundingSphere result)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. | 
| static BoundingSphere | BoundingSphere. fromOrientedBoundingBox(OrientedBoundingBox orientedBoundingBox,
                       BoundingSphere result)Computes a tight-fitting bounding sphere enclosing the provided oriented bounding box. | 
| static BoundingSphere | BoundingSphere. fromPoints(Cartesian3[] positions,
          BoundingSphere result)Computes a tight-fitting bounding sphere enclosing a list of 3D Cartesian points. | 
| static BoundingSphere | BoundingSphere. fromRectangle2D(Rectangle rectangle,
               Object projection,
               BoundingSphere result)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromRectangle3D(Rectangle rectangle,
               Ellipsoid ellipsoid,
               double surfaceHeight,
               BoundingSphere result)Computes a bounding sphere from an rectangle in 3D. | 
| static BoundingSphere | BoundingSphere. fromRectangleWithHeights2D(Rectangle rectangle,
                          Object projection,
                          double minimumHeight,
                          double maximumHeight,
                          BoundingSphere result)Computes a bounding sphere from an rectangle projected in 2D. | 
| static BoundingSphere | BoundingSphere. fromVertices(double[] positions,
            Cartesian3 center,
            int stride,
            BoundingSphere result)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. | 
| static Integer | BoundingSphere. intersectPlane(BoundingSphere sphere,
              Plane plane)Determines which side of a plane a sphere is located. | 
| boolean | Occluder. isBoundingSphereVisible(BoundingSphere occludee)Determines whether or not a sphere, the occludee, is hidden from view by the occluder. | 
| static boolean | BoundingSphere. isOccluded(BoundingSphere sphere,
          Occluder occluder)Determines whether or not a sphere is hidden from view by the occluder. | 
| static Interval | IntersectionTests. lineSegmentSphere(Cartesian3 p0,
                 Cartesian3 p1,
                 BoundingSphere sphere)Computes the intersection points of a line segment with a sphere. | 
| static Interval | IntersectionTests. lineSegmentSphere(Cartesian3 p0,
                 Cartesian3 p1,
                 BoundingSphere sphere,
                 Interval result)Computes the intersection points of a line segment with a sphere. | 
| static double[] | BoundingSphere. pack(BoundingSphere value,
    double[] array)Stores the provided instance into the provided array. | 
| static double[] | BoundingSphere. pack(BoundingSphere value,
    double[] array,
    int startingIndex)Stores the provided instance into the provided array. | 
| static BoundingSphere | BoundingSphere. projectTo2D(BoundingSphere sphere)Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates. | 
| static BoundingSphere | BoundingSphere. projectTo2D(BoundingSphere sphere,
           Object projection)Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates. | 
| static BoundingSphere | BoundingSphere. projectTo2D(BoundingSphere sphere,
           Object projection,
           BoundingSphere result)Creates a bounding sphere in 2D from a bounding sphere in 3D world coordinates. | 
| static Interval | IntersectionTests. raySphere(Ray ray,
         BoundingSphere sphere)Computes the intersection points of a ray with a sphere. | 
| static Interval | IntersectionTests. raySphere(Ray ray,
         BoundingSphere sphere,
         Interval result)Computes the intersection points of a ray with a sphere. | 
| static BoundingSphere | BoundingSphere. transform(BoundingSphere sphere,
         Matrix4 transform)Applies a 4x4 affine transformation matrix to a bounding sphere. | 
| static BoundingSphere | BoundingSphere. transform(BoundingSphere sphere,
         Matrix4 transform,
         BoundingSphere result)Applies a 4x4 affine transformation matrix to a bounding sphere. | 
| static BoundingSphere | BoundingSphere. transformWithoutScale(BoundingSphere sphere,
                     Matrix4 transform)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. | 
| static BoundingSphere | BoundingSphere. transformWithoutScale(BoundingSphere sphere,
                     Matrix4 transform,
                     BoundingSphere result)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. | 
| static BoundingSphere | BoundingSphere. union(BoundingSphere left,
     BoundingSphere right)Computes a bounding sphere that contains both the left and right bounding spheres. | 
| static BoundingSphere | BoundingSphere. union(BoundingSphere left,
     BoundingSphere right,
     BoundingSphere result)Computes a bounding sphere that contains both the left and right bounding spheres. | 
| static BoundingSphere | BoundingSphere. unpack(double[] array,
      int startingIndex,
      BoundingSphere result)Retrieves an instance from a packed array. | 
| Constructor and Description | 
|---|
| Occluder(BoundingSphere occluderBoundingSphere,
        Cartesian3 cameraPosition)Creates an Occluder derived from an object's position and radius, as well as the camera position. | 
| Modifier and Type | Field and Description | 
|---|---|
| BoundingSphere | Geometry. boundingSphereAn optional bounding sphere that fully encloses the geometry. | 
| Modifier and Type | Field and Description | 
|---|---|
| BoundingSphere | GeometryOptions. boundingSphereAn optional bounding sphere that fully enclosed the geometry. | 
| Modifier and Type | Method and Description | 
|---|---|
| BoundingSphere | TimeDynamicPointCloud. boundingSphere()The bounding sphere of the frame being rendered. | 
| BoundingSphere | Cesium3DTileset. boundingSphere()The tileset's bounding sphere. | 
| BoundingSphere | Cesium3DTile. boundingSphere()Get the bounding sphere derived from the tile's bounding volume. | 
| BoundingSphere | Model. boundingSphere()The model's bounding sphere in its local coordinate system. | 
| Modifier and Type | Method and Description | 
|---|---|
| double | Camera. distanceToBoundingSphere(BoundingSphere boundingSphere)Return the distance from the camera to the front of the bounding sphere. | 
| void | Camera. flyToBoundingSphere(BoundingSphere boundingSphere,
                   CameraFlyToOptions options)Flies the camera to a location where the current view contains the provided bounding sphere. | 
| double | Camera. getPixelSize(BoundingSphere boundingSphere,
            double drawingBufferWidth,
            double drawingBufferHeight)Return the pixel size in meters. | 
| void | Camera. viewBoundingSphere(BoundingSphere boundingSphere)Sets the camera so that the current view contains the provided bounding sphere. | 
| void | Camera. viewBoundingSphere(BoundingSphere boundingSphere,
                  HeadingPitchRange offset)Sets the camera so that the current view contains the provided bounding sphere. | 
Copyright © 2019. All rights reserved.