cesium-native  0.41.0
CesiumGeospatial::Cartographic Class Referencefinal

A position defined by longitude, latitude, and height. More...

#include <CesiumGeospatial/Cartographic.h>

Public Member Functions

constexpr Cartographic (double longitudeRadians, double latitudeRadians, double heightMeters=0.0) noexcept
 Creates a new instance. More...
 
constexpr bool operator== (const Cartographic &rhs) const noexcept
 Returns true if two cartographics are equal.
 

Static Public Member Functions

static constexpr Cartographic fromDegrees (double longitudeDegrees, double latitudeDegrees, double heightMeters=0.0) noexcept
 Creates a new instance from a longitude and latitude specified in degrees, and a height given in meters. More...
 

Public Attributes

double longitude
 The longitude, in radians.
 
double latitude
 The latitude, in radians.
 
double height
 The height, in meters.
 

Detailed Description

A position defined by longitude, latitude, and height.

Definition at line 12 of file Cartographic.h.

Constructor & Destructor Documentation

◆ Cartographic()

constexpr CesiumGeospatial::Cartographic::Cartographic ( double  longitudeRadians,
double  latitudeRadians,
double  heightMeters = 0.0 
)
inlineconstexprnoexcept

Creates a new instance.

Parameters
longitudeRadiansThe longitude, in radians.
latitudeRadiansThe latitude, in radians.
heightMetersThe height, in meters. Default value: 0.0.

Definition at line 21 of file Cartographic.h.

Member Function Documentation

◆ fromDegrees()

static constexpr Cartographic CesiumGeospatial::Cartographic::fromDegrees ( double  longitudeDegrees,
double  latitudeDegrees,
double  heightMeters = 0.0 
)
inlinestaticconstexprnoexcept

Creates a new instance from a longitude and latitude specified in degrees, and a height given in meters.

The values in the resulting object will be in radians.

Parameters
longitudeDegreesThe longitude, in degrees.
latitudeDegreesThe latitude, in degrees.
heightMetersThe height, in meters. Default value: 0.0.

Definition at line 39 of file Cartographic.h.


The documentation for this class was generated from the following file: