NEDUtil Class Reference
[Geodetic coordinates and geoids]

#include <NEDUtil.hpp>

Collaboration diagram for NEDUtil:

Collaboration graph
[legend]
List of all members.

Detailed Description

A utility for converting from Cartesian in XZY to North-East-Down (NED).

Definition at line 45 of file NEDUtil.hpp.

Public Member Functions

 NEDUtil (const double refGdLatRad, const double refLonRad)
 Given a location as a (geodetic) latitude and longitude the constructor creates the appropriate rotation matrix from XYZ to NED and retains it for later use.
gpstk::Vector< double > convertToNED (const gpstk::Vector< double > &inV) const
 Convert from a vector in ECEF XYZ to ECEF NED using the current rotation matrix.
gpstk::Triple convertToNED (const gpstk::Triple &inVec) const
gpstk::Xvt convertToNED (const gpstk::Xvt &in) const
void updatePosition (const double refLatRad, const double refLonRad)
 Update the rotation matrix to the new location without creating a new object.

Protected Member Functions

void compute (const double refLat, const double refLon)

Protected Attributes

Matrix< double > rotMat


Constructor & Destructor Documentation

NEDUtil const double  refGdLatRad,
const double  refLonRad
 

Given a location as a (geodetic) latitude and longitude the constructor creates the appropriate rotation matrix from XYZ to NED and retains it for later use.

Parameters:
refGeodeticLatRad geodetic latitude of point of interest (radians)
refLonRad longitude of point of interest (radians).

Definition at line 40 of file NEDUtil.cpp.

References NEDUtil::compute().


Member Function Documentation

void compute const double  refLat,
const double  refLon
[protected]
 

Definition at line 48 of file NEDUtil.cpp.

References gpstk::cos(), Matrix::resize(), NEDUtil::rotMat, and gpstk::sin().

Referenced by NEDUtil::NEDUtil(), and NEDUtil::updatePosition().

gpstk::Xvt convertToNED const gpstk::Xvt in  )  const
 

Definition at line 94 of file NEDUtil.cpp.

References NEDUtil::convertToNED(), Xvt::ddtime, Xvt::dtime, Xvt::v, and Xvt::x.

gpstk::Triple convertToNED const gpstk::Triple inVec  )  const
 

Definition at line 82 of file NEDUtil.cpp.

References NEDUtil::convertToNED().

gpstk::Vector< double > convertToNED const gpstk::Vector< double > &  inV  )  const
 

Convert from a vector in ECEF XYZ to ECEF NED using the current rotation matrix.

Parameters:
inV,inVec,in vector of interest in ECEF XYZ.
Returns:
Same type as input but with the vector in ECEF NED

Definition at line 69 of file NEDUtil.cpp.

References GPSTK_THROW, NEDUtil::rotMat, and Vector::size().

Referenced by NEDUtil::convertToNED().

void updatePosition const double  refLatRad,
const double  refLonRad
 

Update the rotation matrix to the new location without creating a new object.

Parameters:
refGdLatRad geodetic latitude of point of interest (radians)
refLonRad longitude of point of interest (radians).

Definition at line 63 of file NEDUtil.cpp.

References NEDUtil::compute().


Member Data Documentation

Matrix<double> rotMat [protected]
 

Definition at line 84 of file NEDUtil.hpp.

Referenced by NEDUtil::compute(), and NEDUtil::convertToNED().


The documentation for this class was generated from the following files:
Generated on Wed Feb 8 03:31:40 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1