X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2Fcml%2Fmathlib%2Finterpolation.h;h=4a9fd54cd58a464cd24e1cf8faad53fcaac3bd69;hp=79d57ae83f197cf655be52a60e275bf04364a9b5;hb=40755d4c6251206c18ce4784967d3a910cee096f;hpb=d08114d4e7315636ff62127845150273e0cbf66f diff --git a/src/Moof/cml/mathlib/interpolation.h b/src/Moof/cml/mathlib/interpolation.h index 79d57ae..4a9fd54 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 = val0 * (Scalar(1) - u) + val1 * u; + result = (Scalar(1) - u) * val0 + u * val1; return result; }