- Finished non-natural Exponential Tests
- Finished Common Tests TODO: Math Constants exp tests log tests
This commit is contained in:
@@ -293,15 +293,15 @@ template<> struct numeric_limits<float>
|
||||
static constexpr int max_exponent = FLT_MAX_EXP;
|
||||
static constexpr int max_exponent10 = FLT_MAX_10_EXP;
|
||||
|
||||
static constexpr double min() { return -FLT_MAX; }
|
||||
static constexpr double max() { return FLT_MAX; }
|
||||
static constexpr double lowest() { return FLT_MIN; }
|
||||
static constexpr double epsilon() { return FLT_EPSILON; }
|
||||
static constexpr double round_error() { return FLT_ROUND_ERR; }
|
||||
static constexpr double infinity() { return FLT_INF; }
|
||||
static constexpr double quiet_NaN() { return FLT_QUIET_NAN; }
|
||||
static constexpr double signaling_NaN() { return FLT_SIGNALING_NAN; }
|
||||
static constexpr double denorm_min() { return FLT_DENORM_MIN; }
|
||||
static constexpr float min() { return -FLT_MAX; }
|
||||
static constexpr float max() { return FLT_MAX; }
|
||||
static constexpr float lowest() { return FLT_MIN; }
|
||||
static constexpr float epsilon() { return FLT_EPSILON; }
|
||||
static constexpr float round_error() { return FLT_ROUND_ERR; }
|
||||
static constexpr float infinity() { return FLT_INF; }
|
||||
static constexpr float quiet_NaN() { return FLT_QUIET_NAN; }
|
||||
static constexpr float signaling_NaN() { return FLT_SIGNALING_NAN; }
|
||||
static constexpr float denorm_min() { return FLT_DENORM_MIN; }
|
||||
};
|
||||
|
||||
// Overload for the bultin double precision floating point type
|
||||
|
||||
@@ -907,7 +907,7 @@ constexpr vector<genType, i...> step(const vector<genType, i...>& edge, const ve
|
||||
/// \param x \f$x\f$ coordinate input
|
||||
template<typename genType> requires(is_floating_point_v<genType>)
|
||||
constexpr genType smoothstep(genType edge0, genType edge1, genType x)
|
||||
{ genType t = fennec::clamp((x - edge0) / (edge1 - edge0)); return t * t * (3 - 2 * t); }
|
||||
{ genType t = fennec::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f); return t * t * (3 - 2 * t); }
|
||||
|
||||
|
||||
// Vector Specializations ----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user