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(System::Types::TPoint const *Points, const int Points_High, System::Types::TPoint const *GesturePoints, const int GesturePoints_High, const Vcl::Controls::TGestureOptions Options, Vcl::Controls::TGestureID GestureID, int Deviation, int ErrorMargin);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | Vcl.Touch.Gestures.pas Vcl.Touch.Gestures.hpp |
Vcl.Touch.Gestures | TGestureRecognizer |
説明
入力ポイントのセットを必要なポイントのセットと一致させます。
Match メソッドを使用すると、入力ポイントのセットが相対的に必要なポイントのセットと一致するかどうかを調べることができます。 Match メソッドは、収集したポイントが既知のジェスチャを構成するかどうかを調べるためにジェスチャ エンジンによって使用されます。 Match メソッドが取り得るパラメータを以下の表に記述します。
| パラメータ | 説明 |
|---|---|
|
APoints |
入力ポイントの配列。これらのポイントは、必要なポイントと一致します。 |
|
GesturePoints |
必要なポイントの配列。これらのポイントは、入力ポイントと一致します。 |
|
Options |
一致するルールを示す TGestureOptions 変数。 |
|
GestureID |
期待されるジェスチャの ID (もしあれば)。 |
|
Deviation |
許容偏差の最大値。 |
|
ErrorMargin |
許容誤差の最大値。 |
|
Acceleration |
ジェスチャ デバイスの計算を加速するアクセラレータを示す出力パラメータ。 |
Match の戻り値は、入力および必要なポイントがどれだけ一致しているかを示す浮動小数点数です。