예제 #1
0
        const double G = 30; //6.673e-11

        #endregion Fields

        #region Constructors

        public Orb(string name, double x, double y, double vx, double vy, double m)
        {
            string path = Directory.GetCurrentDirectory();
            bitmap = new Bitmap("..\\..\\" +name + ".gif");
            bitmap.MakeTransparent(bitmap.GetPixel(1, 1));
            pos = new Vektor(x, y, 0);
            v0 = new Vektor(vx, vy, 0);
            masse = m;
            this.name = name;
        }
예제 #2
0
        public Orb(string name, double x, double y, double vx, double vy, double m)
        {
            string path = Directory.GetCurrentDirectory();

            bitmap = new Bitmap("..\\..\\" + name + ".gif");
            bitmap.MakeTransparent(bitmap.GetPixel(1, 1));
            pos       = new Vektor(x, y, 0);
            v0        = new Vektor(vx, vy, 0);
            masse     = m;
            this.name = name;
        }