//------------------------------------------------------------------------------ internal bool PointIsVertex(ClipperIntPoint pt, ClipperOutPt pp) { ClipperOutPt pp2 = pp; do { if (pp2.Pt == pt) { return(true); } pp2 = pp2.Next; }while (pp2 != pp); return(false); }
//------------------------------------------------------------------------------ internal bool PointOnPolygon(ClipperIntPoint pt, ClipperOutPt pp, bool UseFullRange) { ClipperOutPt pp2 = pp; while (true) { if (PointOnLineSegment(pt, pp2.Pt, pp2.Next.Pt, UseFullRange)) { return(true); } pp2 = pp2.Next; if (pp2 == pp) { break; } } return(false); }