Пример #1
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Set the graphics matrix.
         * @param Value the graphics matrix.
         */
        internal void SetGraphicsMatrix(MatrixFP value)
        {
            _graphicsMatrix = new MatrixFP(value);
            _graphicsMatrix.Invert();
            _finalMatrix = new MatrixFP(_graphicsMatrix);
            if (_matrix != null)
            {
                _finalMatrix.Multiply(_matrix);
            }
        }
Пример #2
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Transform with a new matrix.
         * @param m1 a new matrix.
         */
        public void Transform(MatrixFP m1)
        {
            var m = new MatrixFP(m1);

            m.Invert();
            if (_matrix == null)
            {
                _matrix = m;
            }
            else
            {
                _matrix.Multiply(m);
            }
        }
Пример #3
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Set the graphics matrix.
  * @param Value the graphics matrix.
  */
 internal void SetGraphicsMatrix(MatrixFP value)
 {
     _graphicsMatrix = new MatrixFP(value);
     _graphicsMatrix.Invert();
     _finalMatrix = new MatrixFP(_graphicsMatrix);
     if (_matrix != null)
     {
         _finalMatrix.Multiply(_matrix);
     }
 }
Пример #4
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Transform with a new matrix.
  * @param m1 a new matrix.
  */
 public void Transform(MatrixFP m1)
 {
     var m = new MatrixFP(m1);
     m.Invert();
     if (_matrix == null)
     {
         _matrix = m;
     }
     else
     {
         _matrix.Multiply(m);
     }
 }
Пример #5
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Set the matrix for this brush.
  * @param Value a new matrix.
  */
 public void SetMatrix(MatrixFP value)
 {
     _matrix = new MatrixFP(value);
     _matrix.Invert();
 }
Пример #6
0
 public void Invert()
 {
     matrix.Invert();
 }
Пример #7
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Set the matrix for this brush.
         * @param Value a new matrix.
         */
        public void SetMatrix(MatrixFP value)
        {
            _matrix = new MatrixFP(value);
            _matrix.Invert();
        }