예제 #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 GetClosestDistToForbiddenZone(double orbit)
 {
     return(ZonesOfInterest.GetClosestDistFromForbiddenZone(orbit));
 }
예제 #3
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public void SortCleanZones()
 {
     ZonesOfInterest.SortCleanZones();
 }
예제 #4
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public void SortForbiddenZones()
 {
     ZonesOfInterest.SortForbiddenZones();
 }
예제 #5
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public void CreateCleanZones()
 {
     ZonesOfInterest.CreateCleanZones(InnerRadius(InitLumin, InitMass), OuterRadius(InitMass));
 }
예제 #6
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public int GetAdjacencyMod(double orbital)
 {
     return(ZonesOfInterest.GetAdjacencyMod(orbital));
 }
예제 #7
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double GetMaxCleanOrbit()
 {
     return(ZonesOfInterest.GetMaximalCleanZone());
 }
예제 #8
0
 public double CheckEccRange()
 {
     return(ZonesOfInterest.VerifyRange(GetEccentricRange()));
 }
예제 #9
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public bool VerifyForbiddenOrbit(double incoming)
 {
     return(ZonesOfInterest.IsWithinForbiddenZone(incoming));
 }
예제 #10
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double GetNextCleanOrbit(double orbit, int flag)
 {
     return(ZonesOfInterest.GetNextCleanOrbit(orbit, flag));
 }
예제 #11
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public bool VerifyCleanOrbit(double incoming)
 {
     return(ZonesOfInterest.IsWithinCleanZone(incoming));
 }
예제 #12
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double PickInRange(Range incoming)
 {
     return(ZonesOfInterest.PickInRange(incoming));
 }
예제 #13
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double VerifyRange(Range incoming)
 {
     return(ZonesOfInterest.VerifyRange(incoming));
 }
예제 #14
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double GetClosestForbiddenZoneRatio(double orbit)
 {
     return(ZonesOfInterest.GetClosestForbiddenZoneRatio(orbit));
 }
예제 #15
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public double GetRangeWidth(double orbit)
 {
     return(ZonesOfInterest.GetRangeWidth(orbit));
 }
예제 #16
0
 //gas giant checks (all passthrough, but simplify  the call.
 public double CheckEpiRange()
 {
     return(ZonesOfInterest.VerifyRange(GetEpistellarRange()));
 }
예제 #17
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
 public int GetOwnership(double orbital)
 {
     return(ZonesOfInterest.GetOwnership(orbital));
 }
예제 #18
0
 public double CheckConRange()
 {
     return(ZonesOfInterest.VerifyRange(GetConventionalRange()));
 }
예제 #19
0
파일: Star.cs 프로젝트: Neakas/ProjectSWN
        //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);
        }