GestureResult

public class GestureResult

Class containing detection result for one hand.

Fields

public GestureType gesture

Returns pre-defined gesture type.

public Vector3 point

Returns position of the hand. This field is guaranteed to be not null.

For 2D point mode, z is always 0.25.

For skeleton mode, this is position of palm.

+x is right, +y is up, +z is front. Unit is meter.

public float[] points

Returns position of the hand. The meaning of this field is different based on actual mode. Index (3*i, 3*i+1, 3*i+2) composes a (x, y, z) point. There is total 21 points.

NOTE: Don’t modify the array.

For 2D/3D point mode, only first 3 elements are useful, which is same as point.

For skeleton mode, keypoints of the hand, values (0, 0, 0) indicates invalid point.

+x is right, +y is up, +z is front. Unit is meter.

public boolean valid

Returns if this hand is detected/valid.