Component-wise selection functions on vectors. Either argument can be a vector or a scalar. More...
Functions | |
template<class A , class B > | |
constexpr apply_t< detail::min, A, B > | min (const A &a, const B &b) |
template<class A , class B > | |
constexpr apply_t< detail::max, A, B > | max (const A &a, const B &b) |
template<class X , class L , class H > | |
constexpr apply_t< detail::clamp, X, L, H > | clamp (const X &x, const L &l, const H &h) |
Clamps the components of x between l and h, provided l[i] < h[i]. | |
template<class P , class A , class B > | |
constexpr apply_t< detail::select, P, A, B > | select (const P &p, const A &a, const B &b) |
Returns the component from a if the corresponding component of p is true and from b otherwise. | |
template<class A , class B , class T > | |
constexpr apply_t< detail::lerp, A, B, T > | lerp (const A &a, const B &b, const T &t) |
Linear interpolation from a to b as t goes from 0 -> 1. Values beyond [a, b] will result if t is outside [0, 1]. | |
Component-wise selection functions on vectors. Either argument can be a vector or a scalar.