Distance

From the Scripting Manual
function Distance(Point1X, Point1Y, Point2X, Point2Y: single): single; Parameter Info: Point1X (Single): X coordinate of Point one. Point1Y (Single): Y coordinate of Point one. Point2X (Single): X coordinate of Point two. Point2Y (Single): Y coordinate of Point two. Description: This function will return the distance between Point One and Point Two.