25 #if !defined(LSST_AFW_COORD_OBSERVATORY_H) 26 #define LSST_AFW_COORD_OBSERVATORY_H 88 auto deltaLongitude = (_latitude - rhs.getLatitude()).wrapCtr();
89 auto deltaLatitude = (_longitude - rhs.getLongitude()).wrapCtr();
bool operator==(Observatory const &rhs) const noexcept
void setElevation(double const elevation)
set telescope elevation (meters above reference spheroid)
table::Key< lsst::geom::Angle > latitude
std::string toString() const
get string representation
Observatory(lsst::geom::Angle const longitude, lsst::geom::Angle const latitude, double const elevation)
Construct an Observatory with longitude and latitude specified as lsst::geom::Angle.
double getElevation() const noexcept
get telescope elevation (meters above reference spheroid)
Hold the location of an observatory.
A class representing an angle.
void setLongitude(lsst::geom::Angle const longitude)
set telescope longitude
Angle wrapCtr() const noexcept
Wrap this angle to the range [-π, π).
lsst::geom::Angle getLatitude() const noexcept
get telescope latitude
std::ostream & operator<<(std::ostream &os, Observatory const &obs)
Print an Observatory to the stream.
lsst::geom::Angle getLongitude() const noexcept
get telescope longitude (positive values are E of Greenwich)
AngleUnit constexpr degrees
constant with units of degrees
A base class for image defects.
table::Key< double > elevation
bool operator!=(Observatory const &rhs) const noexcept
std::size_t hash_value() const noexcept
Return a hash of this object.
table::Key< lsst::geom::Angle > longitude
Observatory & operator=(Observatory const &) noexcept
std::size_t hashCombine(std::size_t seed) noexcept
Combine hashes.
void setLatitude(lsst::geom::Angle const latitude)
set telescope latitude (positive values are E of Greenwich)
size_t operator()(argument_type const &obj) const noexcept