The Arm class represents the forearm. More...
Inherits Interface.
Public Member Functions | |
Arm () | |
Constructs an invalid Arm object. More... | |
Matrix | basis () |
The orthonormal basis vectors for the Arm bone as a Matrix. More... | |
Vector | center () |
The center of the forearm. More... | |
Vector | direction () |
The normalized direction in which the arm is pointing (from elbow to wrist). More... | |
Vector | elbowPosition () |
The position of the elbow. More... | |
boolean | equals (Arm arg0) |
Compare Arm object equality. More... | |
boolean | isValid () |
Reports whether this is a valid Arm object. More... | |
String | toString () |
A string containing a brief, human readable description of the Arm object. More... | |
float | width () |
The average width of the arm. More... | |
Vector | wristPosition () |
The position of the wrist. More... | |
Static Public Member Functions | |
static Arm | invalid () |
Returns an invalid Arm object. More... | |
The Arm class represents the forearm.
Arm | ( | ) |
Matrix basis | ( | ) |
The orthonormal basis vectors for the Arm bone as a Matrix.
Basis vectors specify the orientation of a bone.
xBasis Perpendicular to the longitudinal axis of the bone; exits the arm laterally through the sides of the wrist.
yBasis or up vector Perpendicular to the longitudinal axis of the bone; exits the top and bottom of the arm. More positive in the upward direction.
zBasis Aligned with the longitudinal axis of the arm bone. More positive toward the wrist.
The bases provided for the right arm use the right-hand rule; those for the left arm use the left-hand rule. Thus, the positive direction of the x-basis is to the right for the right arm and to the left for the left arm. You can change from right-hand to left-hand rule by multiplying the z basis vector by -1.
Note that converting the basis vectors directly into a quaternion representation is not mathematically valid. If you use quaternions, create them from the derived rotation matrix not directly from the bases.
Vector center | ( | ) |
The center of the forearm.
This location represents the midpoint of the arm between the wrist position and the elbow position.
Vector direction | ( | ) |
The normalized direction in which the arm is pointing (from elbow to wrist).
Vector elbowPosition | ( | ) |
The position of the elbow.
If not in view, the elbow position is estimated based on typical human anatomical proportions.
boolean equals | ( | Arm | arg0 | ) |
|
static |
boolean isValid | ( | ) |
String toString | ( | ) |
float width | ( | ) |
The average width of the arm.
Vector wristPosition | ( | ) |
The position of the wrist.
Note that the wrist position is not collocated with the end of any bone in the hand. There is a gap of a few centimeters since the carpal bones are not included in the skeleton model.