cesium-native
0.41.0
|
#include <CesiumGeospatial/S2CellBoundingVolume.h>
Public Member Functions | |
S2CellBoundingVolume (const S2CellID &cellID, double minimumHeight, double maximumHeight, const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) | |
const S2CellID & | getCellID () const |
Gets this bounding volume's cell ID. | |
double | getMinimumHeight () const noexcept |
Gets the minimum height of the cell. | |
double | getMaximumHeight () const noexcept |
Gets the maximum height of the cell. | |
glm::dvec3 | getCenter () const noexcept |
Gets the center of this bounding volume in ellipsoid-fixed (ECEF) coordinates. | |
gsl::span< const glm::dvec3 > | getVertices () const noexcept |
Gets the either corners of the bounding volume, in ellipsoid-fixed (ECEF) coordinates. More... | |
CesiumGeometry::CullingResult | intersectPlane (const CesiumGeometry::Plane &plane) const noexcept |
Determines on which side of a plane the bounding volume is located. More... | |
double | computeDistanceSquaredToPosition (const glm::dvec3 &position) const noexcept |
Computes the distance squared from a given position to the closest point on this bounding volume. The position must be expressed in ellipsoid-centered (ECEF) coordinates. More... | |
gsl::span< const CesiumGeometry::Plane > | getBoundingPlanes () const noexcept |
Gets the six planes that bound the volume. More... | |
BoundingRegion | computeBoundingRegion (const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) const noexcept |
Computes the bounding begion that best fits this S2 cell volume. More... | |
A tile bounding volume specified as an S2 cell token with minimum and maximum heights. The bounding volume is a k DOP. A k-DOP is the Boolean intersection of extents along k directions.
cellID | The S2 cell ID. |
minimumHeight | The minimum height of the bounding volume. |
maximumHeight | The maximum height of the bounding volume. |
ellipsoid | The ellipsoid. |
Definition at line 28 of file S2CellBoundingVolume.h.
|
noexcept |
Computes the bounding begion that best fits this S2 cell volume.
|
noexcept |
Computes the distance squared from a given position to the closest point on this bounding volume. The position must be expressed in ellipsoid-centered (ECEF) coordinates.
position | The position |
|
noexcept |
Gets the six planes that bound the volume.
size()
of 6.
|
noexcept |
Gets the either corners of the bounding volume, in ellipsoid-fixed (ECEF) coordinates.
size()
of 8.
|
noexcept |
Determines on which side of a plane the bounding volume is located.
plane | The plane to test against. |
Inside
if the entire region is on the side of the plane the normal is pointing.Outside
if the entire region is on the opposite side.Intersecting
if the region intersects the plane.