FingertipDistanceRelation Constructors

Definition

Overloads

FingertipDistanceRelation()

Creates a blank instance of FingertipDistanceRelation. In order to obtain a meaningful constraint, the values of Context, DistanceRelation and optionally OtherContext would have to be set manually.

FingertipDistanceRelation(Finger, RelativeDistance, Finger)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between finger and otherFinger.

FingertipDistanceRelation(Finger, RelativeDistance, IEnumerable<Finger>)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between finger and each of the otherFingers.

FingertipDistanceRelation(FingersContext, RelativeDistance, FingersContext)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between the fingers indicated by context and the fingers indicated by otherContext.

FingertipDistanceRelation(IEnumerable<Finger>, RelativeDistance, Finger)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between each of the fingers and otherFinger.

FingertipDistanceRelation(IEnumerable<Finger>, RelativeDistance, IEnumerable<Finger>)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between each of the fingers and each of the otherFingers.

FingertipDistanceRelation()

Creates a blank instance of FingertipDistanceRelation. In order to obtain a meaningful constraint, the values of Context, DistanceRelation and optionally OtherContext would have to be set manually.

public FingertipDistanceRelation ();

Applies to

FingertipDistanceRelation(Finger, RelativeDistance, Finger)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between finger and otherFinger.

public FingertipDistanceRelation (Microsoft.Gestures.Finger finger, Microsoft.Gestures.RelativeDistance distanceRelation, Microsoft.Gestures.Finger otherFinger);

Parameters

finger
Finger

The first Finger participating in this constraint.

distanceRelation
RelativeDistance

The relation that this FingertipDistanceRelation will impose between finger and otherFinger.

otherFinger
Finger

The second Finger participating in this constraint.

Applies to

FingertipDistanceRelation(Finger, RelativeDistance, IEnumerable<Finger>)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between finger and each of the otherFingers.

public FingertipDistanceRelation (Microsoft.Gestures.Finger finger, Microsoft.Gestures.RelativeDistance distanceRelation, System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> otherFingers);

Parameters

finger
Finger

A Finger participating in this constraint.

distanceRelation
RelativeDistance

The relation that the new FingertipDistanceRelation will impose between finger and otherFingers.

otherFingers
IEnumerable<Finger>

All fingers enumerated here will be required to comply to the distanceRelation relation with respect to finger.

Applies to

FingertipDistanceRelation(FingersContext, RelativeDistance, FingersContext)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between the fingers indicated by context and the fingers indicated by otherContext.

public FingertipDistanceRelation (Microsoft.Gestures.FingersContext context, Microsoft.Gestures.RelativeDistance distanceRelation, Microsoft.Gestures.FingersContext otherContext = null);

Parameters

context
FingersContext

The first FingersContext participating in this constraint.

distanceRelation
RelativeDistance

The relation that this FingertipDistanceRelation will impose between context and otherContext.

otherContext
FingersContext

The second FingersContext participating in this constraint. If this parameter is null, context will be used in its place and distanceRelation will be applied between the fingers of context and themselves (for more information on finger context types, refer to documentation).

Applies to

FingertipDistanceRelation(IEnumerable<Finger>, RelativeDistance, Finger)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between each of the fingers and otherFinger.

public FingertipDistanceRelation (System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> fingers, Microsoft.Gestures.RelativeDistance distanceRelation, Microsoft.Gestures.Finger otherFinger);

Parameters

fingers
IEnumerable<Finger>

All fingers enumerated here will be required to comply to the distanceRelation relation with respect to otherFinger.

distanceRelation
RelativeDistance

The relation that the new FingertipDistanceRelation will impose between fingers and otherFinger.

otherFinger
Finger

A Finger participating in this constraint.

Applies to

FingertipDistanceRelation(IEnumerable<Finger>, RelativeDistance, IEnumerable<Finger>)

Creates a new instance of a FingertipDistanceRelation constraint, imposing the distanceRelation relation between each of the fingers and each of the otherFingers.

public FingertipDistanceRelation (System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> fingers, Microsoft.Gestures.RelativeDistance distanceRelation, System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> otherFingers = null);

Parameters

fingers
IEnumerable<Finger>

The first set of fingers participating in the constraint.

distanceRelation
RelativeDistance

The relation that the new FingertipDistanceRelation will impose between fingers and otherFingers.

otherFingers
IEnumerable<Finger>

The second set of fingers participating in this constraint. If this parameter is null, distanceRelation relation will be imposed on all pairs of fingers from within fingers.

Applies to