Example #1
0
 public Edge(PlanePoint p1, PlanePoint p2)
 {
     if (p1.Dim != p2.Dim)
     {
         throw new ArgumentException("_points have different dimensions.");
     }
     if (p1 == p2)
     {
         throw new ArgumentException("Objects are equal.");
     }
     _points       = new[] { p1, p2 };
     AdjacentCells = new List <ICell>();
     Hyperplane    = Hyperplane.Create(_points);
 }