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>
25typedef std::variant<GeographicProjection, WebMercatorProjection>
Projection;
133 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.
BoundingRegion unprojectRegionSimple(const Projection &projection, const CesiumGeometry::AxisAlignedBox &box, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
Unprojects a box to the globe by simply unprojecting its eight corners.
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.
Cartographic unprojectPosition(const Projection &projection, const glm::dvec3 &position)
Unprojects a position from the globe using the given Projection.
const Ellipsoid & getProjectionEllipsoid(const Projection &projection)
Obtains the ellipsoid used by a Projection variant.
glm::dvec2 computeProjectedRectangleSize(const Projection &projection, const CesiumGeometry::Rectangle &rectangle, double maxHeight, const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
Computes the approximate real-world size, in meters, of a given projected rectangle.
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.
An Axis-Aligned Bounding Box (AABB), where the axes of the box are aligned with the axes of the coord...