Calculates the coordinates of the midpoint.

syntaxSyntax:
DlxSegment.MidPoint()

Return Value

A DlxPoint object with the coordinates of the midpoint.

Example

  Copy codeCopy code
var seg = new DlxSegment(10, 20, 50, 60);
var p = seg.MidPoint();
DlxApp.Printf("x=%.1f y=%.1f", p.x, p.y);

See also