diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-07-08 15:30:17 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-07-08 15:30:17 +0000 |
| commit | 76a5492f70965d34fc5a9d42eafe08e7ea61aeb3 (patch) | |
| tree | 54687aa943bce22a834bb6e62ea52f9565b8e5b7 /Common/interface | |
| parent | Math lib: added HermiteSpline function (diff) | |
| download | DiligentCore-76a5492f70965d34fc5a9d42eafe08e7ea61aeb3.tar.gz DiligentCore-76a5492f70965d34fc5a9d42eafe08e7ea61aeb3.zip | |
Math lib: fixed HermiteSpline function
Diffstat (limited to 'Common/interface')
| -rw-r--r-- | Common/interface/AdvancedMath.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<typename T> +template<typename T, typename Y> 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; |
