Point.DistanceTo

From Xojo Documentation

Method

Point.Distance(Other As Point) As Double

New in 2019r2

Supported for all project types and targets.

Calculates the distance between the point and the passed point.

Sample Code

Var thePoint As Point = DraggingRect.Origin
Var d As Double = thePoint.DistanceTo(RectTwo.Origin)