36template <
class Ratio = std::ratio<1>>
37using Angle = Unit<UnitKind::Angle, Ratio>;
39template <
class ToAngle,
class FromAngle>
48 std::ratio<static_cast<std::intmax_t>(180 * 1e10),
49 static_cast<std::intmax_t
>(3.14159265358979323846 * 1e10)>>;
51constexpr auto operator""_rad(
long double n)
53 return Radian(
static_cast<float>(n));
55constexpr auto operator""_deg(
long double n)
57 return Degree(
static_cast<float>(n));
60constexpr auto operator""_rad(
unsigned long long n)
62 return Radian(
static_cast<float>(n));
64constexpr auto operator""_deg(
unsigned long long n)
66 return Degree(
static_cast<float>(n));
Angle< std::ratio< static_cast< std::intmax_t >(180 *1e10), static_cast< std::intmax_t >(3.14159265358979323846 *1e10)> > Radian
Unit< UnitKind::Angle, Ratio > Angle
ToAngle angle_cast(FromAngle const &from)
This file includes all the types the logdecoder script will decode.