matchedPointDirection function

Calculate matched point directions