23 #ifndef LSST_SPHGEOM_LONLAT_H_ 24 #define LSST_SPHGEOM_LONLAT_H_ 81 return _lon == p._lon && _lat == p._lat;
85 return _lon != p._lon || _lat != p._lat;
93 void _enforceInvariants();
103 #endif // LSST_SPHGEOM_LONLAT_H_ bool operator==(LonLat const &p) const
NormalizedAngle is an angle that lies in the range [0, 2π), with one exception - a NormalizedAngle ca...
std::ostream & operator<<(std::ostream &, Angle const &)
Vector3d is a vector in ℝ³ with components stored in double precision.
static NormalizedAngle longitudeOf(Vector3d const &v)
longitudeOf returns the longitude of the point on the unit sphere corresponding to the direction of v...
NormalizedAngle getLon() const
static NormalizedAngle fromDegrees(double a)
static LonLat fromDegrees(double lon, double lat)
A base class for image defects.
bool operator!=(LonLat const &p) const
static Angle fromDegrees(double a)
static Angle latitudeOf(Vector3d const &v)
latitudeOf returns the latitude of the point on the unit sphere corresponding to the direction of v...
static Angle fromRadians(double a)
static NormalizedAngle fromRadians(double a)
static LonLat fromRadians(double lon, double lat)
Angle represents an angle in radians.
LonLat represents a spherical coordinate (longitude/latitude angle) pair.
LonLat()
This constructor creates the point with longitude and latitude angle equal to zero.
This file declares a class for representing normalized angles.