Closed leloykun closed 5 years ago
Thanks @MrSmile!
correct me if I'm wrong but is clamp()
for doubles implemented as:
inline double clamp(double v, double minv, double maxv) {
return std::min(std::max(v, minv), maxv);
}
?
Yes, that looks right.
That's variant from my working code: