LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
A class used to convert scalar POD types such as double
to Angle.
More...
#include <Angle.h>
Public Member Functions | |
constexpr | AngleUnit (double val) |
Define a new angle unit. More... | |
constexpr bool | operator== (AngleUnit const &rhs) const noexcept |
Test if two units are the same. More... | |
std::size_t | hash_value () const noexcept |
Return a hash of this object. More... | |
Friends | |
class | Angle |
template<typename T > | |
constexpr friend Angle | operator* (T lhs, AngleUnit rhs) noexcept |
Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*degrees. More... | |
A class used to convert scalar POD types such as double
to Angle.
For example, given the predefined AngleUnit degrees:
Angle pi = 180*degrees;
is equivalent to
Angle pi(180, degrees);
|
inlineexplicitconstexpr |
|
inlinenoexcept |
|
inlineconstexprnoexcept |