Midpoint

Midpoint[{p1,p2}]

gives the midpoint of the line segment connecting the points p1 and p2.

Midpoint[line]

gives the midpoint of a line.

Details

  • Midpoint works in any number of dimensions.
  • In Midpoint[{p1,p2}] the pi can be lists of coordinates or explicit Point objects. If the pi are lists of coordinates, Midpoint gives a list of coordinates as a result. If the pi are Point objects, it gives a Point object.
  • Midpoint[Line[{p1,p2,}]] gives the point on the line that is the same arc distance from each end of the line.
  • Midpoint can be used with symbolic points in GeometricScene.

Examples

open all close all

Basic Examples  (1)

Find the midpoint of two points:

In[1]:=
Click for copyable input
Out[1]=

With explicit Point objects, the output is also a Point object:

In[2]:=
Click for copyable input
Out[2]=

Scope  (5)

Properties & Relations  (4)

Possible Issues  (2)

Introduced in 2019
(12.0)