opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
constants.h File Reference
#include <concepts>
#include <limits>
#include <numbers>
Include dependency graph for constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  osc::detail::sqrt_epsilon_impl< float >
 
struct  osc::detail::sqrt_epsilon_impl< double >
 

Namespaces

namespace  osc
 
namespace  osc::detail
 

Variables

template<std::floating_point T>
constexpr T osc::pi_v = std::numbers::pi_v<T>
 
template<std::floating_point T>
constexpr T osc::epsilon_v = std::numeric_limits<T>::epsilon()
 
template<std::floating_point T>
constexpr T osc::sqrt_epsilon_v = detail::sqrt_epsilon_impl<T>::value
 
template<std::floating_point T>
constexpr T osc::quiet_nan_v = std::numeric_limits<T>::quiet_NaN()
 
template<std::floating_point T>
constexpr T osc::deg_to_rad_v = pi_v<T> / T{180}
 
template<std::floating_point T>
constexpr T osc::rad_to_deg_v = T{180} / pi_v<T>
 
template<std::floating_point T>
constexpr T osc::max_abs_dot_for_cross_v = T(1) - sqrt_epsilon_v<T>