25 #ifndef LSST_AFW_GEOM_SPHEREPOINT_H_ 26 #define LSST_AFW_GEOM_SPHEREPOINT_H_ 206 return fabs(_latitude) >=
HALFPI;
SpherePoint offset(Angle const &bearing, Angle const &amount) const
Return a point offset from this one along a great circle.
Point in an unspecified spherical coordinate system.
bool operator!=(SpherePoint const &other) const noexcept
false if two points represent the same position.
Angle separation(SpherePoint const &other) const noexcept
Angular distance between two points.
table::Key< geom::Angle > longitude
std::ostream & operator<<(std::ostream &os, SpherePoint const &point)
Print the value of a point to a stream.
AngleUnit constexpr radians
constant with units of radians
Angle getLongitude() const noexcept
The longitude of this point.
SpherePoint(Angle const &longitude, Angle const &latitude)
Construct a SpherePoint from a longitude and latitude.
Angle operator[](size_t index) const
Longitude and latitude by index.
bool isFinite() const noexcept
true if this point is a well-defined position.
A coordinate class intended to represent absolute positions.
A class representing an angle.
A base class for image defects.
table::Key< geom::Angle > latitude
SpherePoint & operator=(SpherePoint const &other) noexcept
Overwrite this object with the value of another SpherePoint.
SpherePoint rotated(SpherePoint const &axis, Angle const &amount) const noexcept
Return a point rotated from this one around an axis.
Angle bearingTo(SpherePoint const &other) const
Direction from one point to another.
Angle getLatitude() const noexcept
The latitude of this point.
bool operator==(SpherePoint const &other) const noexcept
true if two points represent the same position.
bool atPole() const noexcept
true if this point is either coordinate pole.
Point3D getVector() const noexcept
A unit vector representation of this point.