LSSTApplications  11.0-13-gbb96280,12.1+18,12.1+7,12.1-1-g14f38d3+72,12.1-1-g16c0db7+5,12.1-1-g5961e7a+84,12.1-1-ge22e12b+23,12.1-11-g06625e2+4,12.1-11-g0d7f63b+4,12.1-19-gd507bfc,12.1-2-g7dda0ab+38,12.1-2-gc0bc6ab+81,12.1-21-g6ffe579+2,12.1-21-gbdb6c2a+4,12.1-24-g941c398+5,12.1-3-g57f6835+7,12.1-3-gf0736f3,12.1-37-g3ddd237,12.1-4-gf46015e+5,12.1-5-g06c326c+20,12.1-5-g648ee80+3,12.1-5-gc2189d7+4,12.1-6-ga608fc0+1,12.1-7-g3349e2a+5,12.1-7-gfd75620+9,12.1-9-g577b946+5,12.1-9-gc4df26a+10
LSSTDataManagementBasePackage
Classes | Namespaces | Macros | Functions | Variables
Angle.h File Reference
#include <limits>
#include <iostream>
#include <boost/math/constants/constants.hpp>
#include <cmath>

Go to the source code of this file.

Classes

class  lsst::afw.geom::AngleUnit
 A class used to convert scalar POD types such as double to Angle. More...
 
class  lsst::afw.geom::Angle
 A class representing an Angle. More...
 

Namespaces

 lsst
 Remove all non-astronomical counts from the Chunk Exposure's pixels.
 
 lsst::afw
 
 lsst.afw.geom
 

Macros

#define ANGLE_OPUP_TYPE(OP, TYPE)
 
#define ANGLE_COMP(OP)
 
#define ANGLE_OP(OP)
 
#define ANGLE_OP_TYPE(OP, TYPE)
 

Functions

double lsst.afw.geom::degToRad (double x)
 
double lsst.afw.geom::radToDeg (double x)
 
double lsst.afw.geom::radToArcsec (double x)
 
double lsst.afw.geom::radToMas (double x)
 
double lsst.afw.geom::arcsecToRad (double x)
 
double lsst.afw.geom::masToRad (double x)
 
const Angle lsst.afw.geom::operator+ (Angle const a, Angle const d)
 
const Angle lsst.afw.geom::operator- (Angle const a, Angle const d)
 
const Angle lsst.afw.geom::operator* (Angle const a, Angle const d)
 
const Angle lsst.afw.geom::operator* (Angle const a, double d)
 
const Angle lsst.afw.geom::operator* (double d, Angle const a)
 
const Angle lsst.afw.geom::operator* (Angle const a, int d)
 
const Angle lsst.afw.geom::operator* (int d, Angle const a)
 
const Angle lsst.afw.geom::operator/ (Angle const a, int d)
 
const Angle lsst.afw.geom::operator/ (Angle const a, double d)
 
template<typename T >
double lsst.afw.geom::operator/ (T const lhs, Angle const rhs)
 
template<typename T >
bool lsst.afw.geom::isAngle (T)
 Allow a user to check if they have an angle (yes; they could do this themselves via trivial TMP) More...
 
bool lsst.afw.geom::isAngle (Angle const &)
 
template<typename T >
const Angle lsst.afw.geom::operator* (T lhs, AngleUnit const rhs)
 Use AngleUnit to convert a POD (e.g. More...
 
std::ostream & lsst.afw.geom::operator<< (std::ostream &s, Angle const a)
 Output operator for an Angle. More...
 

Variables

double const lsst.afw.geom::PI = boost::math::constants::pi<double>()
 The ratio of a circle's circumference to diameter. More...
 
double const lsst.afw.geom::TWOPI = boost::math::constants::pi<double>() * 2.0
 
double const lsst.afw.geom::HALFPI = boost::math::constants::pi<double>() * 0.5
 
double const lsst.afw.geom::ONE_OVER_PI = 1.0 / boost::math::constants::pi<double>()
 
double const lsst.afw.geom::SQRTPI = sqrt(boost::math::constants::pi<double>())
 
double const lsst.afw.geom::INVSQRTPI = 1.0/sqrt(boost::math::constants::pi<double>())
 
double const lsst.afw.geom::ROOT2 = boost::math::constants::root_two<double>()
 
AngleUnit const lsst.afw.geom::radians = AngleUnit(1.0)
 constant with units of radians More...
 
AngleUnit const lsst.afw.geom::degrees = AngleUnit(PI/180.0)
 
AngleUnit const lsst.afw.geom::hours = AngleUnit(PI*15.0/180.0)
 
AngleUnit const lsst.afw.geom::arcminutes = AngleUnit(PI/60/180.0)
 
AngleUnit const lsst.afw.geom::arcseconds = AngleUnit(PI/180.0/3600.0)
 
Angle const lsst.afw.geom::NullAngle = Angle(-1000000., degrees)
 

Macro Definition Documentation

#define ANGLE_COMP (   OP)
Value:
bool operator OP ( const Angle& rhs ) { \
return _val OP rhs._val; \
}
lsst::afw::geom::Angle Angle
Definition: misc.h:38

Definition at line 221 of file Angle.h.

#define ANGLE_OP (   OP)
Value:
inline const Angle operator OP(Angle const a, Angle const d) { \
return Angle(static_cast<double>(a) OP static_cast<double>(d)); \
}
lsst::afw::geom::Angle Angle
Definition: misc.h:38

Definition at line 249 of file Angle.h.

#define ANGLE_OP_TYPE (   OP,
  TYPE 
)
Value:
inline const Angle operator OP(Angle const a, TYPE d) { \
return Angle(static_cast<double>(a) OP d); \
} \
\
inline const Angle operator OP(TYPE d, Angle const a) { \
return Angle(d OP static_cast<double>(a)); \
}
lsst::afw::geom::Angle Angle
Definition: misc.h:38

Definition at line 254 of file Angle.h.

#define ANGLE_OPUP_TYPE (   OP,
  TYPE 
)
Value:
Angle& operator OP(TYPE const& d) { \
_val OP d; \
return *this; \
}
lsst::afw::geom::Angle Angle
Definition: misc.h:38

Definition at line 206 of file Angle.h.