VectorNav C++ Library
position.h
1 #ifndef _VNMATH_POSITION_H_
2 #define _VNMATH_POSITION_H_
3 
4 #include "vector.h"
5 
6 namespace vn {
7 namespace math {
8 
10 class PositionD
11 {
12 private:
13 
14  enum PositionType
15  {
16  POS_LLA,
17  POS_ECEF
18  };
19 
20 public:
21  // TEMP
22  PositionD() { }
23 
24 private:
25 
26  PositionD(PositionType type, vec3d pos);
27 
28 public:
29 
34  static PositionD fromLla(vec3d lla);
35 
40  static PositionD fromEcef(vec3d ecef);
41 
42 private:
43  PositionType _underlyingType;
44  vec3d _data;
45 };
46 
47 }
48 }
49 
50 #endif
static PositionD fromEcef(vec3d ecef)
Creates a new PositionD from an earth-centered, earth-fixed.
static PositionD fromLla(vec3d lla)
Creates a new PositionD from a latitude, longitude, altitude.
Representation of a position/location.
Definition: position.h:10
Definition: attitude.h:8