Blender Git Loki

Git Commits -> Revision 46e4cdf

Revision 46e4cdf by Sybren A. Stüvel (master)
June 18, 2020, 08:37 (GMT)
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`.

Commit Details:

Full Hash: 46e4cdf7884f997f8a2c9c8b06429fd8da917f2a
Parent Commit: 099d47f
Lines Changed: +78, -0

1 Added Path:

/tests/gtests/blenlib/BLI_math_matrix_test.cc (+77, -0) (View)

1 Modified Path:

/tests/gtests/blenlib/CMakeLists.txt (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021