Example #1
0
 public bool CircumsphereContains(double[] point)
 {
     if (!InfiniteSimplice)
     {
         return(containConstraint.CircumsphereContains(point));
     }
     else
     {
         //check restricions
         //foreach facets verify restriction. It's only possible to have zero or one facet
         //if no facet is made. Always CircumHyperSphere contains the new point
         if (!Facets.Any())
         {
             return(true);
         }
         else
         {
             ISimpliceFacet f = Facets.Single();
             return(f.semiHyperSpaceMatch(point));
         }
     }
 }