20 #ifndef ANTKEEPER_ANIMATION_EULER_IK_CONSTRAINT_HPP
21 #define ANTKEEPER_ANIMATION_EULER_IK_CONSTRAINT_HPP
42 m_rotation_sequence = sequence;
52 m_min_angles = angles;
62 m_max_angles = angles;
68 return m_rotation_sequence;
85 math::fvec3 m_min_angles{-math::pi<float>, -math::pi<float>, -math::pi<float>};
86 math::fvec3 m_max_angles{ math::pi<float>, math::pi<float>, math::pi<float>};
Euler angle IK constraint.
void set_max_angles(const math::fvec3 &angles) noexcept
Sets the maximum Euler angles of the constraint.
constexpr const math::fvec3 & get_min_angles() const noexcept
Returns the minimum angles of the first, second, and third Euler angles, in radians.
void set_min_angles(const math::fvec3 &angles) noexcept
Sets the minimum Euler angles of the constraint.
void solve(math::fquat &q) override
Solves the constraint.
void set_rotation_sequence(math::rotation_sequence sequence) noexcept
Sets the rotation sequence of the Euler angles of the constraint.
constexpr math::rotation_sequence get_rotation_sequence() const noexcept
Returns the rotation sequence of the Euler angles of the constraint.
constexpr const math::fvec3 & get_max_angles() const noexcept
Returns the maximum angles of the first, second, and third Euler angles, in radians.
Abstract base class for IK joint constraints.
rotation_sequence
Rotation sequences of proper Euler and Tait-Bryan angles.
@ xyz
x-y-z rotation sequence (Tait-Bryan angles).
Quaternion composed of a real scalar part and imaginary vector part.