FingerJoint

Represents a finger joint.

public class FingerJoint

Constructors

Name
Description

FingerJoint()

Creates a new FingerJoint object.

Creates a new FingerJoint object by copying the data from the specified finger joint.

Creates a new FingerJoint object with the specified type, 2D position,3D position and 3D orientation of the finger joint.

Properties

Name
Type
Description

Type

The type of the finger joint.

Position2D

The 2D position of the finger joint in pixels.

Position3D

The 3D position of the finger joint in meters.

Orientation

The 3D orientation of the joint.

Methods

Name
Return Type
Description

ToString()

string

Converts the value of this instance to a string.

bool

Determines whether the specified Finger object is equal to the current Finger object.

GetHashCode()

int

Returns a hash code for the current Finger object.

Example

The example shows how to create a finger joint with the FingerJoint class.

Create a finger joint with the specified 2D position and 3D position

FingerJoint indexTip = new FingerJoint
(
    FingerJointType.IndexTip,
    new Vector2(3, 3),
    new Vector3(0.3f, 0.3f, 0.3f),
    new Quaternion()
);

Create a finger joint with the specified finger joint

FingerJoint indexTipNew = new FingerJoint(indexTip);

Create an empty finger joint

FingerJoint emptyJoint = new FingerJoint();

Last updated