Realbasic.Point.Distance

From Xojo Documentation

Method

Realbasic.Point.Distance(Other As Realbasic.Point) As Double

New in 2011r2

Supported for all project types and targets.

Calculates the distance between the point and the passed point.

Sample Code

Dim thePoint As Realbasic.Point = DraggingRect.Origin
Dim d As Double = thePoint.Distance(RectTwo.Origin)