'The midpoint between self and point p.
Parameters
p : Point
Returns
midpoint : Point
See Also
sympy.geometry.line.Segment.midpoint
Examples
>>> from sympy.geometry import Point
>>> p1, p2 = Point(1, 1), Point(13, 5)
>>> p1.midpoint(p2)
Point2D(7, 3)'

def midpoint(self, p):

    (s, p) = Point._normalize_dimension(self, Point(p))
    return Point([simplify(((a + b) * S.Half)) for (a, b) in zip(s, p)])
