示例#1
0
 public int QueryLowerBound(double targetY)
 {
     lock (root)
     {
         return(root == null ? 0 : root.QueryLowerBound(targetY));
     }
 }
示例#2
0
 public int QueryLowerBound(double targetY)
 {
     PutDown();
     if (this.QueryYOffset() >= targetY)
     {
         return(l == null ? 0 : l.QueryLowerBound(targetY));
     }
     else
     {
         return(GetSize(l) + (r == null ? 1 : r.QueryLowerBound(targetY) + 1));
     }
 }