diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-06-16 16:36:08 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-06-18 11:37:46 +0300 |
commit | 46e4cdf7884f997f8a2c9c8b06429fd8da917f2a (patch) | |
tree | 4f6e5d7cfe9711e2e27b51db93d4d2dffb4ef840 /tests/gtests/blenlib/CMakeLists.txt | |
parent | 099d47f8a310ca6b89adb4e61cc7ec15cc9c11d9 (diff) |
Tests: added simple unittests for matrix interpolation
The interpolation of 4x4 and 3x3 matrices will fail when the rotation
component has a singularity, i.e. when there is one axis mirrored. Two
mirrored axes are just a rotation of 180 degrees around the third, and
three mirrored axes are such a rotation + a single axis mirror. To
prepare for a fix, I first wanted to cover the basic functionality with
a few unit tests.
These tests check that `interpolate(A, B, alpha)` always returns `A` for
`alpha=0`, always return `B` for `alpha=1`, and something in between for
`alpha=0.5`.
Diffstat (limited to 'tests/gtests/blenlib/CMakeLists.txt')
-rw-r--r-- | tests/gtests/blenlib/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gtests/blenlib/CMakeLists.txt b/tests/gtests/blenlib/CMakeLists.txt index 8ddb2702b83..31c8e983292 100644 --- a/tests/gtests/blenlib/CMakeLists.txt +++ b/tests/gtests/blenlib/CMakeLists.txt @@ -60,6 +60,7 @@ BLENDER_TEST(BLI_math_base "bf_blenlib") BLENDER_TEST(BLI_math_bits "bf_blenlib") BLENDER_TEST(BLI_math_color "bf_blenlib") BLENDER_TEST(BLI_math_geom "bf_blenlib") +BLENDER_TEST(BLI_math_matrix "bf_blenlib") BLENDER_TEST(BLI_math_vector "bf_blenlib") BLENDER_TEST(BLI_memiter "bf_blenlib") BLENDER_TEST(BLI_optional "bf_blenlib") |