/Engine/Source/Runtime/GeometryCore/Public/Curve/GeneralPolygon2.h
This should be more efficient when there are Holes...
double DistanceSquared ( [TVector2](API\Runtime\Core\Math\TVector2)< T > p, int & iHoleIndex, int & iNearSeg, double & fNearSegT ) const