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