1 #ifndef POLARDECOMPOSITION_H
2 #define POLARDECOMPOSITION_H
72 #endif // POLARDECOMPOSITION_H
static const btScalar DEFAULT_TOLERANCE
static const unsigned int DEFAULT_MAX_ITERATIONS
unsigned int polarDecompose(const btMatrix3x3 &a, btMatrix3x3 &u, btMatrix3x3 &h)
This functions decomposes the matrix 'a' into two parts: an orthogonal matrix 'u' and a symmetric...
btPolarDecomposition(btScalar tolerance=DEFAULT_TOLERANCE, unsigned int maxIterations=DEFAULT_MAX_ITERATIONS)
Creates an instance with optional parameters.
unsigned int maxIterations() const
Returns the maximum number of iterations that this algorithm will perform to achieve convergence...
unsigned int m_maxIterations
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
This class is used to compute the polar decomposition of a matrix.
unsigned int decompose(const btMatrix3x3 &a, btMatrix3x3 &u, btMatrix3x3 &h) const
Decomposes a matrix into orthogonal and symmetric, positive-definite parts.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...