A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
More...
#include <CesiumGeospatial/BoundingRegion.h>
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
Definition at line 22 of file BoundingRegion.h.
◆ BoundingRegion()
CesiumGeospatial::BoundingRegion::BoundingRegion |
( |
const GlobeRectangle & |
rectangle, |
|
|
double |
minimumHeight, |
|
|
double |
maximumHeight, |
|
|
const Ellipsoid &ellipsoid |
CESIUM_DEFAULT_ELLIPSOID |
|
) |
| |
Constructs a new bounding region.
- Parameters
-
rectangle | The bounding rectangle of the region. |
minimumHeight | The minimum height in meters. |
maximumHeight | The maximum height in meters. |
ellipsoid | The ellipsoid on which this region is defined. |
◆ computeDistanceSquaredToPosition() [1/3]
double CesiumGeospatial::BoundingRegion::computeDistanceSquaredToPosition |
( |
const Cartographic & |
cartographicPosition, |
|
|
const glm::dvec3 & |
cartesianPosition |
|
) |
| const |
|
noexcept |
Computes the distance-squared from a position to the closest point in this bounding region, when the longitude-latitude-height and ellipsoid-centered Cartesian coordinates of the position are both already known.
- Parameters
-
cartographicPosition | The position as a longitude-latitude-height. |
cartesianPosition | The position as ellipsoid-centered Cartesian coordinates. |
- Returns
- The distance-squared from the position to the closest point in the bounding region.
◆ computeDistanceSquaredToPosition() [2/3]
double CesiumGeospatial::BoundingRegion::computeDistanceSquaredToPosition |
( |
const Cartographic & |
position, |
|
|
const Ellipsoid &ellipsoid |
CESIUM_DEFAULT_ELLIPSOID |
|
) |
| const |
|
noexcept |
Computes the distance-squared from a longitude-latitude-height position to the closest point in this bounding region.
- Parameters
-
position | The position. |
ellipsoid | The ellipsoid on which this region is defined. |
- Returns
- The distance-squared from the position to the closest point in the bounding region.
◆ computeDistanceSquaredToPosition() [3/3]
double CesiumGeospatial::BoundingRegion::computeDistanceSquaredToPosition |
( |
const glm::dvec3 & |
position, |
|
|
const Ellipsoid &ellipsoid |
CESIUM_DEFAULT_ELLIPSOID |
|
) |
| const |
|
noexcept |
Computes the distance-squared from a position in ellipsoid-centered Cartesian coordinates to the closest point in this bounding region.
If the position cannot be converted into cartograpic coordinates for the given ellipsoid (because it is close to the center of the ellipsoid), then this function will return the squared distance between the given position and the closest point of the bounding box that is enclosed in this region.
- Parameters
-
position | The position. |
ellipsoid | The ellipsoid on which this region is defined. |
- Returns
- The distance-squared from the position to the closest point in the bounding region.
◆ computeUnion()
Computes the union of this bounding region with another.
- Parameters
-
other | The other bounding region. |
- Returns
- The union.
◆ intersectPlane()
Determines on which side of a plane the bounding region is located.
- Parameters
-
plane | The plane to test against. |
- Returns
- The CesiumGeometry::CullingResult
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.
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/CesiumGeospatial/include/CesiumGeospatial/BoundingRegion.h