# VectorNav C++ Library: include/vn/position.h Source File

position.h
#ifndef _VNMATH_POSITION_H_
#define _VNMATH_POSITION_H_
#include "vector.h"
namespace vn {
namespace math {
class PositionD
{
private:
enum PositionType
{
POS_LLA,
POS_ECEF
};
public:
// TEMP
PositionD() { }
private:
PositionD(PositionType type, vec3d pos);
public:
static PositionD fromLla(vec3d lla);
static PositionD fromEcef(vec3d ecef);
private:
PositionType _underlyingType;
vec3d _data;
};
}
}
#endif
vn::math::vec< 3, double >
vn::math::PositionD::fromEcef
static PositionD fromEcef(vec3d ecef)
Creates a new PositionD from an earth-centered, earth-fixed.
vn::math::PositionD::fromLla
static PositionD fromLla(vec3d lla)
Creates a new PositionD from a latitude, longitude, altitude.
vector.h
vn::math::PositionD
Representation of a position/location.
Definition: position.h:10
vn
Definition: attitude.h:8