def line_parameter_form_from_points(a):
    """
    Parameters of line in parameter form: x = v + t * u, determined from points in a.
    Only the first and last element of a are used.
    """
    # u = a[0] - a[-1]
    u = a[-1] - a[0]
    v = a[0]
    return u, v