LSSTApplications
16.0-1-gce273f5+17,16.0-1-gf77f410+12,16.0-10-g5a5abec+8,16.0-10-gc1446dd+12,16.0-12-g1dc09ba+6,16.0-12-g569485f,16.0-12-ga22ed6e+1,16.0-13-g4c33ca5+12,16.0-13-gb122224+3,16.0-13-gd9b1b71+12,16.0-14-g22e2ff2,16.0-14-g71e547a+8,16.0-17-g0bdc215+4,16.0-17-g6a7bfb3b+12,16.0-2-g0febb12+14,16.0-2-g839ba83+50,16.0-2-g9d5294e+39,16.0-20-ga7ad2685,16.0-3-g404ea43+9,16.0-3-gbc759ec+10,16.0-3-gcfd6c53+37,16.0-4-g03cf288+28,16.0-4-g13a27c5+14,16.0-4-g5f3a788+13,16.0-4-g8a0f11a+34,16.0-4-ga3eb747+3,16.0-45-g4805a823c,16.0-5-g1991253+12,16.0-5-g1e9226d+1,16.0-5-g865efd9+12,16.0-5-gb3f8a4b+44,16.0-5-gd0f1235+6,16.0-6-gf0acd13+31,16.0-6-gf9cb114+13,16.0-7-g6043bfc,16.0-7-ga8e1655+8,16.0-8-g23bbf3f+3,16.0-8-g4dec96c+25,16.0-8-gfd407c0+2,master-g965b868a3d+1,master-gdc6be1965f+1,w.2018.39
LSSTDataManagementBasePackage
|
#include <cmath>
#include <iostream>
#include <type_traits>
#include "boost/math/constants/constants.hpp"
Go to the source code of this file.
Classes | |
class | lsst::geom::AngleUnit |
A class used to convert scalar POD types such as double to Angle. More... | |
class | lsst::geom::Angle |
A class representing an angle. More... | |
Namespaces | |
lsst | |
A base class for image defects. | |
lsst::geom | |
Macros | |
#define | ANGLE_OPUP_TYPE(OP, TYPE) |
#define | ANGLE_COMP(OP) constexpr bool operator OP(const Angle& rhs) const noexcept { return _val OP rhs._val; } |
#define | ANGLE_OP(OP) |
#define | ANGLE_OP_TYPE(OP, TYPE) |
Functions | |
constexpr double | lsst::geom::degToRad (double x) noexcept |
constexpr double | lsst::geom::radToDeg (double x) noexcept |
constexpr double | lsst::geom::radToArcsec (double x) noexcept |
constexpr double | lsst::geom::radToMas (double x) noexcept |
constexpr double | lsst::geom::arcsecToRad (double x) noexcept |
constexpr double | lsst::geom::masToRad (double x) noexcept |
constexpr Angle | lsst::geom::operator+ (Angle a, Angle d) noexcept |
Sum of two angles. More... | |
constexpr Angle | lsst::geom::operator- (Angle a, Angle d) noexcept |
Difference of two angles. More... | |
constexpr Angle | lsst::geom::operator* (Angle a, Angle d) noexcept |
Product of two angles. More... | |
constexpr Angle | lsst::geom::operator- (Angle angle) |
An angle in the opposite sense. More... | |
constexpr Angle | lsst::geom::operator/ (Angle a, int d) noexcept |
Ratio of an angle and a scalar. More... | |
constexpr Angle | lsst::geom::operator/ (Angle a, double d) noexcept |
Ratio of an angle and a scalar. More... | |
template<typename T > | |
constexpr double | lsst::geom::operator/ (T const lhs, Angle rhs) noexcept=delete |
std::ostream & | lsst::geom::operator<< (std::ostream &s, Angle a) |
Print an Angle to a stream. More... | |
template<typename T > | |
constexpr bool | lsst::geom::isAngle (T) noexcept |
Allow a user to check if they have an angle. More... | |
template<typename T > | |
constexpr Angle | lsst::geom::operator* (T lhs, AngleUnit rhs) noexcept |
Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*degrees. More... | |
constexpr Angle | lsst::geom::operator* (Angle a, double d) noexcept |
Product of an angle and a scalar. More... | |
constexpr Angle | lsst::geom::operator* (double d, Angle a) noexcept |
Product of an angle and a scalar. More... | |
constexpr Angle | lsst::geom::operator* (Angle a, int d) noexcept |
Product of an angle and a scalar. More... | |
constexpr Angle | lsst::geom::operator* (int d, Angle a) noexcept |
Product of an angle and a scalar. More... | |
Variables | |
double constexpr | lsst::geom::PI = boost::math::constants::pi<double>() |
The ratio of a circle's circumference to diameter. More... | |
double constexpr | lsst::geom::TWOPI = boost::math::constants::pi<double>() * 2.0 |
double constexpr | lsst::geom::HALFPI = boost::math::constants::pi<double>() * 0.5 |
double constexpr | lsst::geom::ONE_OVER_PI = 1.0 / boost::math::constants::pi<double>() |
double const | lsst::geom::SQRTPI = sqrt(boost::math::constants::pi<double>()) |
double const | lsst::geom::INVSQRTPI = 1.0 / sqrt(boost::math::constants::pi<double>()) |
double constexpr | lsst::geom::ROOT2 = boost::math::constants::root_two<double>() |
AngleUnit constexpr | lsst::geom::radians = AngleUnit(1.0) |
constant with units of radians More... | |
AngleUnit constexpr | lsst::geom::degrees = AngleUnit(PI / 180.0) |
constant with units of degrees More... | |
AngleUnit constexpr | lsst::geom::hours = AngleUnit(PI * 15.0 / 180.0) |
constant with units of hours More... | |
AngleUnit constexpr | lsst::geom::arcminutes = AngleUnit(PI / 60 / 180.0) |
constant with units of arcminutes More... | |
AngleUnit constexpr | lsst::geom::arcseconds = AngleUnit(PI / 180.0 / 3600.0) |
constant with units of arcseconds More... | |
AngleUnit constexpr | lsst::geom::milliarcseconds |
constant with units of milliarcseconds More... | |
#define ANGLE_COMP | ( | OP | ) | constexpr bool operator OP(const Angle& rhs) const noexcept { return _val OP rhs._val; } |
#define ANGLE_OP | ( | OP | ) |
#define ANGLE_OP_TYPE | ( | OP, | |
TYPE | |||
) |
#define ANGLE_OPUP_TYPE | ( | OP, | |
TYPE | |||
) |