1.3.77
 
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
 
 Location (float latitude_deg, float longitude_deg, float UTC_offset, float altitude_m)
 latitude/longitude/UTC/altitude 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)
 
float altitude_m
 Altitude of the local Cartesian origin, in meters above sea level (default 0)
 

Friends

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

Detailed Description

Location vector.

Note
Helios uses a non-standard convention for longitude: positive values are in the Western hemisphere and negative values are in the Eastern hemisphere. The standard ISO 6709 / EXIF convention is the opposite (+E / -W). When this Location is written into EXIF metadata via the radiation plugin, the longitude sign is automatically flipped at that boundary.

Definition at line 1938 of file helios_vector_types.h.

Constructor & Destructor Documentation

◆ Location() [1/3]

helios::Location::Location ( )
inline

Default constructor.

Definition at line 1950 of file helios_vector_types.h.

◆ Location() [2/3]

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 1963 of file helios_vector_types.h.

◆ Location() [3/3]

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

latitude/longitude/UTC/altitude 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)
[in]altitude_mAltitude of the local Cartesian origin, in meters above sea level

Definition at line 1978 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 2024 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 2020 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 1992 of file helios_vector_types.h.

Field Documentation

◆ altitude_m

float helios::Location::altitude_m

Altitude of the local Cartesian origin, in meters above sea level (default 0)

Definition at line 1947 of file helios_vector_types.h.

◆ latitude_deg

float helios::Location::latitude_deg

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

Definition at line 1941 of file helios_vector_types.h.

◆ longitude_deg

float helios::Location::longitude_deg

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

Definition at line 1943 of file helios_vector_types.h.

◆ UTC_offset

float helios::Location::UTC_offset

Offset from UTC in hours (+moving West)

Definition at line 1945 of file helios_vector_types.h.


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