FMX.Utils.CheckPoint
Delphi
function CheckPoint(const APoint, ASource: TPointF; const ADeviation, ErrorMargin: Integer): Double;
C++
extern DELPHI_PACKAGE double __fastcall CheckPoint(const System::Types::TPointF &APoint, const System::Types::TPointF &ASource, const int ADeviation, const int ErrorMargin);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Utils.pas FMX.Utils.hpp |
FMX.Utils | FMX.Utils |
Description
Calculates the degree of matching between two points.
CheckPoint accepts the following parameters:
APoint
: The first point to check.ASource
: The source to check the first point against.ADeviation
: The provided standard deviation.ErrorMargin
: The provided error margin.
Returns a calculated match in range from 0 - 100, where 100 is a 100% match and 0 is a 0% match.
Some methods from the FMX.Gestures unit, such as TCustomGestureRecognizer.IsPointsGesture, use this method to determine if a received touch input is a valid gesture.