public Wall(double nx1, double ny1, double nx2, double ny2, bool vis, string n) { name = n; colored = false; Point2D p1 = new Point2D(nx1, ny1); Point2D p2 = new Point2D(nx2, ny2); line = new Line2D(p1, p2); //set center point location = line.midpoint(); dynamic = false; visible = vis; }
public Wall(Wall k) { name = k.name; //Console.WriteLine(name); colored = false; line = new Line2D(k.line); //set center point location = line.midpoint(); dynamic = false; visible = k.visible; }