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 |
double | lat () const noexcept |
bool | isNull () const noexcept |
bool | operator== (const Coordinate &other) const noexcept |
operator int64_t () 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 |
int32_t | y |
A pair of Cartesian coordinate values.
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
Creates a Coordinate with the given latitude and longitude.
|
inlinestatic |
Creates a Coordinate with the given longitude and latitude.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
int32_t geodesk::Coordinate::x |
int32_t geodesk::Coordinate::y |