Example #1
0
 public             HandJoint this[FingerId finger, JointId joint] => fingers[(int)finger * 5 + (int)joint];
Example #2
0
 /// <summary>Returns the joint information of the indicated hand
 /// joint! This also includes fingertips as a 'joint'. This is the
 /// same as the [] operator. Note that for thumbs, there are only 4
 /// 'joints' in reality, so StereoKit has JointId.Root and
 /// JointId.KnuckleMajor as the same pose, so JointId.Tip is still
 /// the tip of the thumb!</summary>
 /// <param name="finger">Which finger are we getting from here, 0 is
 /// thumb, and pinky is 4!</param>
 /// <param name="joint">Which joint on the finger are we getting? 0
 /// is the root, which is all the way at the base of the palm, and 4
 /// is the tip, the very end of the finger.</param>
 /// <returns>Position, orientation, and radius of the finger joint.
 /// </returns>
 public HandJoint Get(FingerId finger, JointId joint) => fingers[(int)finger * 5 + (int)joint];