private void shift(Class_Stars star, bool str) { if (star.tg == Infinity) { star.speed_y = star.speed; } else if (star.tg == -Infinity) { star.speed_y = -star.speed; } else { star.speed_y = star.tg * star.speed / Math.Sqrt(1 + star.tg * star.tg); } if (Math.Sqrt(1 - (star.speed_y / 300) * (star.speed_y / 300)) / (1 - (star.speed / 300)) > 0) { star.lambda = Math.Sqrt(1 - (star.speed_y / 300) * (star.speed_y / 300)) / (1 - (star.speed / 300)); star.lambda = star.lambda * 550 - 550; } if (str) { inform.system1_inf[count][2] = star.lambda; inform.system1_inf[count][5] = star.speed_y; } else { inform.system2_inf[count][2] = star.lambda * -1; inform.system2_inf[count][5] = star.speed_y; } }
/////////////// public Form1() { InitializeComponent(); star1 = new Class_Stars(); star2 = new Class_Stars(); parametrs = new Class_get_param(); inform = new Class_orbit_parametrs(); }