Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-15 01:54:07 +0300
committerHans Goudey <h.goudey@me.com>2022-02-15 01:54:07 +0300
commitce570dd434f8395bb9e1d2746aaab1c93a0d0a27 (patch)
treebf4de2b0f9f07a2c0e660a47f0b371d509d925ff /source/blender/gpu/intern/gpu_context_private.hh
parent8a9a7199abbe83f6d2d7ceeec9052b50cd4202a9 (diff)
BLI: Implement templated math functions for basic types
This is meant to complement the `blender::math` functions recently added by D13791. It's sometimes desired to template an operation to work on vector types, but also basic types like `float` and `int`. This patch adds that ability with a new `BLI_math_base.hh` header. Particularly useful examples are `midpoint` and `interpolate`, but I'm sure others will be added in the future. Implementing the functions separately, rather than as `if constexpr` branches in the existing header is meant to be more scalable, for the possibility of even more math types in the future.
Diffstat (limited to 'source/blender/gpu/intern/gpu_context_private.hh')
0 files changed, 0 insertions, 0 deletions