1 #ifndef POSITION_H_LOADED
2 #define POSITION_H_LOADED 1
57 System into_system=_Natural);
64 double lon(
void)
const {
return lon_; }
67 double lat(
void)
const {
return lat_; }
77 bool is_null_p(
void)
const {
return system_ == _Null; }
86 std::ostream& operator<<(std::ostream& strm,
const Position& pos);
Encapsulates a few time properties which are astronomically relevant.
Definition: astrotime.h:17
static Position get_null(void)
Return a 'null' Position, which can be used as a sentinel value.
Definition: position.h:75
System system(void) const
The coordinate system in which this position is expressed.
Definition: position.h:72
double lon(void) const
The azimuthal coordinate.
Definition: position.h:64
void set_reftime(const AstroTime &)
Set the reference time, for a subsequent call to to_system.
Definition: position.cpp:230
The Position class allows us to represent positions on the celestial sphere (or on Earth...
Definition: position.h:15
Position to_system(System into_system) const
Return another Position, in the given system.
Definition: position.cpp:243
void set_observatory(const Position &)
Set the observatory position, for a subsequent call to to_system.
Definition: position.cpp:217
System
The known coordinate systems.
Definition: position.h:33
double lat(void) const
The latitudinal coordinate.
Definition: position.h:67
bool is_null_p(void) const
Test if the Position is a 'null' one.
Definition: position.h:77