# Midpoint

Midpoint[{p1,p2}]

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

Midpoint[Line[{p1,p2}]]

gives the midpoint of a line.

# Details • Midpoint gives a list of coordinates if p1 and p2 are lists of coordinates.
• Midpoint gives a Point object if p1 and p2 are Point objects.
• The pi in Midpoint[{p1,p2}] can be lists of coordinates or explicit Point objects.
• Midpoint[Line[{p1,p2}]] is equivalent to Midpoint[{p1,p2}].
• Midpoint[{p1,p2}] gives the point that is halfway between the points p1 and p2.
• • Midpoint works in any number of dimensions.
• Midpoint can be used with symbolic points in GeometricScene.

# Examples

open allclose all

## Basic Examples(1)

Find the midpoint of two points:

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

## Scope(5)

Midpoint works in 2D:

Midpoint works in 3D:

Midpoint works in nD:

Midpoint works on Point:

Midpoint works on symbolic coordinates:

## Properties & Relations(4)

The midpoint is equidistant from the two points:

For coordinates, Midpoint gives the same result as Mean:

The PerpendicularBisector passes through the Midpoint:

TriangleCenter[{a,b,c},"Midpoint"] is equivalent to Midpoint[{a,c}]:

## Possible Issues(2)

Midpoint behaves differently on symbolic points than Mean:

Midpoint behaves differently on Point objects than Mean: