Bullet Collision Detection & Physics Library
Functions
btPolarDecomposition.cpp File Reference
#include "btPolarDecomposition.h"
#include "btMinMax.h"
Include dependency graph for btPolarDecomposition.cpp:

Go to the source code of this file.

Functions

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, positive-definite matrix 'h'. More...
 

Function Documentation

◆ polarDecompose()

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, positive-definite matrix 'h'.

If the number of iterations returned by this function is equal to btPolarDecomposition::DEFAULT_MAX_ITERATIONS, the algorithm has failed to converge.

Parameters
a- the original matrix
u- the resulting orthogonal matrix
h- the resulting symmetric matrix
Returns
the number of iterations performed by the algorithm.

Definition at line 90 of file btPolarDecomposition.cpp.