- Finished non-natural Exponential Tests

- Finished Common Tests

TODO:
Math Constants
exp tests
log tests
This commit is contained in:
2025-06-29 17:55:55 -04:00
parent f2ff863b3a
commit f38cf5fb51
6 changed files with 162 additions and 11 deletions

View File

@@ -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 ----------------------------------------------------------------------------------------------