Calculates the distance between this point and the specified point.
Syntax: |
|---|
|
DlxPoint.Distance(x, y) DlxPoint.Distance(point) |
Parameters
| Parameter | Description |
|---|---|
| point | The coordinates of the point. |
| x | Specifies the x-coordinate of the point. |
| y | Specifies the y-coordinate of the point. |
Return Value
The value of the distance between the two points.
Example
Copy code
|
|
|---|---|
var center = new DlxPoint(0, 0);
var p = new DlxPoint(10, 10);
DlxApp.Printf("Distance=%.1f", center.Distance(p));
|
|
