Xojo.Core.Point.DistanceTo
From Xojo Documentation
Method
Xojo.Core.Point.DistanceTo(Other As Xojo.Core.Point) As Double
Supported for all project types and targets.
Supported for all project types and targets.
Returns a double that measures the distance between the two points.
Sample Code
Calculate the distance (length of the line) between two points: