cesium-native 0.43.0
Loading...
Searching...
No Matches
BoundingRegionBuilder.h
1#pragma once
2
3#include "BoundingRegion.h"
4#include "GlobeRectangle.h"
5#include "Library.h"
6
7namespace CesiumGeospatial {
8
13class CESIUMGEOSPATIAL_API BoundingRegionBuilder {
14public:
19
29 toRegion(const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) const;
30
37 GlobeRectangle toGlobeRectangle() const;
38
49 void setPoleTolerance(double tolerance) noexcept;
50
61 double getPoleTolerance() const noexcept;
62
72 bool expandToIncludePosition(const Cartographic& position);
73
74private:
80 double _poleTolerance;
81 GlobeRectangle _rectangle;
82 double _minimumHeight;
83 double _maximumHeight;
84
98 bool _longitudeRangeIsEmpty;
99};
100
101} // namespace CesiumGeospatial
Helper class for creating a BoundingRegion or GlobeRectangle from a set of points.
BoundingRegionBuilder() noexcept
Constructs a new instance, starting with an empty bounding region.
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
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
Classes for geospatial computations in Cesium.