23 #ifndef LSST_SPHGEOM_ANGLE_H_ 24 #define LSST_SPHGEOM_ANGLE_H_ 57 explicit Angle(
double a) : _rad(a) {}
110 #endif // LSST_SPHGEOM_ANGLE_H_ Angle abs(Angle const &a)
bool operator>=(Angle const &a) const
Angle operator+(Angle const &a) const
bool isNan() const
isNan returns true if the angle value is NaN.
constexpr double DEG_PER_RAD
std::ostream & operator<<(std::ostream &, Angle const &)
double operator/(Angle const &a) const
double sin(Angle const &a)
Angle operator/(double a) const
bool operator==(Angle const &a) const
double cos(Angle const &a)
bool operator<=(Angle const &a) const
A base class for image defects.
This file contains common constants.
double asRadians() const
asRadians returns the value of this angle in units of radians.
Angle & operator-=(Angle const &a)
double asDegrees() const
asDegrees returns the value of this angle in units of degrees.
static Angle fromDegrees(double a)
double tan(Angle const &a)
static Angle fromRadians(double a)
bool operator<(Angle const &a) const
Angle operator-(Angle const &a) const
Angle & operator+=(Angle const &a)
Angle represents an angle in radians.
Angle & operator/=(double a)
Angle operator*(double a) const
Angle & operator*=(double a)
Angle(double a)
This constructor creates an Angle with the given value in radians.
bool operator!=(Angle const &a) const
bool isNormalized() const
isNormalized returns true if this angle lies in the range [0, 2π).
Angle()
This constructor creates an Angle with a value of zero.
bool operator>(Angle const &a) const
constexpr double RAD_PER_DEG