![]() |
3Gear Systems SDK
v0.9.34
|
Structure holding the position, rotational frame and other information relevant to the state of the hand. More...
#include <HandTrackingMessage.h>
Public Member Functions | |
HandState (const Vector3f &position, const Quaternionf &rotation, const int clickCount) | |
Constructs a hand state with the given position and rotation. | |
HandState () | |
Constructs a hand state with position = (0,0,0) and the identity rotation. | |
const Vector3f & | getPosition () const |
Position estimate for the hand. More... | |
const Quaternionf & | getRotation () const |
const int | getClickCount () const |
Structure holding the position, rotational frame and other information relevant to the state of the hand.
This is the overall position and rotation estimate for the hand. It is used to pass around location information for clicks. Users needing more detailed information about individual finger joints should look at the PoseMessage.
|
inline |
Returns 1 if the hand is single-clicked, 2 if the hand is double-clicked, and 0 if neither (no clicks active).
|
inline |
Position estimate for the hand.
This is defined by the rigid frame given by the back of the hand, so it will be considerably more stable than the individual finger position estimates given by the PoseMessage.
|
inline |
Overall orientation estimate for the hand.
This is defined by the rigid frame given by the back of the hand, so it will be considerably more stable than the individual finger position estimates given by the PoseMessage.