26 public class Bone : IEquatable<Bone> {
75 return Enum.GetName(typeof(
BoneType), this.
Type) +
" bone";
172 TYPE_INTERMEDIATE = 2,
The Bone class represents a tracked bone.
bool Equals(Bone other)
Compare Bone object equality.
LeapQuaternion Rotation
The orientation of this Bone as a Quaternion.
Vector Direction
The normalized direction of the bone from base to tip.
float Width
The average width of the flesh around the bone.
BoneType
Enumerates the type of bones.
LeapTransform Basis
The orthonormal basis vectors for this Bone as a Matrix. The orientation of this Bone as a Quaternion...
BoneType Type
The type of this bone.
Vector Center
The midpoint of the bone.
override string ToString()
A string containing a brief, human readable description of the Bone object.
Vector PrevJoint
The base of the bone, closest to the wrist. In anatomical terms, this is the proximal end of the bone...
Bone()
Constructs a default invalid Bone object.
float Length
The estimated length of the bone.
Vector NextJoint
The end of the bone, closest to the finger tip. In anatomical terms, this is the distal end of the bo...
Bone(Vector prevJoint, Vector nextJoint, Vector center, Vector direction, float length, float width, Bone.BoneType type, LeapQuaternion rotation)
Constructs a new Bone object.
The LeapQuaternion struct represents a rotation in three-dimensional space.
The Vector struct represents a three-component mathematical vector or point such as a direction or po...