def fov_for_height_and_distance(height, distance):
    """Calculate the FOV needed to get a given frustum height at a
    given distance.
    """
    vfov_deg = np.degrees(2.0 * np.arctan(height * 0.5 / distance))
    return vfov_deg
Calculate the FOV needed to get a given frustum height at a
    given distance.