HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_CrackMatrix.h File Reference
#include "UT_API.h"
#include "UT_Quaternion.h"
#include "UT_XformOrder.h"
#include <SYS/SYS_Types.h>
+ Include dependency graph for UT_CrackMatrix.h:

Go to the source code of this file.

Functions

UT_API bool UTcrackMatrixSmooth (const UT_XformOrder &order, fpreal32 &rx, fpreal32 &ry, fpreal32 &rz, fpreal32 ox, fpreal32 oy, fpreal32 oz)
 
UT_API bool UTcrackMatrixSmooth (const UT_XformOrder &order, fpreal64 &rx, fpreal64 &ry, fpreal64 &rz, fpreal64 ox, fpreal64 oy, fpreal64 oz)
 
UT_API bool UTcrackMatrixSmooth (const UT_XformOrder &order, const UT_Quaternion &q, fpreal &rx, fpreal &ry, fpreal &rz, fpreal ox, fpreal oy, fpreal oz)
 

Function Documentation

UT_API bool UTcrackMatrixSmooth ( const UT_XformOrder order,
fpreal32 rx,
fpreal32 ry,
fpreal32 rz,
fpreal32  ox,
fpreal32  oy,
fpreal32  oz 
)

Updates radian euler rotations rx, ry, and rz to have the closest values to ox, oy, and oz radians while still describing the same orientation. Returns false if rx/ry/rz are gimbal locked, true otherwise.

UT_API bool UTcrackMatrixSmooth ( const UT_XformOrder order,
fpreal64 rx,
fpreal64 ry,
fpreal64 rz,
fpreal64  ox,
fpreal64  oy,
fpreal64  oz 
)

Updates radian euler rotations rx, ry, and rz to have the closest values to ox, oy, and oz radians while still describing the same orientation. Returns false if rx/ry/rz are gimbal locked, true otherwise.

UT_API bool UTcrackMatrixSmooth ( const UT_XformOrder order,
const UT_Quaternion q,
fpreal rx,
fpreal ry,
fpreal rz,
fpreal  ox,
fpreal  oy,
fpreal  oz 
)

Updates radian euler rotations rx, ry, and rz to have the closest values to ox, oy, and oz radians while still describing the same orientation. Returns false if rx/ry/rz are gimbal locked, true otherwise.