Пример #1
0
        public override void Init()
        {
            Point3 SunPos = new Point3();
            Point3 SunDir = new Point3();

            Sun = new oSun(SunPos, SunDir, 20f, 100f, 9.81f);
            Objects.Add(Sun);
        }
Пример #2
0
 public oPlanet(Point3 Pos, Point3 Dir, oSun Central, float mass, float Red, float Green, float Blue)
 {
     if (Central == null)
     {
         throw new Exception("Kein Zentralmassiv angegeben");
     }
     Position.assign(Pos);
     Direction.assign(Dir);
     Center = Central;
     _Red   = Red;
     _Green = Green;
     _Blue  = Blue;
     Mass   = mass;
     Size   = (float)((Math.Pow(Mass, (double)(1f / 3f)) * 3f) / (4f * Math.PI));
 }
Пример #3
0
 public oPlanet(Point3 Pos, Point3 Dir, oSun Central, float mass, float Red, float Green, float Blue)
 {
     if (Central == null)
     {
         throw new Exception("Kein Zentralmassiv angegeben");
     }
     Position.assign(Pos);
     Direction.assign(Dir);
     Center = Central;
     _Red = Red;
     _Green = Green;
     _Blue = Blue;
     Mass = mass;
     Size = (float)((Math.Pow(Mass, (double)(1f / 3f)) * 3f) / (4f * Math.PI));
 }
Пример #4
0
 public override void Init()
 {
     Point3 SunPos = new Point3();
     Point3 SunDir = new Point3();
     Sun = new oSun(SunPos, SunDir, 20f, 100f, 9.81f);
     Objects.Add(Sun);
 }