Math » normalize_angle() module

Normalizes angles, wrapping their values to the range [0.0, 2 * pi).

Functions

auto normalize_angle(half x) -> half constexpr noexcept
Normalizes the angle value of a half-precision float.
auto normalize_angle(float x) -> float constexpr noexcept
Normalizes the angle value of a float.
auto normalize_angle(double x) -> double constexpr noexcept
Normalizes the angle value of a double.
auto normalize_angle(long double x) -> long double constexpr noexcept
Normalizes the angle value of a long double.
auto normalize_angle(float128_t x) -> float128_t constexpr noexcept
Normalizes the angle value of a float128_t.
auto normalize_angle(_Float16 x) -> _Float16 constexpr noexcept
Normalizes the angle value of a _Float16.
template <typename T>
auto normalize_angle(T x) -> double constexpr noexcept
Normalizes the angle of an integer.

Function documentation

half normalize_angle(half x) constexpr noexcept
#include <muu/half.h>

Normalizes the angle value of a half-precision float.

float normalize_angle(float x) constexpr noexcept
#include <muu/math.h>

Normalizes the angle value of a float.

double normalize_angle(double x) constexpr noexcept
#include <muu/math.h>

Normalizes the angle value of a double.

long double normalize_angle(long double x) constexpr noexcept
#include <muu/math.h>

Normalizes the angle value of a long double.

float128_t normalize_angle(float128_t x) constexpr noexcept
#include <muu/math.h>

Normalizes the angle value of a float128_t.

_Float16 normalize_angle(_Float16 x) constexpr noexcept
#include <muu/math.h>

Normalizes the angle value of a _Float16.

#include <muu/math.h>
template <typename T>
double normalize_angle(T x) constexpr noexcept

Normalizes the angle of an integer.