WSF
WsfMTT_ReferencePoint.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef WSFMTT_REFERENCEPOINT_HPP
12#define WSFMTT_REFERENCEPOINT_HPP
13
14#include "UtEntity.hpp"
15
24
26{
27public:
29
30 void SetReferenceLocationLLA(double aLat, double aLon, double aAlt);
31
32 void ConvertNEDToLLA(const double aLocNED[3], double& aLat, double& aLon, double& aAlt) const;
33
34 void ConvertNEDToWCS(const double aLocNED[3], double aLocWCS[3]) const;
35
36 void ConvertWCSToNED(const double aLocWCS[3], double aLocNED[3]) const;
37
38 void ConvertWCSVectorToNED(double aVectorNED[3], const double aVectorWCS[3]) const;
39
40 void ConvertNEDVectorToWCS(double aVectorWCS[3], const double aVectorNED[3]) const;
41
43 UtEntity& GetReferenceEntity() { return mCenterEntity; }
44
45private:
46 UtEntity mCenterEntity;
47
48 double mCenterLat;
49 double mCenterLon;
50 double mCenterAlt;
51 double mCosCenterLat;
52 double mSinCenterLat;
53 double mCosCenterLon;
54 double mSinCenterLon;
55 double mRadius;
56};
57#endif
UtEntity & GetReferenceEntity()
Returns a reference to an entity at the center of this local coordinate system.
Definition WsfMTT_ReferencePoint.hpp:43
void SetReferenceLocationLLA(double aLat, double aLon, double aAlt)
Define the reference location.
Definition WsfMTT_ReferencePoint.cpp:21
void ConvertWCSToNED(const double aLocWCS[3], double aLocNED[3]) const
Definition WsfMTT_ReferencePoint.cpp:74
WsfMTT_ReferencePoint()
Definition WsfMTT_ReferencePoint.cpp:15
void ConvertNEDToWCS(const double aLocNED[3], double aLocWCS[3]) const
Definition WsfMTT_ReferencePoint.cpp:63
void ConvertNEDToLLA(const double aLocNED[3], double &aLat, double &aLon, double &aAlt) const
Convert a local flat-earth NED to LLA.
Definition WsfMTT_ReferencePoint.cpp:38
void ConvertWCSVectorToNED(double aVectorNED[3], const double aVectorWCS[3]) const
Definition WsfMTT_ReferencePoint.cpp:95
void ConvertNEDVectorToWCS(double aVectorWCS[3], const double aVectorNED[3]) const
Definition WsfMTT_ReferencePoint.cpp:100
Copyrights Multiple, All Rights Reserved