def get_angle_of_pixel(pixel, resolution, angle_of_view):
    """
    Calculates a pixels's angle from the origin.

    e.g. A pixel at position 0 would be at angle 0, and a pixel at position=resolution
    would be at angle=angle_of_view.
    """
    return angle_of_view/float(resolution)*pixel