4 #include "GlobeRectangle.h"
7 #include <CesiumUtility/Math.h>
9 #include <glm/vec2.hpp>
10 #include <glm/vec3.hpp>
49 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) noexcept {
50 const double longitudeValue =
52 const double latitudeValue =
67 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) noexcept;
138 return this->_ellipsoid == rhs._ellipsoid;
146 return !(*
this == rhs);
151 double _semimajorAxis;
152 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.
static constexpr CesiumGeometry::Rectangle computeMaximumProjectedRectangle(const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) noexcept
Computes the maximum rectangle that can be covered with this projection.
GeographicProjection(const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) noexcept
Constructs a new instance.
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.
glm::dvec3 project(const Cartographic &cartographic) const noexcept
Converts geodedic ellipsoid coordinates to geographic coordinates.
const Ellipsoid & getEllipsoid() const noexcept
Gets the Ellipsoid.
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
static constexpr double PiOverTwo
pi divded by two
static constexpr double OnePi
pi
Classes for geospatial computations in Cesium.