Antkeeper  0.0.1
Namespaces | Functions
angles.hpp File Reference
#include <engine/math/numbers.hpp>
#include <cmath>

Go to the source code of this file.

Namespaces

 math
 Mathematical functions and data types.
 

Functions

template<class T >
constexpr T math::degrees (T radians) noexcept
 Converts an angle from radians to degrees. More...
 
template<class T >
constexpr T math::radians (T degrees) noexcept
 Converts an angle given in degrees to radians. More...
 
template<class T >
constexpr T math::wrap_degrees (T degrees)
 Wraps an angle to [-180, 180]. More...
 
template<class T >
constexpr T math::wrap_radians (T radians)
 Wraps an angle to [-pi, pi]. More...