Example #1
0
 /// <summary>
 /// Determines the bounding box of the entire graph.
 /// </summary>
 /// <exception cref="InvalidOperationException">Impossible to determine the bounding box for this graph.</exception>
 /// <param name="MinPoint">The point of minimal coordinates for the box.</param>
 /// <param name="MaxPoint">The point of maximal coordinates for the box.</param>
 public void BoundingBox(out double[] MinPoint, out double[] MaxPoint)
 {
     try
     {
         SimWaypointImpl.BoundingBox(Nodes, out MinPoint, out MaxPoint);
     }
     catch (ArgumentException e)
     { throw new InvalidOperationException("Impossible to determine the bounding box for this graph.\n", e); }
 }