public Trojuhelnik(Bod2D bod1, Bod2D bod2, Bod2D bod3) { BodA = bod1; BodB = bod2; BodC = bod3; }
public double delkaStrany(Bod2D bod1, Bod2D bod2) { // vzorec pro vypocet delky strany z analyticke geometrie (vzdalenost dvou bodu) return(Math.Sqrt((bod2.X - bod1.X) * (bod2.X - bod1.X) + (bod2.Y - bod1.Y) * (bod2.Y - bod1.Y))); }
public Vektor2D(Bod2D zacatek, Bod2D konec) { u1 = konec.X - zacatek.X; u2 = konec.Y - zacatek.Y; }