Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gnsstk::ENUUtil Class Reference

Detailed Description

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

Definition at line 56 of file ENUUtil.hpp.

#include <ENUUtil.hpp>

Public Member Functions

gnsstk::Triple convertToENU (const gnsstk::Triple &inVec) const
 
gnsstk::Vector< double > convertToENU (const gnsstk::Vector< double > &inV) const
 
gnsstk::Xvt convertToENU (const gnsstk::Xvt &in) const
 
 ENUUtil (const double refGeodeticLatRad, const double refLonRad)
 
void updatePosition (const double refGDLatRad, const double refLonRad)
 

Protected Member Functions

void compute (const double refLat, const double refLon)
 

Protected Attributes

Matrix< double > rotMat
 

Constructor & Destructor Documentation

◆ ENUUtil()

gnsstk::ENUUtil::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
refGeodeticLatRadgeodetic latitude of point of interest (radians)
refLonRadlongitude of point of interest (radians).

Definition at line 47 of file ENUUtil.cpp.

Member Function Documentation

◆ compute()

void gnsstk::ENUUtil::compute ( const double  refLat,
const double  refLon 
)
protected

Definition at line 55 of file ENUUtil.cpp.

◆ convertToENU() [1/3]

gnsstk::Triple gnsstk::ENUUtil::convertToENU ( const gnsstk::Triple inVec) const

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

Parameters
[in]inVecvector of interest in ECEF XYZ.
Returns
Same type as input but with the vector in ECEF ENU

Definition at line 90 of file ENUUtil.cpp.

◆ convertToENU() [2/3]

gnsstk::Vector< double > gnsstk::ENUUtil::convertToENU ( const gnsstk::Vector< double > &  inV) const

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

Parameters
[in]inVvector of interest in ECEF XYZ.
Returns
Same type as input but with the vector in ECEF ENU

Definition at line 77 of file ENUUtil.cpp.

◆ convertToENU() [3/3]

gnsstk::Xvt gnsstk::ENUUtil::convertToENU ( const gnsstk::Xvt in) const

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

Parameters
[in]invector of interest in ECEF XYZ.
Returns
Same type as input but with the vector in ECEF ENU

Definition at line 102 of file ENUUtil.cpp.

◆ updatePosition()

void gnsstk::ENUUtil::updatePosition ( const double  refGDLatRad,
const double  refLonRad 
)

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

Parameters
refGDLatRadgeodetic latitude of point of interest (radians)
refLonRadlongitude of point of interest (radians).

Definition at line 70 of file ENUUtil.cpp.

Member Data Documentation

◆ rotMat

Matrix<double> gnsstk::ENUUtil::rotMat
protected

Definition at line 109 of file ENUUtil.hpp.


The documentation for this class was generated from the following files:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:44