12 return std::min(std::max(v, vmin), vmax);
15template<
typename S,
typename Float>
18 return a + t * (b - a);
25 S err = std::fma(-c, d, cd);
26 S dop = std::fma(a, b, -cd);
static T min(T a, T b)
Definition: messages.cpp:28
Definition: allobjects.cpp:30
S lerp(S a, S b, Float t)
Definition: math.h:16
double Float
Definition: scalar.h:18
S difference_of_products(S a, S b, S c, S d)
Definition: math.h:22
S clamp(S v, S vmin, S vmax)
Definition: math.h:10