SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLLocation Class Reference

class for a named location with lat-lon-Alt WGS84 position More...

#include <SLDeviceLocation.h>

Public Member Functions

 SLLocation (string locName, int degreesLat, int minutesLat, double secondsLat, int degreesLon, int minutesLon, double secondsLon, double altitudeM)
 

Public Attributes

string name
 
SLVec3d posWGS84LatLonAlt
 

Detailed Description

class for a named location with lat-lon-Alt WGS84 position

Definition at line 23 of file SLDeviceLocation.h.

Constructor & Destructor Documentation

◆ SLLocation()

SLLocation::SLLocation ( string  locName,
int  degreesLat,
int  minutesLat,
double  secondsLat,
int  degreesLon,
int  minutesLon,
double  secondsLon,
double  altitudeM 
)
inline

Definition at line 26 of file SLDeviceLocation.h.

34  {
35  name = std::move(locName);
36  SLVec3d posWGS84 = SLAlgo::geoDegMinSec2Decimal(degreesLat,
37  minutesLat,
38  secondsLat,
39  degreesLon,
40  minutesLon,
41  secondsLon,
42  altitudeM);
43  posWGS84LatLonAlt.set(posWGS84.lat,
44  posWGS84.lon,
45  posWGS84.alt);
46  }
SLVec3d posWGS84LatLonAlt
T lat
Definition: SLVec3.h:45
T alt
Definition: SLVec3.h:45
void set(const T X, const T Y, const T Z)
Definition: SLVec3.h:59
T lon
Definition: SLVec3.h:45
T geoDegMinSec2Decimal(int degrees, int minutes, T seconds)
convert geodetic datum defined in degrees, minutes and seconds to decimal
Definition: SLAlgo.cpp:45

Member Data Documentation

◆ name

string SLLocation::name

Definition at line 48 of file SLDeviceLocation.h.

◆ posWGS84LatLonAlt

SLVec3d SLLocation::posWGS84LatLonAlt

Definition at line 49 of file SLDeviceLocation.h.


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