WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WXP::EarthPoint Struct Reference

This struct defines earth point values (lat, lon, elev) More...

#include "../include/EarthPoint.h"

Public Member Functions

int init ()
 
 EarthPoint ()
 
 EarthPoint (float rlat, float rlon)
 
 EarthPoint (float rlat, float rlon, float relev)
 
int set (float rlat, float rlon)
 
int set (float rlat, float rlon, float relev)
 
int setElev (float relev)
 
int set (EarthPoint ept)
 
float getLat ()
 
float getLon ()
 
float getElev ()
 
int print ()
 

Public Attributes

float lat
 
float lon
 
float elev
 

Detailed Description

This struct defines earth point values (lat, lon, elev)

Author
Dan Vietor

Constructor & Destructor Documentation

◆ EarthPoint() [1/3]

EarthPoint::EarthPoint ( )

Constructor. Initializes the values.

References init().

◆ EarthPoint() [2/3]

EarthPoint::EarthPoint ( float  rlat,
float  rlon 
)

Constructor. Sets values.

Parameters
rlatSpecified latitude
rlonSpecified longitude

References set().

◆ EarthPoint() [3/3]

EarthPoint::EarthPoint ( float  rlat,
float  rlon,
float  relev 
)

Constructor. Sets values.

Parameters
rlatSpecified latitude
rlonSpecified longitude
relevSpecified elevation

References set().

Member Function Documentation

◆ getElev()

float WXP::EarthPoint::getElev ( )
inline

Gets the elevation

References elev.

◆ getLat()

float WXP::EarthPoint::getLat ( )
inline

Gets the latitude

References lat.

◆ getLon()

float WXP::EarthPoint::getLon ( )
inline

Gets the longitude

References lon.

◆ init()

int EarthPoint::init ( )

◆ print()

int EarthPoint::print ( )

Prints the values to standard output.

References elev, lat, lon, and WXP::Const::MISS.

◆ set() [1/3]

int WXP::EarthPoint::set ( EarthPoint  ept)
inline

Sets object from another EarthPoint object

◆ set() [2/3]

int EarthPoint::set ( float  rlat,
float  rlon 
)

◆ set() [3/3]

int EarthPoint::set ( float  rlat,
float  rlon,
float  relev 
)

Sets the data values

Parameters
rlatSpecified latitude
rlonSpecified longitude
relevSpecified elevation

References elev, lat, and lon.

◆ setElev()

int WXP::EarthPoint::setElev ( float  relev)
inline

Sets the elevation

References elev.

Member Data Documentation

◆ elev

float WXP::EarthPoint::elev

Elevation

Referenced by getElev(), init(), WXP::CityTool::locate(), print(), set(), and setElev().

◆ lat

float WXP::EarthPoint::lat

◆ lon

float WXP::EarthPoint::lon

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