|
Utiltiies for converting transforms to and from component (translate, rotate, scale) form. More...
Functions | |
template<typename Matrix4 > | |
USDSKEL_API bool | UsdSkelDecomposeTransform (const Matrix4 &xform, GfVec3f *translate, GfRotation *rotate, GfVec3h *scale) |
Decompose a transform into translate/rotate/scale components. | |
template<typename Matrix4 > | |
USDSKEL_API bool | UsdSkelDecomposeTransform (const Matrix4 &xform, GfVec3f *translate, GfQuatf *rotate, GfVec3h *scale) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
USDSKEL_API bool | UsdSkelDecomposeTransforms (TfSpan< const GfMatrix4d > xforms, TfSpan< GfVec3f > translations, TfSpan< GfQuatf > rotations, TfSpan< GfVec3h > scales) |
Decompose an array of transforms into translate/rotate/scale components. | |
USDSKEL_API bool | UsdSkelDecomposeTransforms (TfSpan< const GfMatrix4f > xforms, TfSpan< GfVec3f > translations, TfSpan< GfQuatf > rotations, TfSpan< GfVec3h > scales) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
USDSKEL_API bool | UsdSkelDecomposeTransforms (const VtMatrix4dArray &xforms, VtVec3fArray *translations, VtQuatfArray *rotations, VtVec3hArray *scales) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
USDSKEL_API bool | UsdSkelDecomposeTransforms (const GfMatrix4d *xforms, GfVec3f *translations, GfQuatf *rotations, GfVec3h *scales, size_t count) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<typename Matrix4 > | |
USDSKEL_API void | UsdSkelMakeTransform (const GfVec3f &translate, const GfMatrix3f &rotate, const GfVec3h &scale, Matrix4 *xform) |
Create a transform from translate/rotate/scale components. | |
template<typename Matrix4 > | |
USDSKEL_API void | UsdSkelMakeTransform (const GfVec3f &translate, const GfQuatf &rotate, const GfVec3h &scale, Matrix4 *xform) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
USDSKEL_API bool | UsdSkelMakeTransforms (TfSpan< const GfVec3f > translations, TfSpan< const GfQuatf > rotations, TfSpan< const GfVec3h > scales, TfSpan< GfMatrix4d > xforms) |
Create transforms from arrays of components. | |
USDSKEL_API bool | UsdSkelMakeTransforms (TfSpan< const GfVec3f > translations, TfSpan< const GfQuatf > rotations, TfSpan< const GfVec3h > scales, TfSpan< GfMatrix4f > xforms) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
USDSKEL_API bool | UsdSkelMakeTransforms (const VtVec3fArray &translations, const VtQuatfArray &rotations, const VtVec3hArray &scales, VtMatrix4dArray *xforms) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
USDSKEL_API bool | UsdSkelMakeTransforms (const GfVec3f *translations, const GfQuatf *rotations, const GfVec3h *scales, GfMatrix4d *xforms, size_t count) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Utiltiies for converting transforms to and from component (translate, rotate, scale) form.
USDSKEL_API bool UsdSkelDecomposeTransform | ( | const Matrix4 & | xform, |
GfVec3f * | translate, | ||
GfQuatf * | rotate, | ||
GfVec3h * | scale | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API bool UsdSkelDecomposeTransform | ( | const Matrix4 & | xform, |
GfVec3f * | translate, | ||
GfRotation * | rotate, | ||
GfVec3h * | scale | ||
) |
Decompose a transform into translate/rotate/scale components.
The transform order for decomposition is scale, rotate, translate.
USDSKEL_API bool UsdSkelDecomposeTransforms | ( | const GfMatrix4d * | xforms, |
GfVec3f * | translations, | ||
GfQuatf * | rotations, | ||
GfVec3h * | scales, | ||
size_t | count | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API bool UsdSkelDecomposeTransforms | ( | const VtMatrix4dArray & | xforms, |
VtVec3fArray * | translations, | ||
VtQuatfArray * | rotations, | ||
VtVec3hArray * | scales | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API bool UsdSkelDecomposeTransforms | ( | TfSpan< const GfMatrix4d > | xforms, |
TfSpan< GfVec3f > | translations, | ||
TfSpan< GfQuatf > | rotations, | ||
TfSpan< GfVec3h > | scales | ||
) |
Decompose an array of transforms into translate/rotate/scale components.
All spans must be the same size.
USDSKEL_API bool UsdSkelDecomposeTransforms | ( | TfSpan< const GfMatrix4f > | xforms, |
TfSpan< GfVec3f > | translations, | ||
TfSpan< GfQuatf > | rotations, | ||
TfSpan< GfVec3h > | scales | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API void UsdSkelMakeTransform | ( | const GfVec3f & | translate, |
const GfMatrix3f & | rotate, | ||
const GfVec3h & | scale, | ||
Matrix4 * | xform | ||
) |
Create a transform from translate/rotate/scale components.
This performs the inverse of UsdSkelDecomposeTransform.
USDSKEL_API void UsdSkelMakeTransform | ( | const GfVec3f & | translate, |
const GfQuatf & | rotate, | ||
const GfVec3h & | scale, | ||
Matrix4 * | xform | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API bool UsdSkelMakeTransforms | ( | const GfVec3f * | translations, |
const GfQuatf * | rotations, | ||
const GfVec3h * | scales, | ||
GfMatrix4d * | xforms, | ||
size_t | count | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API bool UsdSkelMakeTransforms | ( | const VtVec3fArray & | translations, |
const VtQuatfArray & | rotations, | ||
const VtVec3hArray & | scales, | ||
VtMatrix4dArray * | xforms | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
USDSKEL_API bool UsdSkelMakeTransforms | ( | TfSpan< const GfVec3f > | translations, |
TfSpan< const GfQuatf > | rotations, | ||
TfSpan< const GfVec3h > | scales, | ||
TfSpan< GfMatrix4d > | xforms | ||
) |
Create transforms from arrays of components.
All spans must be the same size.
USDSKEL_API bool UsdSkelMakeTransforms | ( | TfSpan< const GfVec3f > | translations, |
TfSpan< const GfQuatf > | rotations, | ||
TfSpan< const GfVec3h > | scales, | ||
TfSpan< GfMatrix4f > | xforms | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.