// =============================== Overrides public override bool Equals(object obj) { if (typeof(Boundary).IsInstanceOfType(obj)) { Boundary b = obj as Boundary; return(LeftSite.Equals(b.LeftSite) && RightSite.Equals(b.RightSite)); } return(false); }
public override string ToString() => LeftSite.ToString() + RightSite.ToString();
public float SitesDistance() { return(Utilities.Distance(LeftSite.Coord(), RightSite.Coord())); }
public LineSegment DelaunayLine() { // draw a line connecting the input Sites for which the edge is a bisector: return(new LineSegment(LeftSite.Coord(), RightSite.Coord())); }