import math


def calcVector(p1,p2):
    """
    calculate a line vector in polar form from two points. The return
    is the length of the line and the slope in degrees
    """
    dx = p2[0]-p1[0]
    dy = p2[1]-p1[1]
    mag = math.sqrt(dx * dx + dy * dy)
    theta = math.atan2(dy,dx) * 180.0 / math.pi + 90.0
    return mag,theta