FMX.InertialMovement.TPointD.Distance
Delphi
function Distance(const P2: TPointD): Double;
C++
double __fastcall Distance(const TPointD &P2);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.InertialMovement.pas FMX.InertialMovement.hpp |
FMX.InertialMovement | TPointD |
Description
Calculates the distance between the current TPointD object and the point specified by the P2 parameter.
The Distance function calculates the length of the segment between the current TPointD point and the point specified by the P2 parameter. It calculates the euclidean distance between these two points in logical units.