|
Maps SDK for C++ 1.0.0
|
Coordinates object. More...


Public Member Functions | |
| Coordinates ()=default | |
| Default constructor. | |
| Coordinates (double latitude, double longitude, double altitude=0., double vAccuracy=-1., double hAccuracy=-1., int parentSceneObject=SO_Earth) | |
| Create a coordinates object from latitude, longitude and altitude. | |
| Coordinates (std::initializer_list< double > ilist, int parentSceneObject=SO_Earth) | |
| Construct from initializer list. | |
| Coordinates (const Coordinates &)=default | |
| Default copy constructor. | |
| Coordinates (Coordinates &&)=default | |
| Default move constructor noexcept is deduced. | |
| Coordinates & | operator= (const Coordinates &coord)=default |
| Default copy assignment. | |
| Coordinates & | operator= (Coordinates &&coord)=default |
| Default move assignment noexcept is deduced. | |
| Coordinates & | assign (double latitude, double longitude, double altitude=0., double vAccuracy=-1., double hAccuracy=-1., int sceneObject=EMainSceneObjects::SO_Earth) noexcept |
| Assign the given values. | |
| bool | operator== (Coordinates const &coord) const noexcept |
| Compare if two WGS coordinates are equal. | |
| bool | operator!= (Coordinates const &coord) const noexcept |
| Compare if two WGS coordinates are not equal. | |
| double | getLatitude () const noexcept |
| Get latitude in degrees. | |
| Coordinates & | setLatitude (double latitude) noexcept |
| Set latitude in degrees. | |
| double | getLongitude () const noexcept |
| Get longitude in degrees. | |
| Coordinates & | setLongitude (double longitude) noexcept |
| Set longitude in degrees. | |
| double | getAltitude () const noexcept |
| Get altitude in meters. | |
| Coordinates & | setAltitude (double altitude) noexcept |
| Set altitude in meters. | |
| bool | hasHorizontalAccuracy () const noexcept |
| Check if the horizontal accuracy is valid or not. | |
| double | getHorizontalAccuracy () const noexcept |
| Get the horizontal accuracy of the location in meters. | |
| Coordinates & | setHorizontalAccuracy (double) noexcept |
| Set the horizontal accuracy of the location in meters. | |
| bool | hasVerticalAccuracy () const noexcept |
| Check if the vertical accuracy is valid or not. | |
| double | getVerticalAccuracy () const noexcept |
| Get the vertical accuracy of the location in meters. | |
| Coordinates & | setVerticalAccuracy (double) noexcept |
| Set the vertical accuracy of the location in meters. | |
| bool | valid () const noexcept |
| Check if the coordinates are valid. | |
| double | getDistance (Coordinates const &point) const noexcept |
| Calculate the distance in meters between two WGS84 coordinates. | |
| double | getAzimuth (Coordinates const &point) const noexcept |
| Calculate the azimuth between the two points according to the ellipsoid model of WGS84. | |
| int | getSceneObject () const noexcept |
| Gets parent scene object to which coordinates belongs. | |
Coordinates object.
Implements share-read / copy-on-write Api object over ICoordinates.
|
default |
Default constructor.
Creates an empty coordinate object in default scene object coordinates system( SO_Earth )
|
inline |
Create a coordinates object from latitude, longitude and altitude.
| [in] | latitude | Latitude in degrees. Valid values -90.0 .. +90.0. |
| [in] | longitude | Longitude in degrees. Valid values -180.0 .. +180.0. |
| [in] | altitude | Altitude in meters. |
| [in] | vAccuracy | Altitude accuracy in meters. Deprecated, will be ignored |
| [in] | hAccuracy | Latitude / longitude accuracy in meters. Deprecated, will be ignored |
| [in] | parentSceneObject | Parent scene object in which coordinates system values are expressed. |
|
inline |
Construct from initializer list.
list[0] = latitude, list[1] = longitude, list[2] = altitude ( optional )
| [in] | ilist | Initializer list. |
| [in] | parentSceneObject | Parent scene object in which coordinates system values are expressed |
|
inlinenoexcept |
Assign the given values.
| [in] | latitude | Latitude in degrees. Valid values -90.0 .. +90.0. |
| [in] | longitude | Longitude in degrees. Valid values -180.0 .. +180.0. |
| [in] | altitude | Altitude in meters. |
| [in] | vAccuracy | Altitude accuracy in meters. Deprecated, will be ignored |
| [in] | hAccuracy | Latitude / longitude accuracy in meters. Deprecated, will be ignored |
| [in] | sceneObject | Parent scene object in which coordinates system values are expressed. |
|
inlinenoexcept |
Get altitude in meters.
|
inlinenoexcept |
Calculate the azimuth between the two points according to the ellipsoid model of WGS84.
| point | - the coordinates to which the azimuth should be calculated. |
|
inlinenoexcept |
Calculate the distance in meters between two WGS84 coordinates.
| point | - the coordinates to which the distance should be calculated. |
|
inlinenoexcept |
Get the horizontal accuracy of the location in meters.
|
inlinenoexcept |
Get latitude in degrees.
Valid values -90.0 .. +90.0.
|
inlinenoexcept |
Get longitude in degrees.
Valid values -180.0 .. +180.0.
|
inlinenoexcept |
Gets parent scene object to which coordinates belongs.
|
inlinenoexcept |
Get the vertical accuracy of the location in meters.
|
inlinenoexcept |
Check if the horizontal accuracy is valid or not.
|
inlinenoexcept |
Check if the vertical accuracy is valid or not.
|
inlinenoexcept |
Compare if two WGS coordinates are not equal.
| coord | The coordinates to compare |
|
default |
|
default |
Default move assignment noexcept is deduced.
| [in] | coord | Coordinates object to move |
|
inlinenoexcept |
Compare if two WGS coordinates are equal.
| coord | The coordinates to compare |
|
inlinenoexcept |
Set altitude in meters.
| altitude | Altitude in meters. |
|
inlinenoexcept |
Set the horizontal accuracy of the location in meters.
|
inlinenoexcept |
Set latitude in degrees.
Valid values -90.0 .. +90.0.
| latitude | Latitude in degrees. |
|
inlinenoexcept |
Set longitude in degrees.
Valid values -180.0 .. +180.0.
| longitude | Longitude in degrees. |
|
inlinenoexcept |
Set the vertical accuracy of the location in meters.
|
inlinenoexcept |
Check if the coordinates are valid.