line approximation using 2 points, comparison of gradients instead of scalarproducts