cesium-native  0.41.0
BoundingRegionWithLooseFittingHeights.h
1 #pragma once
2 
3 #include "BoundingRegion.h"
4 #include "Library.h"
5 
6 namespace CesiumGeospatial {
7 
18 class CESIUMGEOSPATIAL_API BoundingRegionWithLooseFittingHeights final {
19 public:
26  const BoundingRegion& boundingRegion) noexcept;
27 
31  const BoundingRegion& getBoundingRegion() const noexcept {
32  return this->_region;
33  }
34 
55  const glm::dvec3& position,
56  const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) const noexcept;
57 
78  const Cartographic& position,
79  const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) const noexcept;
80 
103  const Cartographic& cartographicPosition,
104  const glm::dvec3& cartesianPosition) const noexcept;
105 
106 private:
107  BoundingRegion _region;
108 };
109 
110 } // namespace CesiumGeospatial
A BoundingRegion whose heights might be very inaccurate and so distances should be estimated conserva...
double computeConservativeDistanceSquaredToPosition(const Cartographic &cartographicPosition, const glm::dvec3 &cartesianPosition) const noexcept
Computes the conservative distance-squared from a position to the closest point in this bounding regi...
const BoundingRegion & getBoundingRegion() const noexcept
Gets the bounding region that has imprecise heights.
BoundingRegionWithLooseFittingHeights(const BoundingRegion &boundingRegion) noexcept
Constructs a new bounding region.
double computeConservativeDistanceSquaredToPosition(const Cartographic &position, const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) const noexcept
Computes the conservative distance-squared from a longitude-latitude-height position to the closest p...
double computeConservativeDistanceSquaredToPosition(const glm::dvec3 &position, const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) const noexcept
Computes the conservative distance-squared from a position in ellipsoid-centered Cartesian coordinate...
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
A position defined by longitude, latitude, and height.
Definition: Cartographic.h:12
A quadratic surface defined in Cartesian coordinates.
Definition: Ellipsoid.h:38
Classes for geospatial computations in Cesium.