import math


def compute_angle(p1, p2):
    """Compute angle between two points.
    Args:
        p1 (gennav.utils.geometry.Point): One of the two points
        p2 (gennav.utils.geometry.Point): One of the two points
    Returns:
        float: The computed angle in radians
    """
    return math.atan2((p2.y - p1.y), (p2.x - p1.x))