/// <summary> /// If match the recognizer will only concern itself with the given letters /// </summary> public GestureRecognizerResponse StartRecognizer(IList <Stroke> strokes, float sensitivity, params Letter[] lettersToMatch) { var normalizedStrokes = normalizer.NormalizeGesture(strokes); if (normalizer.IsNormalizationInvalid(normalizedStrokes)) { return(GestureRecognizerResponse.Fail(normalizedStrokes)); } var matchedTemplate = templateMatcher.MatchGesture(normalizedStrokes, sensitivity, lettersToMatch); if (matchedTemplate == null) { return(GestureRecognizerResponse.Fail(normalizedStrokes)); } return(new GestureRecognizerResponse(matchedTemplate.Template, normalizedStrokes, matchedTemplate.Score)); }