3 #include "BoundingRegion.h"
4 #include "CesiumGeometry/AxisAlignedBox.h"
5 #include "CesiumGeometry/Rectangle.h"
7 #include "GeographicProjection.h"
8 #include "WebMercatorProjection.h"
10 #include <glm/vec2.hpp>
25 typedef std::variant<GeographicProjection, WebMercatorProjection>
Projection;
132 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
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.
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
Classes for geospatial computations in Cesium.
glm::dvec3 projectPosition(const Projection &projection, const Cartographic &position)
Projects a position on the globe using the given Projection.
CesiumGeometry::Rectangle projectRectangleSimple(const Projection &projection, const GlobeRectangle &rectangle)
Projects a rectangle on the globe by simply projecting its four corners.
BoundingRegion unprojectRegionSimple(const Projection &projection, const CesiumGeometry::AxisAlignedBox &box, const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)
Unprojects a box to the globe by simply unprojecting its eight corners.
Cartographic unprojectPosition(const Projection &projection, const glm::dvec3 &position)
Unprojects a position from the globe using the given Projection.
glm::dvec2 computeProjectedRectangleSize(const Projection &projection, const CesiumGeometry::Rectangle &rectangle, double maxHeight, const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)
Computes the approximate real-world size, in meters, of a given projected rectangle.
const Ellipsoid & getProjectionEllipsoid(const Projection &projection)
Obtains the ellipsoid used by a Projection variant.
CesiumGeometry::AxisAlignedBox projectRegionSimple(const Projection &projection, const BoundingRegion ®ion)
Projects a bounding region on the globe by simply projecting its eight corners.
std::variant< GeographicProjection, WebMercatorProjection > Projection
A projection.
GlobeRectangle unprojectRectangleSimple(const Projection &projection, const CesiumGeometry::Rectangle &rectangle)
Unprojects a rectangle to the globe by simply unprojecting its four corners.