Math Functions - DistanceBetweenPoints
Text:
API Call:Returns the distance between 2 points specified by p1 and p2 coordinates.
Declaration:
DistanceBetweenPoints(p1X, p1Y, p2X, p2Y: Double): Double;
Source Code
Delphi
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Result := DistanceBetweenPoints(10, 10, 100, 100); |