diff options
author | YimingWu <xp8110@outlook.com> | 2019-08-20 16:09:55 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2019-08-20 16:09:55 +0300 |
commit | 8bee9af462238936087e0056d97cf086c2f7059a (patch) | |
tree | a103e0e42dccc788f5897782837093ce724e106d /source/blender/blenlib/intern/math_base_inline.c | |
parent | a942d97b7971dc0e7add44e3e9ba1c02fb914f7d (diff) |
BLI: double version of some math functions.
Diffstat (limited to 'source/blender/blenlib/intern/math_base_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index 8f30255a08b..320f8a0f1ab 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -171,6 +171,11 @@ MINLINE float interpf(float target, float origin, float fac) return (fac * target) + (1.0f - fac) * origin; } +MINLINE double interpd(double target, double origin, double fac) +{ + return (fac * target) + (1.0f - fac) * origin; +} + /* used for zoom values*/ MINLINE float power_of_2(float val) { |