Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagedelphi
themeRDark
titleScripting
linenumberstrue
collapsetrue
Result := DistanceBetweenPoints(10, 10, 100, 100);