IDS peak ICV v1.6.0
Loading...
Searching...
No Matches
peak_common_math.hpp File Reference
#include <type_traits>
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <limits>

Namespaces

namespace  peak
 
namespace  peak::common
 Root namespace for common types and interfaces shared across multiple libraries.
 
namespace  peak::common::detail
 Namespace for internal implementation details and low-level types.
 

Functions

template<typename H >
constexpr bool AreAlmostEqual (H lhs, H rhs, uint32_t ulp)
 Compares two floating-point values for approximate equality using a ULP-based tolerance.
 
template<typename T >
constexpr T Clamp (T value, T minimum, T maximum)
 

Detailed Description

Since
ids_peak_common 1.0