diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-04 16:38:03 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-04 16:46:54 +0300 |
commit | e5d4a0c5596daaae14251872755df1e71e54e108 (patch) | |
tree | 06ca2a1ab68e7c701d7fff1ee0ccdeb02ffa1502 /source/blender/blenlib/BLI_math_base.h | |
parent | 26c2c617b468ee2900f584b0ec0c82dfd632849a (diff) |
BLI: add double version of 'scaleform'
No functional changes. New utility.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 88dc20a64f2..e877503e835 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -120,6 +120,9 @@ MINLINE double interpd(double a, double b, double t); MINLINE float ratiof(float min, float max, float pos); MINLINE double ratiod(double min, double max, double pos); +MINLINE float scalenorm(float a, float b, float x); +MINLINE double scalenormd(double a, double b, double x); + /* NOTE: Compilers will upcast all types smaller than int to int when performing arithmetic * operation. */ MINLINE int square_s(short a); |