World Ocean Simulation System (WOSS) library
woss::UtmWgs84 Class Reference

#include <coordinates-definitions.h>

Collaboration diagram for woss::UtmWgs84:
Collaboration graph

Public Member Functions

constexpr UtmWgs84 (int utmZone=COORD_NOT_SET_VALUE, double east=COORD_NOT_SET_VALUE, double north=COORD_NOT_SET_VALUE)
 
constexpr int getZone () const
 
constexpr double getEasting () const
 
constexpr double getNorthing () const
 
constexpr bool isValid () const
 

Static Public Member Functions

static constexpr UtmWgs84 getUtmWgs84FromCoord (const Coord &coords)
 

Protected Attributes

int zone
 
double easting
 
double northing
 

Friends

std::ostream & operator<< (std::ostream &os, const UtmWgs84 &instance)
 

Constructor & Destructor Documentation

◆ UtmWgs84()

constexpr woss::UtmWgs84::UtmWgs84 ( int  utmZone = COORD_NOT_SET_VALUE,
double  east = COORD_NOT_SET_VALUE,
double  north = COORD_NOT_SET_VALUE 
)
inlineconstexpr

UtmWgs84 constructor.

Parameters
utmZonezone number
eastEasting value
northNorthing value

Member Function Documentation

◆ getEasting()

constexpr double woss::UtmWgs84::getEasting ( ) const
inlineconstexpr

◆ getNorthing()

constexpr double woss::UtmWgs84::getNorthing ( ) const
inlineconstexpr

◆ getUtmWgs84FromCoord()

constexpr UtmWgs84 woss::UtmWgs84::getUtmWgs84FromCoord ( const Coord coords)
inlinestaticconstexpr

Gets destination easting and northing in UTM - WGS84 coordinates from a given Coord

Parameters
coordsreference to a valid Coord object
Returns
UTM - WGS84 coordinates

References woss::Coord::EARTH_SEMIMAJOR_AXIS, woss::Coord::getLatitude(), woss::Coord::getLongitude(), and zone.

Referenced by woss::BathyUtmCsvDb::getBathyIndex().

Here is the call graph for this function:

◆ getZone()

constexpr int woss::UtmWgs84::getZone ( ) const
inlineconstexpr

◆ isValid()

constexpr bool woss::UtmWgs84::isValid ( ) const
inlineconstexpr

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const UtmWgs84 instance 
)
friend

<< operator

Parameters
osleft operand ostream reference
instanceright operand const CoordZ reference
Returns
os reference after the operation

Member Data Documentation

◆ easting

double woss::UtmWgs84::easting
protected

Zone number

◆ northing

double woss::UtmWgs84::northing
protected

Easting value

◆ zone

int woss::UtmWgs84::zone
protected

Referenced by getUtmWgs84FromCoord().


The documentation for this class was generated from the following file: