WSF
SupTMProjection.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
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
12#ifndef SupTMProjection_hpp
13#define SupTMProjection_hpp
14
15#include "MapProjection.hpp"
16
18{
19public:
21
22 ~SupTMProjection() override;
23
24 bool ConvertLatLonToXY(double aLat, double aLon, double& aX, double& aY) const override;
25
26 bool ConvertXYToLatLon(double aX, double aY, double& aLat, double& aLon) const override;
27
28 void SetCenter(double aCenterLat, double aCenterLon) override;
29
30 // The following was defined only because I wanted to get the computed
31 // radius so I could compare it with some other things I was doing...
32
33 double GetRadius() const { return mRadius; }
34
35private:
36 // Radius of Earth (in meters) at center of projection.
37 double mRadius;
38
39 // Latitude and longitude (in radians) of the center of projection.
40 double mCenterLat;
41 double mCenterLon;
42};
43
44#endif
MapProjection()
Definition MapProjection.cpp:14
~SupTMProjection() override
Definition SupTMProjection.cpp:25
bool ConvertLatLonToXY(double aLat, double aLon, double &aX, double &aY) const override
Definition SupTMProjection.cpp:31
double GetRadius() const
Definition SupTMProjection.hpp:33
void SetCenter(double aCenterLat, double aCenterLon) override
Definition SupTMProjection.cpp:76
SupTMProjection()
Definition SupTMProjection.cpp:19
bool ConvertXYToLatLon(double aX, double aY, double &aLat, double &aLon) const override
Definition SupTMProjection.cpp:62
Copyrights Multiple, All Rights Reserved