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