예제 #1
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
        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));
        }
예제 #2
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double GetRangeWidth(double orbit)
 {
     return(ZonesOfInterest.GetRangeWidth(orbit));
 }