method
Compute the distance in the v direction between the element and the points defined in grid by (x, y) or (x, y, z).
coordinates of the points
direction of interest
distance max
return the normal vector if True (default False)
array of distances if normal is False and the coordinates of the normal vectors if normal is True