heading function

Heading between spatial points.