def compute_parameter(parameter, direction, extent):
    """
    Computes gamma_0 + theta * direction.
    """
    return (parameter[0] + extent*direction[0],
            parameter[1] + extent*direction[1])