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-16 19:28:18 +0300
committerHans Goudey <h.goudey@me.com>2022-02-16 19:28:26 +0300
commit399168f3c13fadb41c9fbec8a1b5c56cb6609343 (patch)
tree6642554c8927280a8ba49bd9c329f2a133afa60a /source/blender/blenkernel/intern/pointcloud.cc
parent5b3a415a59cef7183a2539fcc12de8fd1ebf8814 (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. The existing vector math header is changed to use the `vec_base` type more explicitly, to allow the compiler's generic function overload resolution to determine which implementation of each math function to use. This is a relatively large change, but it also makes the file significantly easier to understand by reducing the use of macros. Differential Revision: https://developer.blender.org/D14113
Diffstat (limited to 'source/blender/blenkernel/intern/pointcloud.cc')
0 files changed, 0 insertions, 0 deletions