Stride Reference Manual  1.0
GeoCoordinate.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 
5 namespace stride {
6 namespace util {
7 
8 #define PI 3.14159265
9 
10 using namespace std;
11 
12 struct GeoCoordinate {
13  // Note that it is required (precondition) to have valid long- and latitudes
15  m_latitude = 0.0;
16  m_longitude = 0.0;
17  }
18 
19  GeoCoordinate(double lat, double lon) {
20  m_latitude = lat;
21  m_longitude = lon;
22  }
23 
24  double m_longitude = 0.0;
25  double m_latitude = 0.0;
26 };
27 
28 bool operator==(const GeoCoordinate& coord1, const GeoCoordinate& coord2);
29 
30 bool operator<(const GeoCoordinate& coord1, const GeoCoordinate& coord2);
31 
32 std::ostream& operator<<(std::ostream& os, const GeoCoordinate& g);
33 
34 }
35 }
GeoCoordinate(double lat, double lon)
Definition: GeoCoordinate.h:19
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
bool operator<(const GeoCoordinate &coord1, const GeoCoordinate &coord2)
STL namespace.
bool operator==(const GeoCoordinate &coord1, const GeoCoordinate &coord2)
std::ostream & operator<<(std::ostream &os, const GeoCoordinate &g)