Finding the midpoint of a segment in space: midpoint

### 14.4.5 Finding the midpoint of a segment in space: midpoint

See Section 13.6.9 for midpoints in the plane.

The midpoint command finds the midpoint of two points.

- midpoint takes two arguments:
  P, Q, two points (which can also be given as a list).
- midpoint(P,Q) draws and returns the midpoint of the segment determined by these points.

#### Example

Input:

MP:= midpoint(point(1,4,0),point(1,-2,0)):;
coordinates(MP)

Output:

⎡ ⎣ | 1,1,0 | ⎤ ⎦