Numeric limits adapter for 2D vector scalar types.
More...
#include <spk_math_utils.hpp>
|
|
using | value_type = IVector2<TScalar> |
| | Vector type using the provided scalar.
|
|
| static constexpr value_type | min () noexcept |
| | Returns the minimum finite value for each component.
|
| static constexpr value_type | max () noexcept |
| | Returns the maximum finite value for each component.
|
| static constexpr value_type | lowest () noexcept |
| | Returns the lowest finite value for each component.
|
| static constexpr value_type | epsilon () noexcept |
| | Returns the machine epsilon for each component.
|
| static constexpr value_type | roundError () noexcept |
| | Returns the rounding error for each component.
|
|
|
static constexpr bool | is_specialized = true |
| | Indicates this specialization is provided.
|
|
static constexpr int | digits = std::numeric_limits<TScalar>::digits |
| | Number of radix digits for the scalar type.
|
|
static constexpr int | digits10 = std::numeric_limits<TScalar>::digits10 |
| | Number of base-10 digits for the scalar type.
|
|
static constexpr int | max_digits10 = std::numeric_limits<TScalar>::max_digits10 |
| | Maximum number of base-10 digits to preserve round-trips.
|
|
static constexpr bool | is_signed = std::numeric_limits<TScalar>::is_signed |
| | true if the scalar type is signed.
|
|
static constexpr bool | is_integer = std::numeric_limits<TScalar>::is_integer |
| | true if the scalar type is integer.
|
|
static constexpr bool | is_exact = std::numeric_limits<TScalar>::is_exact |
| | true if the scalar type is exact.
|
|
static constexpr int | radix = std::numeric_limits<TScalar>::radix |
| | The radix of the scalar type representation.
|
template<typename TScalar>
struct spk::MathUtils::NumericLimitVector2< TScalar >
Numeric limits adapter for 2D vector scalar types.
- Template Parameters
-
| TScalar | scalar type used by the vector components. |
- See also
- spk::IVector2, std::numeric_limits
static constexpr value_type min() noexcept
Returns the minimum finite value for each component.
Definition spk_math_utils.hpp:53
◆ epsilon()
template<typename TScalar>
|
|
inlinestaticconstexprnoexcept |
Returns the machine epsilon for each component.
- Returns
- Vector of epsilon values.
◆ lowest()
template<typename TScalar>
|
|
inlinestaticconstexprnoexcept |
Returns the lowest finite value for each component.
- Returns
- Vector with component-wise lowest values.
◆ max()
template<typename TScalar>
|
|
inlinestaticconstexprnoexcept |
Returns the maximum finite value for each component.
- Returns
- Vector with component-wise maximum values.
◆ min()
template<typename TScalar>
|
|
inlinestaticconstexprnoexcept |
Returns the minimum finite value for each component.
- Returns
- Vector with component-wise minimum values.
◆ roundError()
template<typename TScalar>
|
|
inlinestaticconstexprnoexcept |
Returns the rounding error for each component.
- Returns
- Vector of rounding error values.
The documentation for this struct was generated from the following file: