import math


def get_angle(p1, p2):
    """calc angle between the line p1-p2 and the x-axis
    input: points as tuples
    result: angle in radians
    """
    dx = p2[0] - p1[0]
    dy = p2[1] - p1[1]
    return math.atan2(dy, dx)