System.Types.TPointF.Distance
Delphi
function Distance(const APoint: TPointF): Single;
C++
double Distance(const TPointF& p2) const _ALWAYS_INLINE {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas SystemTypes.h |
System.Types | TPointF |
Description
Calculates the distance between the current TPointF object and the point specified by the APoint parameter.
The Distance function calculates the length of the segment between the current TPointF point and the point specified by the APoint parameter. It calculates the euclidean distance between two points.