예제 #1
0
        //
        // Does the segment or arc stand on the segment or arg? That is, the intersection point lies on the end of this or that?
        //
        public bool StandsOnNotEndpoint(Connection that)
        {
            if (StandsOnEndpoint(that))
            {
                return(false);
            }

            Point pt1 = null;
            Point pt2 = null;

            this.FindIntersection(that, out pt1, out pt2);

            if (pt2 != null)
            {
                return(false);
            }

            if (this.HasPoint(pt1) && that.PointLiesOn(pt1))
            {
                return(true);
            }
            if (that.HasPoint(pt1) && this.PointLiesOn(pt1))
            {
                return(true);
            }

            return(false);
        }
예제 #2
0
        public bool StandsOnEndpoint(Connection that)
        {
            Point pt1 = null;
            Point pt2 = null;

            this.FindIntersection(that, out pt1, out pt2);

            if (pt2 != null)
            {
                return(false);
            }

            return(this.HasPoint(pt1) && that.HasPoint(pt1));
        }
예제 #3
0
        //
        // Does the segment or arc stand on the segment or arg? That is, the intersection point lies on the end of this or that?
        //
        public bool StandsOnNotEndpoint(Connection that)
        {
            if (StandsOnEndpoint(that)) return false;

            Point pt1 = null;
            Point pt2 = null;

            this.FindIntersection(that, out pt1, out pt2);

            if (pt2 != null) return false;

            if (this.HasPoint(pt1) && that.PointLiesOn(pt1)) return true;
            if (that.HasPoint(pt1) && this.PointLiesOn(pt1)) return true;

            return false;
        }
예제 #4
0
        public bool StandsOnEndpoint(Connection that)
        {
            Point pt1 = null;
            Point pt2 = null;

            this.FindIntersection(that, out pt1, out pt2);

            if (pt2 != null) return false;

            return this.HasPoint(pt1) && that.HasPoint(pt1);
        }