示例#1
0
        //------------------------------------------------------------------------------

        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);
        }
示例#2
0
        //------------------------------------------------------------------------------

        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);
        }