Lines 1298 and 1304 of vmath.h have a bug in the implementation of mix(). According to the definition of linear interpolation, the code implementation seems to be should be
template <typename T>
static inline T mix(const T& A, const T& B, typename T::element_type t)
{
return A + t * (B - A);
}
Lines 1298 and 1304 of vmath.h have a bug in the implementation of mix(). According to the definition of linear interpolation, the code implementation seems to be should be