Class MathFunctions¶
Defined in File MathFunctions.h
Class Documentation¶
-
class
SPH::MathFunctions¶ Public Static Functions
-
static void
extractRotation(const Matrix3r &A, Quaternionr &q, const unsigned int maxIter)¶ Implementation of the paper:
Matthias Müller, Jan Bender, Nuttapong Chentanez and Miles Macklin, “A Robust Method to Extract the Rotational Part of Deformations”, ACM SIGGRAPH Motion in Games, 2016
-
static void
svdWithInversionHandling(const Matrix3r &A, Vector3r &sigma, Matrix3r &U, Matrix3r &VT)¶ Perform a singular value decomposition of matrix A: A = U * sigma * V^T. This function returns two proper rotation matrices U and V^T which do not contain a reflection. Reflections are corrected by the inversion handling proposed by Irving et al. 2004.
-
static void