def getMidpoint(p1, p2):
    """
    p1 is a tuple of the first point
    p2 is a tuple of the second point
    returns the midpoint, in tuple form, of p1 and p2
    """
    return (((p1[0] + p2[0]) / 2.), ((p1[1] + p2[1]) / 2.))