template<class T>
Magnum::Math::Rad class

Angle in radians.

See Deg for more information.

Base classes

template<template<class> class Derived, class T>
class Unit
Base class for units.

Constructors, destructors, conversion operators

Rad(ZeroInitT = ZeroInit) constexpr noexcept
Default constructor.
Rad(NoInitT) explicit noexcept
Construct without initializing the contents.
Rad(T value) explicit constexpr noexcept
Construct from unitless type.
template<class U>
Rad(Unit<Math::Rad, U> value) explicit constexpr noexcept
Construct from another underlying type.
Rad(Unit<Math::Rad, T> value) constexpr noexcept
Copy constructor.
Rad(Unit<Deg, T> value) constexpr
Construct radians from degrees.

Function documentation

template<class T>
Magnum::Math::Rad<T>::Rad(Unit<Deg, T> value) constexpr

Construct radians from degrees.

Performs conversion from degrees to radians, i.e.:

\[ rad = deg \frac \pi 180 \]

template<class T>
Rad<Double> operator"" _rad(long double value) constexpr

Double-precision radian value literal.

See operator""_deg() for more information.

template<class T>
Rad<Float> operator"" _radf(long double value) constexpr

Single-precision radian value literal.

See operator""_degf() for more information.

template<class T> template<class T>
Corrade::Utility::Debug& operator<<(Corrade::Utility::Debug& debug, const Unit<Rad, T>& value)

Debug output operator.