import math


def calculate_zoom(fov, height=1.0):
    """Calculates the zoom (distance) from the camera
    with the specified FOV and height of image.

    :param float fov: The FOV to use.
    :param float height: The height of the image at the
        desired distance.
    :rtype: A float representing the zoom (distance) from the camera for the
        desired height at the specified FOV.
    :raise ZeroDivisionError: Raised if the fov is
        0.0.
    """
    return float(height) / math.tan(fov / 2.0)