Main Page
Namespaces
Classes
Files
File List
File Members
libswarmio
include
swarmio
simulator
SimulatedLocation.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
swarmio::simulator
4
{
10
class
SimulatedLocation
final
11
{
12
private
:
13
18
double
_longitude
;
19
24
double
_latitude
;
25
30
double
_altitude
;
31
32
public
:
33
41
SimulatedLocation
(
double
longitude,
double
latitude,
double
altitude)
42
: _longitude(longitude), _latitude(latitude), _altitude(altitude) { }
43
49
double
GetLongitude
()
50
{
51
return
_longitude
;
52
}
53
59
double
GetLatitude
()
60
{
61
return
_latitude
;
62
}
63
69
double
GetAltitude
()
70
{
71
return
_altitude
;
72
}
73
};
74
}
swarmio::simulator::SimulatedLocation::SimulatedLocation
SimulatedLocation(double longitude, double latitude, double altitude)
Construct a new Simulated Location object.
Definition:
SimulatedLocation.h:41
swarmio::simulator
Definition:
ExampleDevice.h:8
swarmio::simulator::SimulatedLocation::_latitude
double _latitude
Latitude.
Definition:
SimulatedLocation.h:24
swarmio::simulator::SimulatedLocation::_longitude
double _longitude
Longitude.
Definition:
SimulatedLocation.h:18
swarmio::simulator::SimulatedLocation::GetLatitude
double GetLatitude()
Get latitude.
Definition:
SimulatedLocation.h:59
swarmio::simulator::SimulatedLocation
A location described by a latitude, a longitude and an altitude.
Definition:
SimulatedLocation.h:10
swarmio::simulator::SimulatedLocation::GetLongitude
double GetLongitude()
Get longitude.
Definition:
SimulatedLocation.h:49
swarmio::simulator::SimulatedLocation::_altitude
double _altitude
Altitude.
Definition:
SimulatedLocation.h:30
swarmio::simulator::SimulatedLocation::GetAltitude
double GetAltitude()
Get altitude.
Definition:
SimulatedLocation.h:69
swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48