public int QueryLowerBound(double targetY) { lock (root) { return(root == null ? 0 : root.QueryLowerBound(targetY)); } }
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)); } }