WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
EarthPoint.h
1#ifndef _WINC_EARTHPOINT
2#define _WINC_EARTHPOINT
3
4namespace WXP {
5 struct EarthPoint { /* Coordinate data structure */
6 float lat;
7 float lon;
8 float elev;
10 int init();
11 EarthPoint();
12 EarthPoint( float rlat, float rlon );
13 EarthPoint( float rlat, float rlon, float relev );
14 int set( float rlat, float rlon );
15 int set( float rlat, float rlon, float relev );
17 inline int setElev( float relev ){ elev = relev; return 1; };
19 inline int set( EarthPoint ept ){ *this = ept; return 1; };
21 inline float getLat(){ return lat; };
23 inline float getLon(){ return lon; };
25 inline float getElev(){ return elev; };
26 int print();
27 };
28}
29#endif
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines earth point values (lat, lon, elev)
Definition EarthPoint.h:5
int print()
Definition EarthPoint.cc:78
float getElev()
Definition EarthPoint.h:25
float elev
Definition EarthPoint.h:8
float lat
Definition EarthPoint.h:6
float lon
Definition EarthPoint.h:7
int set(EarthPoint ept)
Definition EarthPoint.h:19
float getLat()
Definition EarthPoint.h:21
int setElev(float relev)
Definition EarthPoint.h:17
int set(float rlat, float rlon)
Definition EarthPoint.cc:56
int init()
Definition EarthPoint.cc:44
float getLon()
Definition EarthPoint.h:23
EarthPoint()
Definition EarthPoint.cc:18