From 76a5492f70965d34fc5a9d42eafe08e7ea61aeb3 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 8 Jul 2019 08:30:17 -0700 Subject: Math lib: fixed HermiteSpline function --- Common/interface/AdvancedMath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/AdvancedMath.h b/Common/interface/AdvancedMath.h index f2d7d605..b6b3596b 100644 --- a/Common/interface/AdvancedMath.h +++ b/Common/interface/AdvancedMath.h @@ -324,12 +324,12 @@ inline bool operator == (const ViewFrustumExt &f1, const ViewFrustumExt &f2) return true; } -template +template T HermiteSpline(T f0, // F(0) T f1, // F(1) T t0, // F'(0) T t1, // F'(1) - T x) + Y x) { // https://en.wikipedia.org/wiki/Cubic_Hermite_spline auto x2 = x*x; -- cgit v1.2.3