public Prostokat(string set_color, Punkt point1, Punkt point2) : base(set_color, new Punkt(point1.x, point1.y), new Punkt(point1.x, point2.y), new Punkt(point2.x, point2.y), new Punkt(point2.x, point2.y)) { p1 = new Punkt(point1); p2 = new Punkt(point2); }
public Punkt(Punkt punkt) { x = punkt.x; y = punkt.y; }
public Trojkat(string set_color, Punkt point1, Punkt point2, Punkt point3) : base(set_color) { p1 = new Punkt(point1); p2 = new Punkt(point2); p3 = new Punkt(point3); }
public Kwadrat(string set_color, Punkt point1, int a) : base(set_color, point1, new Punkt(point1.x + a, point1.y + a)) { p1 = new Punkt(point1); dlugosc_boku = a; }