import math


def determineAngle(p1, p2):
    """
    Determines the angle in degrees between two points

    Parameters
    ----------
    p1 : tuple
        A tuple containing the (x,y) coordinates of the first point
    p2 : tuple
        A tuple containing the (x,y) coordinates of the second point

    Returns
    -------
    degree : float
        The angle between two points
        Returns values between -180 and 180.
        Positive values reflect the top half of a circle.
        Negative values reflect the bottom half of a circle.

    Examples
    --------
    >>> degree = determineAngle((0,0),(10,10))
    >>> degree
    45.0

    >>> degree = determineAngle((0,0),(-10,-10))
    >>> degree
    -135.0

    """
    normx = (p2[0] - p1[0])
    normy = (p2[1] - p1[1])
    narcdeg = math.atan2(normy, normx)
    degree = ((narcdeg * 180) / math.pi)
    return degree