import math


def z_axis_angle(x1: float, y1: float, x2: float, y2: float) -> float:
    """Calulates that angle in degrees [0, 360] that the slope of the provided points
    form with rotation about the z axis."""

    angle = math.degrees(math.atan2(y2 - y1, x2 - x1))  

    # Wrap angle to bound it between 0 and 360.
    if angle < 0:
        angle += 360

    if angle > 360:
        angle -= 360

    return angle