Antkeeper  0.0.1
Public Member Functions | List of all members
euler_ik_constraint Class Reference

Euler angle IK constraint. More...

#include <euler-ik-constraint.hpp>

Inheritance diagram for euler_ik_constraint:
ik_constraint

Public Member Functions

void solve (math::fquat &q) override
 Solves the constraint. More...
 
void set_rotation_sequence (math::rotation_sequence sequence) noexcept
 Sets the rotation sequence of the Euler angles of the constraint. More...
 
void set_min_angles (const math::fvec3 &angles) noexcept
 Sets the minimum Euler angles of the constraint. More...
 
void set_max_angles (const math::fvec3 &angles) noexcept
 Sets the maximum Euler angles of the constraint. More...
 
constexpr math::rotation_sequence get_rotation_sequence () const noexcept
 Returns the rotation sequence of the Euler angles of the constraint. More...
 
constexpr const math::fvec3get_min_angles () const noexcept
 Returns the minimum angles of the first, second, and third Euler angles, in radians. More...
 
constexpr const math::fvec3get_max_angles () const noexcept
 Returns the maximum angles of the first, second, and third Euler angles, in radians. More...
 

Detailed Description

Euler angle IK constraint.

Definition at line 30 of file euler-ik-constraint.hpp.

Member Function Documentation

◆ get_max_angles()

constexpr const math::fvec3& euler_ik_constraint::get_max_angles ( ) const
inlineconstexprnoexcept

Returns the maximum angles of the first, second, and third Euler angles, in radians.

Definition at line 78 of file euler-ik-constraint.hpp.

◆ get_min_angles()

constexpr const math::fvec3& euler_ik_constraint::get_min_angles ( ) const
inlineconstexprnoexcept

Returns the minimum angles of the first, second, and third Euler angles, in radians.

Definition at line 72 of file euler-ik-constraint.hpp.

◆ get_rotation_sequence()

constexpr math::rotation_sequence euler_ik_constraint::get_rotation_sequence ( ) const
inlineconstexprnoexcept

Returns the rotation sequence of the Euler angles of the constraint.

Definition at line 66 of file euler-ik-constraint.hpp.

◆ set_max_angles()

void euler_ik_constraint::set_max_angles ( const math::fvec3 angles)
inlinenoexcept

Sets the maximum Euler angles of the constraint.

Parameters
anglesMaximum angles of the first, second, and third Euler angles, in radians.

Definition at line 60 of file euler-ik-constraint.hpp.

◆ set_min_angles()

void euler_ik_constraint::set_min_angles ( const math::fvec3 angles)
inlinenoexcept

Sets the minimum Euler angles of the constraint.

Parameters
anglesMinimum angles of the first, second, and third Euler angles, in radians.

Definition at line 50 of file euler-ik-constraint.hpp.

◆ set_rotation_sequence()

void euler_ik_constraint::set_rotation_sequence ( math::rotation_sequence  sequence)
inlinenoexcept

Sets the rotation sequence of the Euler angles of the constraint.

Parameters
sequenceEuler angle rotation sequence.

Definition at line 40 of file euler-ik-constraint.hpp.

◆ solve()

void euler_ik_constraint::solve ( math::fquat q)
overridevirtual

Solves the constraint.

Parameters
[in,out]qUnit quaternion representing the rotation of a joint.

Implements ik_constraint.

Definition at line 24 of file euler-ik-constraint.cpp.


The documentation for this class was generated from the following files: