Control Surface main
MIDI Control Surface library for Arduino
Namespaces | Functions | Variables
Degrees.hpp File Reference

Detailed Description

Conversions between radians and degrees.

Definition in file Degrees.hpp.

#include <AH/STL/type_traits>
#include <AH/Settings/NamespaceSettings.hpp>
#include <AH/Settings/Warnings.hpp>
+ Include dependency graph for Degrees.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AH
 PrintStream library
 
namespace  AH::detail
 

Functions

template<class T >
constexpr std::enable_if< std::is_floating_point< T >::value, T >::type rad2deg (T r)
 Convert radians to degrees. More...
 
template<class T >
constexpr std::enable_if< std::is_floating_point< T >::value, T >::type deg2rad (T d)
 Convert degrees to radians. More...
 

Variables

constexpr long double pi_inv_l = 0.318309886183790671537767526745028724L
 
constexpr long double pi_l = 3.141592653589793238462643383279502884L