public bool Equals(Section2D Another)
        {
            if (Another.End.X != this.End.X || Another.End.Y != this.End.Y)
            {
                return(false);
            }

            if (Another.Start.X != this.Start.X || Another.Start.Y != this.Start.Y)
            {
                return(false);
            }

            return(true);
        }
예제 #2
0
        public Axonomertry(Point4D[] p4d, Point4D p4dT, Section4D section4d, int lengthAxis, int indent, double eps, bool changeL)
        {
            red        = new Pen(Color.Red);
            green      = new Pen(Color.Green);
            blue       = new Pen(Color.Blue);
            black      = new Pen(Color.Black);
            aqua       = new Pen(Color.Aqua, 2);
            darkOrange = new Pen(Color.DarkOrange, 2);

            this.changeL = changeL;

            this.p4d       = p4d;
            p4dTrans       = new Point4D[p4d.Length];
            p2d            = new Point2D[p4d.Length];
            this.p4dT      = p4dT;
            this.section4d = section4d;
            sectionTrans   = new Section4D();
            section2d      = new Section2D();


            transformMatrix = new MatrixTransform();
            operations      = new Operations3D();
            Rz = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            Rx = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            Mx = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            Pz = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            T  = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

            Ao = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            Cz = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            Ac = new Matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

            this.Lx         = p4d[5].X;
            this.Ly         = p4d[5].Y;
            this.Lz         = p4d[5].Z;
            this.eps        = eps;
            this.lengthAxis = lengthAxis;
            this.indent     = indent;
        }