1 |
kusanagi |
1.1 |
//
|
2 |
|
|
// coord.h
|
3 |
|
|
//
|
4 |
|
|
// Copyright 2002-2003 Michael F. Henry
|
5 |
|
|
//
|
6 |
|
|
#pragma once
|
7 |
|
|
|
8 |
|
|
//////////////////////////////////////////////////////////////////////
|
9 |
|
|
// Geocentric coordinates.
|
10 |
|
|
class cCoordGeo
|
11 |
|
|
{
|
12 |
|
|
public:
|
13 |
|
|
cCoordGeo();
|
14 |
|
|
cCoordGeo(double lat, double lon, double alt) :
|
15 |
|
|
m_Lat(lat), m_Lon(lon), m_Alt(alt) {}
|
16 |
|
|
virtual ~cCoordGeo() {};
|
17 |
|
|
|
18 |
|
|
double m_Lat; // Latitude, radians (negative south)
|
19 |
|
|
double m_Lon; // Longitude, radians (negative west)
|
20 |
|
|
double m_Alt; // Altitude, km (above mean sea level)
|
21 |
|
|
};
|
22 |
|
|
|
23 |
|
|
//////////////////////////////////////////////////////////////////////
|
24 |
|
|
// Topocentric-Horizon coordinates.
|
25 |
|
|
class cCoordTopo
|
26 |
|
|
{
|
27 |
|
|
public:
|
28 |
|
|
cCoordTopo();
|
29 |
|
|
cCoordTopo(double az, double el, double rng, double rate) :
|
30 |
|
|
m_Az(az), m_El(el), m_Range(rng), m_RangeRate(rate) {}
|
31 |
|
|
virtual ~cCoordTopo() {};
|
32 |
|
|
|
33 |
|
|
double m_Az; // Azimuth, radians
|
34 |
|
|
double m_El; // Elevation, radians
|
35 |
|
|
double m_Range; // Range, kilometers
|
36 |
|
|
double m_RangeRate; // Range rate of change, km/sec
|
37 |
|
|
// Negative value means "towards observer"
|
38 |
|
|
};
|
39 |
|
|
|