Blender Git Loki

Git Commits -> Revision be72df4

Revision be72df4 by Bastien Montagne (master)
October 9, 2015, 19:26 (GMT)
BLI_math: add mat3_polar_decompose, interp_m3_m3m3 and interp_m4_m4m4.

mat3_polar_decompose gives the right polar decomposition of given matrix,
as a pair (U, P) of matrices.

interp_m3_m3m3 uses that polar decomposition to perform a correct matrix interpolation,
even with non-uniformly scaled ones (where blend_m3_m3m3 would fail).

interp_m4_m4m4 just adds translation interpolation to the _m3 variant.

Commit Details:

Full Hash: be72df4f06ac86f76d6dc4b5503531dbbdddce86
Parent Commit: 8159718
Lines Changed: +104, -2

3 Modified Paths:

/source/blender/blenlib/BLI_math_matrix.h (+5, -0) (Diff)
/source/blender/blenlib/intern/math_matrix.c (+97, -0) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021