Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::Units::Angle Namespace Reference

Typedefs

template<class Ratio = std::ratio<1>>
using Angle = Unit< UnitKind::Angle, Ratio >
 
using Degree = Angle<>
 
using Radian = Angle< std::ratio< static_cast< std::intmax_t >(180 *1e10), static_cast< std::intmax_t >(3.14159265358979323846 *1e10)> >
 

Functions

template<class ToAngle , class FromAngle >
ToAngle angle_cast (FromAngle const &from)
 
constexpr auto operator""_rad (long double n)
 
constexpr auto operator""_deg (long double n)
 
constexpr auto operator""_rad (unsigned long long n)
 
constexpr auto operator""_deg (unsigned long long n)
 

Typedef Documentation

◆ Angle

template<class Ratio = std::ratio<1>>
using Boardcore::Units::Angle::Angle = typedef Unit<UnitKind::Angle, Ratio>

Definition at line 37 of file Angle.h.

◆ Degree

Definition at line 45 of file Angle.h.

◆ Radian

using Boardcore::Units::Angle::Radian = typedef Angle< std::ratio<static_cast<std::intmax_t>(180 * 1e10), static_cast<std::intmax_t>(3.14159265358979323846 * 1e10)> >

Definition at line 46 of file Angle.h.

Function Documentation

◆ angle_cast()

template<class ToAngle , class FromAngle >
ToAngle Boardcore::Units::Angle::angle_cast ( FromAngle const &  from)

Definition at line 40 of file Angle.h.

◆ operator""_deg() [1/2]

constexpr auto Boardcore::Units::Angle::operator""_deg ( long double  n)
constexpr

Definition at line 55 of file Angle.h.

◆ operator""_deg() [2/2]

constexpr auto Boardcore::Units::Angle::operator""_deg ( unsigned long long  n)
constexpr

Definition at line 64 of file Angle.h.

◆ operator""_rad() [1/2]

constexpr auto Boardcore::Units::Angle::operator""_rad ( long double  n)
constexpr

Definition at line 51 of file Angle.h.

◆ operator""_rad() [2/2]

constexpr auto Boardcore::Units::Angle::operator""_rad ( unsigned long long  n)
constexpr

Definition at line 60 of file Angle.h.