|
lsst.geom g19811a7679+8681a15dd0
|
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. | |
| constexpr bool | operator== (AngleUnit const &rhs) const noexcept |
| Test if two units are the same. | |
| std::size_t | hash_value () const noexcept |
| Return a hash of this object. | |
Friends | |
| class | Angle |
| template<typename T> | |
| constexpr Angle | operator* (T lhs, AngleUnit rhs) |
| Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*degrees. | |
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 |