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; }
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; }