GetDistance (Kernel)

GetDistance(x1 y1 x2 y2 [picAngle])

Calculates the distance between the two points and returns it.

Parameters:
  • x1 (number) – The x coordinate of the first point.
  • y1 (number) – The y coordinate of the first point.
  • x2 (number) – The x coordinate of the second point.
  • y2 (number) – The y coordinate of the second point.
  • picAngle (number) – Optional pic angle.
Returns:

The distance between the two points.

Example:

(= aDistance (GetDistance 10 20 100 80))