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 GetClosestDistToForbiddenZone(double orbit) { return(ZonesOfInterest.GetClosestDistFromForbiddenZone(orbit)); }
public void SortCleanZones() { ZonesOfInterest.SortCleanZones(); }
public void SortForbiddenZones() { ZonesOfInterest.SortForbiddenZones(); }
public void CreateCleanZones() { ZonesOfInterest.CreateCleanZones(InnerRadius(InitLumin, InitMass), OuterRadius(InitMass)); }
public int GetAdjacencyMod(double orbital) { return(ZonesOfInterest.GetAdjacencyMod(orbital)); }
public double GetMaxCleanOrbit() { return(ZonesOfInterest.GetMaximalCleanZone()); }
public double CheckEccRange() { return(ZonesOfInterest.VerifyRange(GetEccentricRange())); }
public bool VerifyForbiddenOrbit(double incoming) { return(ZonesOfInterest.IsWithinForbiddenZone(incoming)); }
public double GetNextCleanOrbit(double orbit, int flag) { return(ZonesOfInterest.GetNextCleanOrbit(orbit, flag)); }
public bool VerifyCleanOrbit(double incoming) { return(ZonesOfInterest.IsWithinCleanZone(incoming)); }
public double PickInRange(Range incoming) { return(ZonesOfInterest.PickInRange(incoming)); }
public double VerifyRange(Range incoming) { return(ZonesOfInterest.VerifyRange(incoming)); }
public double GetClosestForbiddenZoneRatio(double orbit) { return(ZonesOfInterest.GetClosestForbiddenZoneRatio(orbit)); }
public double GetRangeWidth(double orbit) { return(ZonesOfInterest.GetRangeWidth(orbit)); }
//gas giant checks (all passthrough, but simplify the call. public double CheckEpiRange() { return(ZonesOfInterest.VerifyRange(GetEpistellarRange())); }
public int GetOwnership(double orbital) { return(ZonesOfInterest.GetOwnership(orbital)); }
public double CheckConRange() { return(ZonesOfInterest.VerifyRange(GetConventionalRange())); }
//zones of interest functions - both to see if it's initated and to create it. //init formulas //passthrough functions public void CreateForbiddenZone(Range incoming, int primary, int secondary) { ZonesOfInterest.CreateForbiddenZone(incoming, primary, secondary); }