コード例 #1
0
 public MockBody(string name,
                 double radius,
                 MockBody parent,
                 double inclination,
                 double eccentricity,
                 double semiMajorAxis,
                 double lan,
                 double argumentOfPeriapsis,
                 double epoch,
                 double meanAnomalyAtEpoch,
                 double mu,
                 double soiRadius,
                 bool hasAtmosphere,
                 double atmosphereDepth,
                 double rotationPeriod)
 {
     this.name      = name;
     this.parent    = parent;
     this.mu        = mu;
     this.soiRadius = soiRadius;
     orbit          = new MockOrbit(parent, inclination, eccentricity, semiMajorAxis, lan, argumentOfPeriapsis,
                                    epoch, meanAnomalyAtEpoch);
     this.radius          = radius;
     this.hasAtmosphere   = hasAtmosphere;
     this.atmosphereDepth = atmosphereDepth;
     this.rotationPeriod  = rotationPeriod;
     angularVelocity      = Vector3d.down * (2 * Math.PI / rotationPeriod);
 }
コード例 #2
0
 public MockBody(string name, double radius, double mu)
 {
     this.name       = name;
     this.mu         = mu;
     parent          = null;
     orbit           = null;
     soiRadius       = double.PositiveInfinity;
     this.radius     = radius;
     hasAtmosphere   = false;
     atmosphereDepth = 0;
 }