Strong types for angle quantities.
More...
Strong types for angle quantities.
These are used to explicitly mark a floating point value as being degrees or radians. This avoids passing values in degrees to functions expecting radians (which use e.g. trigonometric functions internally).
◆ Degf
◆ Radf
◆ Deg()
template<std::floating_point T>
candlewick::Deg |
( |
T | | ) |
-> Deg< T > |
◆ operator""_deg()
auto candlewick::operator""_deg |
( |
long double | t | ) |
|
|
inlineconstexpr |
◆ operator""_degf()
auto candlewick::operator""_degf |
( |
long double | t | ) |
|
|
inlineconstexpr |
◆ operator""_rad()
auto candlewick::operator""_rad |
( |
long double | t | ) |
|
|
inlineconstexpr |
◆ operator""_radf()
auto candlewick::operator""_radf |
( |
long double | t | ) |
|
|
inlineconstexpr |
◆ operator*() [1/2]
template<std::floating_point T>
Rad< T > candlewick::operator* |
( |
const Rad< T > & | left, |
|
|
const T & | right ) |
|
constexpr |
◆ operator*() [2/2]
template<std::floating_point T>
Rad< T > candlewick::operator* |
( |
const T & | left, |
|
|
const Rad< T > & | right ) |
|
constexpr |
◆ Rad()
template<std::floating_point T>
candlewick::Rad |
( |
T | | ) |
-> Rad< T > |