HDK
|
#include "UT_API.h"
#include "UT_Quaternion.h"
#include "UT_XformOrder.h"
#include <SYS/SYS_Types.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) |
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.