Ejemplo n.º 1
0
        /// <summary>
        ///  Constructs a new Wall object by copying an existing Wall.
        /// </summary>
        public Wall(Wall otherWall)
        {
            Name = otherWall.Name;
            Colored = false;

            Line = new Line2D(otherWall.Line);

            //set center point
            Location = Line.midpoint();

            Dynamic = false;
            Visible = otherWall.Visible;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///  Constructs a new Wall object by copying an existing Wall.
        /// </summary>
        public Wall(Wall otherWall)
        {
            Name    = otherWall.Name;
            Colored = false;

            Line = new Line2D(otherWall.Line);

            //set center point
            Location = Line.midpoint();

            Dynamic = false;
            Visible = otherWall.Visible;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Constructs a new Wall object from scratch
        /// </summary>
        /// <param name="nx1">X component of endpoint 1</param>
        /// <param name="ny1">Y component of endpoint 1</param>
        /// <param name="nx2">X component of endpoint 2</param>
        /// <param name="ny2">Y component of endpoint 2</param>
        /// <param name="vis">Is the wall visible?</param>
        /// <param name="n">Wall name</param>
        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;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Constructs a new Wall object from scratch
        /// </summary>
        /// <param name="nx1">X component of endpoint 1</param>
        /// <param name="ny1">Y component of endpoint 1</param>
        /// <param name="nx2">X component of endpoint 2</param>
        /// <param name="ny2">Y component of endpoint 2</param>
        /// <param name="vis">Is the wall visible?</param>
        /// <param name="n">Wall name</param>
        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;
        }