public double PickInCurrentRange(double orbit, double minLimit) { double retValue; if (ZonesOfInterest.GetRangeWidth(orbit) < minLimit) { do { retValue = ZonesOfInterest.PickInRange(ZonesOfInterest.GetRange(orbit)); }while (Math.Abs(retValue - orbit) < 0.01); } else { do { retValue = ZonesOfInterest.PickInRange(ZonesOfInterest.GetRange(orbit)); }while (retValue < orbit + minLimit); } return(retValue); //return this.zonesOfInterest.pickInRange(this.zonesOfInterest.getRange(orbit)); }
public double GetRangeWidth(double orbit) { return(ZonesOfInterest.GetRangeWidth(orbit)); }