Previous Up Next

13.4.5  Find the midpoint of a segment in space: midpoint

See section 12.6.9 for midpoints in the plane.

The midpoint command takes two points (or a list of two points) as arguments and returns and returns and draws the midpoint of the segment determined by these points.
Input:

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

then:

coordinates(MP)

Output:

[1,1,0]

Previous Up Next