cesium-native 0.43.0
Loading...
Searching...
No Matches
BoundingRegionWithLooseFittingHeights.h
1#pragma once
2
3#include "BoundingRegion.h"
4#include "Library.h"
5
6namespace CesiumGeospatial {
7
18class CESIUMGEOSPATIAL_API BoundingRegionWithLooseFittingHeights final {
19public:
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
106private:
107 BoundingRegion _region;
108};
109
110} // namespace CesiumGeospatial
A BoundingRegion whose heights might be very inaccurate and so distances should be estimated conserva...
const BoundingRegion & getBoundingRegion() const noexcept
Gets the bounding region that has imprecise heights.
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...
BoundingRegionWithLooseFittingHeights(const BoundingRegion &boundingRegion) noexcept
Constructs a new bounding region.
double computeConservativeDistanceSquaredToPosition(const Cartographic &position, const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) 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=CesiumGeospatial::Ellipsoid::WGS84) 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.
A quadratic surface defined in Cartesian coordinates.
Definition Ellipsoid.h:38
Classes for geospatial computations in Cesium.