Returns the distance existing between two points.
1 math.point2d.distance
<math.point2d.distance>
<x1 /> +
<y1 /> +
<x2 /> +
<y2 /> +
</math.point2d.distance>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ex1 | integer | ||||
Ey1 | integer | ||||
Ex2 | integer | ||||
Ey2 | integer |
Returns | |
---|---|
Type | Description |
double |
Example
Distance between the points.
Copy
<xsql-script name='math_point2d_distance1'> <body> <println> <math.point2d.distance> <number>1</number> <number>2</number> <number>5</number> <number>6</number> </math.point2d.distance> </println> </body> </xsql-script>