Пример #1
0
 public void  LangevonPunkterechnen(Punktcord P, Punktcord B)
 {
     a = P.xco - B.xco;
     b = P.yco - B.yco;
     Console.WriteLine($" a = {a} , b = {b}");
     lange = Math.Sqrt(Math.Pow(a, 2) + Math.Pow(b, 2));
     Console.WriteLine("Die länge ist  c = {0}", Math.Round(lange));
 }
Пример #2
0
        static void Main(string[] args)
        {
            Punktcord P = new Punktcord();
            Punktcord B = new Punktcord();

            Console.WriteLine("coordinate von Punkt 1");
            P.Coordinate();
            Console.WriteLine("coordinate von Punkt 2");
            B.Coordinate();
            Lange L = new Lange(P, B);

            L.LangevonPunkterechnen(P, B);
            //Console.WriteLine(L.a);
            //Console.WriteLine(L.b);
            Console.ReadKey();
        }
Пример #3
0
 public Lange(Punktcord p, Punktcord b)
 {
     P = p;
     B = b;
 }