- Finished non-natural Exponential Tests
- Finished Common Tests TODO: Math Constants exp tests log tests
This commit is contained in:
@@ -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