96 bool computeDeriv =
true) noexcept;
121 template <typename T2>
187 [[nodiscard]]
const T&
x()
const {
197 [[nodiscard]]
const T&
y()
const {
207 [[nodiscard]]
const T&
z()
const {
217 [[nodiscard]]
const T&
quatW()
const {
227 [[nodiscard]]
const T&
quatX()
const {
237 [[nodiscard]]
const T&
quatY()
const {
247 [[nodiscard]]
const T&
quatZ()
const {
259 [[nodiscard]]
const T&
scale()
const {
268 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
JointStateListT< float > JointStateList
JointStateT< float > JointState
Eigen::Matrix< T, 3, 3 > Matrix3
Eigen::Matrix< T, kParametersPerJoint, 1 > JointVectorT
Eigen::Quaternion< T > Quaternion
Unit quaternion representing a 3D rotation.
std::vector< JointStateT< T > > JointStateListT
Structure describing the state of all joints in a skeleton.
Represents the state of a joint with local and global transformations.
const T & localScale() const
Access the joint's local scale factor.
Vector3< float > getTranslationDerivative(size_t index) const
TransformT< float > localTransform
Vector3< float > getRotationDerivative(size_t index, const Vector3< float > &ref) const
const Quaternion< float > & localRotation() const
Vector3< T > & translation()
Access the joint's global position vector (mutable).
T & quatY()
Access the Y component of the global rotation quaternion (mutable).
T & x()
Access the X component of the global position (mutable).
const T & scale() const
Access the joint's global scale factor.
T & quatW()
Access the W component of the global rotation quaternion (mutable).
T & quatZ()
Access the Z component of the global rotation quaternion (mutable).
const T & z() const
Access the Z component of the global position.
const T & quatW() const
Access the W component of the global rotation quaternion.
Vector3< float > getScaleDerivative(const Vector3< float > &ref) const noexcept
Matrix3< float > rotationAxis
Matrix3< float > translationAxis
TransformT< float > transform
T & y()
Access the Y component of the global position (mutable).
T & localScale()
Access the joint's local scale factor (mutable).
const T & x() const
Access the X component of the global position.
T & quatX()
Access the X component of the global rotation quaternion (mutable).
const Vector3< T > & translation() const
Access the joint's global position vector.
const T & y() const
Access the Y component of the global position.
Vector3< T > & localTranslation()
Access the joint's local translation vector (mutable).
T & scale()
Access the joint's global scale factor (mutable).
const Quaternion< T > & rotation() const
Access the joint's global rotation quaternion.
const Vector3< T > & localTranslation() const
Access the joint's local translation vector.
const T & quatX() const
Access the X component of the global rotation quaternion.
void set(const JointT< T > &joint, const JointVectorT< T > ¶meters, const JointStateT< T > *parentState=nullptr, bool computeDeriv=true) noexcept
Updates joint state based on joint definition and parameters.
Quaternion< T > & localRotation()
Access the joint's local rotation quaternion (mutable).
T & z()
Access the Z component of the global position (mutable).
const T & quatY() const
Access the Y component of the global rotation quaternion.
const T & quatZ() const
Access the Z component of the global rotation quaternion.
Quaternion< T > & rotation()
Access the joint's global rotation quaternion (mutable).
A simplified version of a Maya joint with pre-rotation only (no post-rotation).