LSST Applications
21.0.0-1-g8760c09+64c1bc5aa5,21.0.0-1-ga51b5d4+9915f4c1f0,21.0.0-117-gc411b24e+f84ddc296e,21.0.0-14-g3bd782b+16b33694c2,21.0.0-18-gdfc0191+ecbc221302,21.0.0-2-g103fe59+df8d4d8d23,21.0.0-2-g45278ab+64c1bc5aa5,21.0.0-2-g5242d73+2292060af2,21.0.0-2-g7f82c8f+6f93c05343,21.0.0-2-gde069b7+4f46bdaea8,21.0.0-2-gfc62afb+2292060af2,21.0.0-20-g1e553c2+458274d3ec,21.0.0-20-g3b2d1f0+6435842460,21.0.0-21-g51ee50f4+981cd1fc80,21.0.0-21-gc8894c7+b39e0bca51,21.0.0-27-gcbf119a+9cedfa2013,21.0.0-3-g1b65d06+6a55181de0,21.0.0-3-g357aad2+056b41e3ab,21.0.0-3-g4a4ce7f+2292060af2,21.0.0-3-g4be5c26+2292060af2,21.0.0-3-ge02ed75+b39e0bca51,21.0.0-3-gf9d8b05+6f93c05343,21.0.0-31-gbc33d95d+283f9bd92d,21.0.0-4-g7dab645+6975c8242f,21.0.0-46-g27369044f+532d44eec1,21.0.0-5-g5f8d297+1eaad2dc21,21.0.0-5-g8c1d971+7e5b4c34a6,21.0.0-5-gcc89fd6+b18c5f6b76,21.0.0-5-gd00fb1e+78c370a642,21.0.0-6-g1930a60+b18c5f6b76,21.0.0-6-gc675373+2292060af2,21.0.0-7-g0503b2e+18535a8d22,21.0.0-7-g7aa11f2+b39e0bca51,21.0.0-7-g997b569+8c09b75fa7,21.0.0-7-gdf92d54+64c1bc5aa5,21.0.0-9-g7058be7+2d726afa20,master-ga86695c5c8+b39e0bca51,master-gcc5351303a+df8d4d8d23,w.2021.26
LSST Data Management Base Package
|
#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 a, double d) noexcept |
Product of an angle and a scalar. More... | |
constexpr Angle | lsst::geom::operator* (double d, Angle a) noexcept |
constexpr Angle | lsst::geom::operator* (Angle a, int d) noexcept |
constexpr Angle | lsst::geom::operator* (int d, Angle a) noexcept |
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... | |
Variables | |
constexpr double | lsst::geom::PI = boost::math::constants::pi<double>() |
The ratio of a circle's circumference to diameter. More... | |
constexpr double | lsst::geom::TWOPI = boost::math::constants::pi<double>() * 2.0 |
constexpr double | lsst::geom::HALFPI = boost::math::constants::pi<double>() * 0.5 |
constexpr double | 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>()) |
constexpr double | lsst::geom::ROOT2 = boost::math::constants::root_two<double>() |
constexpr AngleUnit | lsst::geom::radians = AngleUnit(1.0) |
constant with units of radians More... | |
constexpr AngleUnit | lsst::geom::degrees = AngleUnit(PI / 180.0) |
constant with units of degrees More... | |
constexpr AngleUnit | lsst::geom::hours = AngleUnit(PI * 15.0 / 180.0) |
constant with units of hours More... | |
constexpr AngleUnit | lsst::geom::arcminutes = AngleUnit(PI / 60 / 180.0) |
constant with units of arcminutes More... | |
constexpr AngleUnit | lsst::geom::arcseconds = AngleUnit(PI / 180.0 / 3600.0) |
constant with units of arcseconds More... | |
constexpr AngleUnit | 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 | |||
) |