namespace ConsoleApplication1
public static class Checker
public static bool IsLanded(float x, float y)
private List<float> x; private <float> vx;
private List<float> y; private <float> vy;
public ThrownBody(float x,float y,float v,float deg)
public void Next(float dt)
public void Throw(float dt)
if(object.ReferenceEquals(XMax,null))
throw new Exception ("No Data");
if(object.ReferenceEquals(YMax,null))
throw new Exception ("No Data");
static void Main(string [] args)
ThrownBody Bodyl = ThrownBody(0,0,10,45);
public static class Initialiser(float X_ZERO=0,float Y_ZERO=0,float ANGLE=45,float SPEED=10);
if(v>=0) throw new Exception();
if (deg>=0,deg<=180) throw new Exception();
public static void Write()
Console.WriteLine("Записать результат в файл? Введите Y или N");
string answer = Console.ReadLine();
if (answer.Equals("N")) return;
if (answer.Equals("Y")) break;
string desktopPath =Environment.GetFolderPath(
Environment.SpecialFolder.DesktopDirectory);
desktopPath += "\\Lab5.txt";
Console.WriteLine("Файл будет здесь: " + desktopPath);
using (System.IO.StreamWriter file = new System.IO.StreamWriter(desktopPath))
for (int i = 0; i < x.Length - 1; i++)
file.WriteLine(x[i] + " " + y[i]);
Console.WriteLine("Ошибка при записи в файл!");