Skip to main content

utils.ixx File

Misc math utility functions. More...

Included Headers

#include <numbers>

Namespaces Index

namespacehelios
namespacemath

Description

Misc math utility functions.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <numbers>
8
9export module helios.math.utils;
10
11export namespace helios::math {
12
22 constexpr float EPSILON_LENGTH = 1e-6f;
23
30 constexpr float radians(const float angle) noexcept {
31 return angle * static_cast<float>(std::numbers::pi)/180.0f;
32 }
33
40 constexpr float degrees(const float radians) noexcept {
41 return radians * 180.0f/static_cast<float>(std::numbers::pi);
42 }
43
44
45}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.