BLI: Add more per-element functions for vectors #108705

Merged
Sergey Sharybin merged 2 commits from Sergey/blender:vector_math into main 2023-06-07 15:15:42 +02:00

2 Commits

Author SHA1 Message Date
Sergey Sharybin 0c35d7b124 BLI: Add more per-element functions for vectors
buildbot/vexp-code-patch-coordinator Build done. Details
This includes square root and reciprocal, and their safe versions.

For the reciprocal use name rcp, which matches Cycles and allows
to implement the same function for per-element operation on matrices.
2023-06-07 15:03:40 +02:00
Sergey Sharybin 0a7b4673f1 BLI: Use math:: functions for per-element vector operations
Use math functions from blender::math for those operations, which
allows to device vectors of non-standard types.
2023-06-07 14:03:34 +02:00