示例#1
0
 internal GraphEdge(Point2D point2D1, Point2D point2D2, GraphEdge nextGraphEdge)
 {
     if (point2D1 == null)
     {
         throw new ArgumentNullException(nameof(point2D1));
     }
     if (point2D2 == null)
     {
         throw new ArgumentNullException(nameof(point2D2));
     }
     Point2D1 = point2D1;
     Point2D2 = point2D2;
     Next     = nextGraphEdge;
 }
示例#2
0
        private void PushGraphEdge(double x1, double y1, double x2, double y2)
        {
            var newEdge = new GraphEdge(new Point2D(x1, y1), new Point2D(x2, y2), _allEdges);

            _allEdges = newEdge;
        }
示例#3
0
 internal VoronoiOutput(GraphEdge results, Point2D[] sites)
 {
     AllEdges = results;
     Sites    = sites;
 }