LSSTApplications  11.0-13-gbb96280,12.1.rc1,12.1.rc1+1,12.1.rc1+2,12.1.rc1+5,12.1.rc1+8,12.1.rc1-1-g06d7636+1,12.1.rc1-1-g253890b+5,12.1.rc1-1-g3d31b68+7,12.1.rc1-1-g3db6b75+1,12.1.rc1-1-g5c1385a+3,12.1.rc1-1-g83b2247,12.1.rc1-1-g90cb4cf+6,12.1.rc1-1-g91da24b+3,12.1.rc1-2-g3521f8a,12.1.rc1-2-g39433dd+4,12.1.rc1-2-g486411b+2,12.1.rc1-2-g4c2be76,12.1.rc1-2-gc9c0491,12.1.rc1-2-gda2cd4f+6,12.1.rc1-3-g3391c73+2,12.1.rc1-3-g8c1bd6c+1,12.1.rc1-3-gcf4b6cb+2,12.1.rc1-4-g057223e+1,12.1.rc1-4-g19ed13b+2,12.1.rc1-4-g30492a7
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
 

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. int, double) to an Angle; e.g. 180*afwGeomdegrees. More...
 
std::ostream & lsst::afw::geom::operator<< (std::ostream &s, Angle const a)
 

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.