X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2Fcml%2Fmathlib%2Finterpolation.h;h=79d57ae83f197cf655be52a60e275bf04364a9b5;hp=4a9fd54cd58a464cd24e1cf8faad53fcaac3bd69;hb=d50942708db230dc5c43b8df89ede45525e1c394;hpb=57b78ebe21b1b48acd337daa5a1cb8c383959cfa diff --git a/src/Moof/cml/mathlib/interpolation.h b/src/Moof/cml/mathlib/interpolation.h index 4a9fd54..79d57ae 100644 --- a/src/Moof/cml/mathlib/interpolation.h +++ b/src/Moof/cml/mathlib/interpolation.h @@ -989,7 +989,7 @@ lerp(const T1& val0, const T2& val1, Scalar u) temporary_type result; detail::InterpResize(result, val1, size_tag()); - result = (Scalar(1) - u) * val0 + u * val1; + result = val0 * (Scalar(1) - u) + val1 * u; return result; }