Is there a grass function that will calculate the distance between two points on a vector layer? How about between a point on a vector layer and a cell on a raster layer?