Vcl.Touch.Gestures.TGestureRecognizer.Match
Delphi
function Match(const Points, GesturePoints: array of TPoint;
const Options: TGestureOptions; GestureID: TGestureID;
Deviation, ErrorMargin: Integer): Single; override;
C++
virtual float __fastcall Match(const System::Types::TPoint *Points, const int Points_High, const System::Types::TPoint *GesturePoints, const int GesturePoints_High, const Vcl::Controls::TGestureOptions Options, Vcl::Controls::TGestureID GestureID, int Deviation, int ErrorMargin);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Touch.Gestures.pas Vcl.Touch.Gestures.hpp |
Vcl.Touch.Gestures | TGestureRecognizer |
Description
Matches a set of input points with a set of expected points.
Use Match to check whether a set of input points relatively matches a set of expected points. Match is used by the gesturing engines to verify whether the collected points make up a real known gesture. The following table describes the parameters expected by Match.
Parameter | Description |
---|---|
APoints |
An array of input points. These points are matched against the expected ones. |
GesturePoints |
An array of expected points. These points are matched against the input ones. |
Options |
A TGestureOptions variable specifying the matching rules. |
GestureID |
The ID of the expected gesture (if any). |
Deviation |
The maximum allowed deviation. |
ErrorMargin |
The maximum allowed error margin. |
Acceleration |
An output parameter specifying the computed acceleration of the gesturing device. |
The return value of Match is a floating-point number specifying how much the input and expected points are alike.