Example #1
0
 public CoverNode(Rectangle bounds, int capacity, int layer, double p_value, CoverNode <T> parent)
 {
     ActualBounds    = bounds;
     Capacity        = capacity;
     LayerNum        = layer;
     pVal            = p_value;
     OperatingBounds = new Rectangle(ActualBounds.Center, (int)(ActualBounds.Width * (1.0 + pVal)), (int)(ActualBounds.Height * (1.0 + pVal)));;
     Parent          = parent;
 }
Example #2
0
 public bool Equals(CoverNode <T> other)
 {
     return(LayerNum == other.LayerNum && ActualBounds.Equals(other.ActualBounds));
 }