FMX.Gestures.TCustomGestureRecognizer.Match
Delphi
function Match(const Points, GesturePoints: array of TPointF; const Options: TGestureOptions; GestureID: TGestureID; Deviation, ErrorMargin: Integer): Single; virtual; abstract;
C++
virtual float __fastcall Match(const System::Types::TPointF *Points, const int Points_High, const System::Types::TPointF *GesturePoints, const int GesturePoints_High, const Fmx::Types::TGestureOptions Options, Fmx::Types::TGestureID GestureID, int Deviation, int ErrorMargin) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TCustomGestureRecognizer |
Description
Matches a set of input points with a set of expected points.
Override Match in descendant classes to implement checking 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 |
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.