public Vector2d NearestPoint(Vector2d pt) { int iSeg; double segT; SquaredDistance(pt, out iSeg, out segT); return(Polygon.PointAt(iSeg, segT)); }
public Vector2d PointAt(int iSegment, double fSegT, int iHoleIndex = -1) { if (iHoleIndex == -1) { return(outer.PointAt(iSegment, fSegT)); } return(holes[iHoleIndex].PointAt(iSegment, fSegT)); }