25 #ifndef LSST_AFW_GEOM_SPHEREPOINT_H_
26 #define LSST_AFW_GEOM_SPHEREPOINT_H_
191 Angle operator[](
size_t index) const;
206 return fabs(_latitude) >=
HALFPI;
243 bool operator==(
SpherePoint const& other) const noexcept;
251 bool operator!=(
SpherePoint const& other) const noexcept;
356 std::ostream& operator<<(std::ostream& os,
SpherePoint const& point);
Angle bearingTo(SpherePoint const &other) const
Direction from one point to another.
Point in an unspecified spherical coordinate system.
Angle separation(SpherePoint const &other) const noexcept
Angular distance between two points.
table::Key< geom::Angle > longitude
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.
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.
table::Key< geom::Angle > latitude
SpherePoint & operator=(SpherePoint const &other) noexcept
Overwrite this object with the value of another SpherePoint.
SpherePoint offset(Angle const &bearing, Angle const &amount) const
Return a point offset from this one along a great circle.
SpherePoint rotated(SpherePoint const &axis, Angle const &amount) const noexcept
Return a point rotated from this one around an axis.
Angle getLatitude() const noexcept
The latitude of this point.
bool atPole() const noexcept
true if this point is either coordinate pole.
Point3D getVector() const noexcept
A unit vector representation of this point.