Ejemplo n.º 1
0
        // =============================== 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);
        }
Ejemplo n.º 2
0
 public override string ToString() => LeftSite.ToString() + RightSite.ToString();
Ejemplo n.º 3
0
 public float SitesDistance()
 {
     return(Utilities.Distance(LeftSite.Coord(), RightSite.Coord()));
 }
Ejemplo n.º 4
0
 public LineSegment DelaunayLine()
 {
     // draw a line connecting the input Sites for which the edge is a bisector:
     return(new LineSegment(LeftSite.Coord(), RightSite.Coord()));
 }