ENUUtil Class Reference
[Geodetic coordinates and geoids]

#include <ENUUtil.hpp>

Collaboration diagram for ENUUtil:

Collaboration graph
[legend]
List of all members.

Detailed Description

A utility for converting from Cartesian in XZY to East-North-Up (ENU).

Definition at line 42 of file ENUUtil.hpp.

Public Member Functions

 ENUUtil (const double refGeodeticLatRad, const double refLonRad)
 Given a location as a (geodetic) latitude and longitude the constructor creates the appropriate rotation matrix from XYZ to ENU and retains it for later use.
gpstk::Vector< double > convertToENU (const gpstk::Vector< double > &inV) const
 Convert from a vector in ECEF XYZ to ECEF ENU using the current rotation matrix.
gpstk::Triple convertToENU (const gpstk::Triple &inVec) const
gpstk::Xvt convertToENU (const gpstk::Xvt &in) const
void updatePosition (const double refGDLatRad, 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

ENUUtil const double  refGeodeticLatRad,
const double  refLonRad
 

Given a location as a (geodetic) latitude and longitude the constructor creates the appropriate rotation matrix from XYZ to ENU 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 37 of file ENUUtil.cpp.

References ENUUtil::compute().


Member Function Documentation

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

Definition at line 45 of file ENUUtil.cpp.

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

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

gpstk::Xvt convertToENU const gpstk::Xvt in  )  const
 

Definition at line 92 of file ENUUtil.cpp.

References ENUUtil::convertToENU(), Xvt::ddtime, Xvt::dtime, Xvt::v, and Xvt::x.

gpstk::Triple convertToENU const gpstk::Triple inVec  )  const
 

Definition at line 80 of file ENUUtil.cpp.

References ENUUtil::convertToENU().

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

Convert from a vector in ECEF XYZ to ECEF ENU 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 ENU

Definition at line 67 of file ENUUtil.cpp.

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

Referenced by ENUUtil::convertToENU().

void updatePosition const double  refGDLatRad,
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 60 of file ENUUtil.cpp.

References ENUUtil::compute().


Member Data Documentation

Matrix<double> rotMat [protected]
 

Definition at line 82 of file ENUUtil.hpp.

Referenced by ENUUtil::compute(), and ENUUtil::convertToENU().


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