cesium-native 0.43.0
Loading...
Searching...
No Matches
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.
 
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.
 

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()

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.

◆ operator==()

bool CesiumGeospatial::Cartographic::operator== ( const Cartographic & rhs) const
inlineconstexprnoexcept

Returns true if two cartographics are equal.

Definition at line 52 of file Cartographic.h.

Member Data Documentation

◆ height

double CesiumGeospatial::Cartographic::height

The height, in meters.

Definition at line 70 of file Cartographic.h.

◆ latitude

double CesiumGeospatial::Cartographic::latitude

The latitude, in radians.

Definition at line 65 of file Cartographic.h.

◆ longitude

double CesiumGeospatial::Cartographic::longitude

The longitude, in radians.

Definition at line 60 of file Cartographic.h.


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