GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
|
A pair of Cartesian coordinate values. More...
#include <Coordinate.h>
Public Member Functions | |
constexpr | Coordinate (int32_t x_, int32_t y_) |
Coordinate (double x_, double y_) | |
constexpr | Coordinate () |
double | lon () const noexcept |
The X-coordinate, converted to longitude (WGS-84) | |
double | lat () const noexcept |
The Y-coordinate, converted to latitude (WGS-84) | |
bool | isNull () const noexcept |
Checks whether both X and Y are 0 . | |
bool | operator== (const Coordinate &other) const noexcept |
operator int64_t () const noexcept | |
bool | operator!= (const Coordinate &other) const noexcept |
Static Public Member Functions | |
static Coordinate | ofLonLat (double lon, double lat) |
Creates a Coordinate with the given longitude and latitude. | |
static Coordinate | ofLatLon (double lat, double lon) |
Creates a Coordinate with the given latitude and longitude. | |
Public Attributes | |
int32_t | x |
X-coordinate (in Mercator projection) | |
int32_t | y |
Y-coordinate (in Mercator projection) | |
A pair of Cartesian coordinate values.
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inlinenoexcept |
Checks whether both X and Y are 0
.
|
inlinenoexcept |
The Y-coordinate, converted to latitude (WGS-84)
|
inlinenoexcept |
The X-coordinate, converted to longitude (WGS-84)
|
inlinestatic |
Creates a Coordinate with the given latitude and longitude.
|
inlinestatic |
Creates a Coordinate with the given longitude and latitude.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
int32_t geodesk::Coordinate::x |
X-coordinate (in Mercator projection)
int32_t geodesk::Coordinate::y |
Y-coordinate (in Mercator projection)