예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }