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

Detailed Description

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

Definition at line 56 of file NEDUtil.hpp.

#include <NEDUtil.hpp>

Public Member Functions

gnsstk::Triple convertToNED (const gnsstk::Triple &inVec) const
 
gnsstk::Vector< double > convertToNED (const gnsstk::Vector< double > &inV) const
 
gnsstk::Xvt convertToNED (const gnsstk::Xvt &in) const
 
 NEDUtil (const double refGdLatRad, const double refLonRad)
 
void updatePosition (const double refLatRad, const double refLonRad)
 

Protected Member Functions

void compute (const double refLat, const double refLon)
 

Protected Attributes

Matrix< double > rotMat
 

Constructor & Destructor Documentation

◆ NEDUtil()

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

Definition at line 51 of file NEDUtil.cpp.

Member Function Documentation

◆ compute()

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

Definition at line 59 of file NEDUtil.cpp.

◆ convertToNED() [1/3]

gnsstk::Triple gnsstk::NEDUtil::convertToNED ( const gnsstk::Triple inVec) const

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

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

Definition at line 93 of file NEDUtil.cpp.

◆ convertToNED() [2/3]

gnsstk::Vector< double > gnsstk::NEDUtil::convertToNED ( const gnsstk::Vector< double > &  inV) const

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

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

Definition at line 80 of file NEDUtil.cpp.

◆ convertToNED() [3/3]

gnsstk::Xvt gnsstk::NEDUtil::convertToNED ( const gnsstk::Xvt in) const

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

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

Definition at line 105 of file NEDUtil.cpp.

◆ updatePosition()

void gnsstk::NEDUtil::updatePosition ( const double  refLatRad,
const double  refLonRad 
)

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

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

Definition at line 74 of file NEDUtil.cpp.

Member Data Documentation

◆ rotMat

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

Definition at line 108 of file NEDUtil.hpp.


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


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