1.3.49
 
Loading...
Searching...
No Matches
helios::Location Struct Reference

Location vector. More...

#include <helios_vector_types.h>

Public Member Functions

 Location ()
 Default constructor.
 
 Location (float latitude_deg, float longitude_deg, float UTC_offset)
 latitude/longitude/UTC constructor
 
bool operator== (const helios::Location &c) const noexcept
 check for equality of two locations
 
bool operator!= (const helios::Location &c) const noexcept
 check for inequality of two locations
 

Data Fields

float latitude_deg
 Latitude in degrees (+northern hemisphere, -southern hemisphere)
 
float longitude_deg
 Longitude in degrees (+western hemisphere, -eastern hemisphere)
 
float UTC_offset
 Offset from UTC in hours (+moving West)
 

Friends

std::ostream & operator<< (std::ostream &os, helios::Location const &t)
 Write Location to output stream.
 

Detailed Description

Location vector.

Definition at line 1933 of file helios_vector_types.h.

Constructor & Destructor Documentation

◆ Location() [1/2]

helios::Location::Location ( )
inline

Default constructor.

Definition at line 1943 of file helios_vector_types.h.

◆ Location() [2/2]

helios::Location::Location ( float  latitude_deg,
float  longitude_deg,
float  UTC_offset 
)
inline

latitude/longitude/UTC constructor

Parameters
[in]latitude_degLatitude in degrees (+northern hemisphere, -southern hemisphere)
[in]longitude_degLongitude in degrees (+western hemisphere, -eastern hemisphere)
[in]UTC_offsetOffset from UTC in hours (+moving West)

Definition at line 1955 of file helios_vector_types.h.

Member Function Documentation

◆ operator!=()

bool helios::Location::operator!= ( const helios::Location c) const
inlinenoexcept

check for inequality of two locations

Definition at line 1988 of file helios_vector_types.h.

◆ operator==()

bool helios::Location::operator== ( const helios::Location c) const
inlinenoexcept

check for equality of two locations

Definition at line 1984 of file helios_vector_types.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
helios::Location const &  t 
)
friend

Write Location to output stream.

Definition at line 1968 of file helios_vector_types.h.

Field Documentation

◆ latitude_deg

float helios::Location::latitude_deg

Latitude in degrees (+northern hemisphere, -southern hemisphere)

Definition at line 1936 of file helios_vector_types.h.

◆ longitude_deg

float helios::Location::longitude_deg

Longitude in degrees (+western hemisphere, -eastern hemisphere)

Definition at line 1938 of file helios_vector_types.h.

◆ UTC_offset

float helios::Location::UTC_offset

Offset from UTC in hours (+moving West)

Definition at line 1940 of file helios_vector_types.h.


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