FingertipDistanceRelation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
FingertipDistanceRelation(Finger, RelativeDistance, IEnumerable<Finger>) |
Creates a new instance of a FingertipDistanceRelation constraint, imposing the |
FingertipDistanceRelation(FingersContext, RelativeDistance, FingersContext) |
Creates a new instance of a FingertipDistanceRelation constraint, imposing the |
FingertipDistanceRelation(IEnumerable<Finger>, RelativeDistance, Finger) |
Creates a new instance of a FingertipDistanceRelation constraint, imposing the |
FingertipDistanceRelation(IEnumerable<Finger>, RelativeDistance, IEnumerable<Finger>) |
Creates a new instance of a FingertipDistanceRelation constraint, imposing the |
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
- distanceRelation
- RelativeDistance
The relation that this FingertipDistanceRelation will impose between finger
and otherFinger
.
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
- 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
.
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
.