Added ClosestPointTo for entity types.