LSSTApplications
16.0-10-g9d3e444,16.0-10-gb7df26b+3,16.0-10-gbd9fc95,16.0-11-g09ed895+3,16.0-11-g12e47bd+11,16.0-12-g5c924a4+21,16.0-12-g71e5ef5+10,16.0-15-g7af1f30+2,16.0-15-gdd5ca33+2,16.0-16-gf0259e2+1,16.0-18-gcf94535+13,16.0-19-g283fd30+1,16.0-19-g9d290d5+13,16.0-2-g0febb12+22,16.0-2-g9d5294e+76,16.0-20-g42ca1a7,16.0-20-g8d11721+2,16.0-23-g28ad22d+2,16.0-25-g723f23e8+2,16.0-29-g44d5b4c,16.0-32-ga392cb8+2,16.0-32-gc794025+1,16.0-4-g18f3627+20,16.0-4-g5f3a788+21,16.0-4-g6d309fa,16.0-4-ga3eb747+11,16.0-4-gabf74b7+42,16.0-4-gb13d127+7,16.0-5-g27fb78a+20,16.0-5-g6a53317+47,16.0-5-gb3f8a4b+101,16.0-6-g9321be7+5,16.0-6-gcbc7b31+58,16.0-6-gf49912c+44,16.0-65-g12857137,16.0-76-g802307b6d+2,16.0-8-g21fd5fe+45,16.0-8-g3a9f023+27,16.0-8-gc11f1cf+11,master-g5605b1aa4d+2,w.2019.05
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... | |
struct | std::hash< lsst::geom::AngleUnit > |
struct | std::hash< lsst::geom::Angle > |
Namespaces | |
lsst | |
A base class for image defects. | |
lsst::geom | |
std | |
STL namespace. | |
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 | |||
) |