added MTKMinimumDistanceBetweenVectorAndPoint