3#include <CesiumGeospatial/Ellipsoid.h>
4#include <CesiumGeospatial/GlobeRectangle.h>
5#include <CesiumGeospatial/Library.h>
6#include <CesiumUtility/Math.h>
48 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID)
noexcept {
49 const double longitudeValue =
51 const double latitudeValue =
66 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID)
noexcept;
137 return this->_ellipsoid == rhs._ellipsoid;
145 return !(*
this == rhs);
150 double _semimajorAxis;
151 double _oneOverSemimajorAxis;
A position defined by longitude, latitude, and height.
A quadratic surface defined in Cartesian coordinates.
A map projection where longitude and latitude are mapped using an Ellipsoid.
bool operator!=(const GeographicProjection &rhs) const noexcept
Returns true if two projections (i.e. their ellipsoids) are not equal.
bool operator==(const GeographicProjection &rhs) const noexcept
Returns true if two projections (i.e. their ellipsoids) are equal.
Cartographic unproject(const glm::dvec3 &projectedCoordinates) const noexcept
Converts geographic coordinates to geodetic ellipsoid coordinates.
CesiumGeospatial::GlobeRectangle unproject(const CesiumGeometry::Rectangle &rectangle) const noexcept
Unprojects a geographic rectangle to the globe.
const Ellipsoid & getEllipsoid() const noexcept
Gets the Ellipsoid.
static constexpr CesiumGeometry::Rectangle computeMaximumProjectedRectangle(const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) noexcept
Computes the maximum rectangle that can be covered with this projection.
CesiumGeometry::Rectangle project(const CesiumGeospatial::GlobeRectangle &rectangle) const noexcept
Projects a globe rectangle to geographic coordinates.
Cartographic unproject(const glm::dvec2 &projectedCoordinates) const noexcept
Converts geographic coordinates to geodetic ellipsoid coordinates.
GeographicProjection(const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) noexcept
Constructs a new instance.
glm::dvec3 project(const Cartographic &cartographic) const noexcept
Converts geodedic ellipsoid coordinates to geographic coordinates.
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
static constexpr double PiOverTwo
Pi divided by two.
static constexpr double OnePi
Pi.
Classes for geospatial computations in Cesium.