Calculates the coordinates of the midpoint between this point and the specified point.
Syntax: |
---|
DlxPoint.MidPoint(x, y) DlxPoint.MidPoint(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
A DlxPoint object with the coordinates of the midpoint.
Example
Copy code | |
---|---|
var center = new DlxPoint(0, 0);
var p = center.MidPoint(new DlxPoint(50, 50));
DlxApp.Printf("x=%.1f y=%.1f", p.x, p.y);
|