System.Types.TPoint.Distance

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Distance(const P2 : TPoint) : Double;

C++

double Distance(const TPoint& p2) const _ALWAYS_INLINE {

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
SystemTypes.h
System.Types TPoint

Description

Calculates the distance between the current TPoint object and the point specified by the P2 parameter.

The Distance function calculates the length of the segment between the current TPoint point and the point specified by the P2 parameter. It calculates the euclidean distance between two points.

See Also