示例#1
0
 public void TranslateTransform(float dx, float dy)
 {
     if (matrix == null)
     {
         matrix = new MatrixX();
     }
     matrix.Translate(dx, dy);
 }
示例#2
0
 public void RotateTransform(float angle)
 {
     if (matrix == null)
     {
         matrix = new MatrixX();
     }
     matrix.Rotate(angle);
 }
示例#3
0
 public void ScaleTransform(float sx, float sy)
 {
     if (matrix == null)
     {
         matrix = new MatrixX();
     }
     matrix.Scale(sx, sy);
 }
示例#4
0
 public void ResetTransform()
 {
     if (matrix == null)
     {
         matrix = new MatrixX();
     }
     matrix.Reset();
 }
示例#5
0
 public void MultiplyTransform(MatrixX matrix, MatrixOrderX order)
 {
     if (this.matrix == null)
     {
         this.matrix = new MatrixX();
     }
     this.matrix.Multiply(matrix, order);
 }
示例#6
0
文件: MatrixX.cs 项目: nakijun/adasg
 public void Multiply(MatrixX m, MatrixOrderX order)
 {
     if (order == MatrixOrderX.Prepend)
     {
         MatrixFP m1 = new MatrixFP(m.matrix);
         m1.Multiply(matrix);
         matrix = m1;
     }
     else
     {
         matrix.Multiply(m.matrix);
     }
 }
示例#7
0
 public void MultiplyTransform(MatrixX matrix, MatrixOrderX order)
 {
     this.matrix.Multiply(matrix, order);
 }
示例#8
0
 public void MultiplyTransform(MatrixX matrix)
 {
     MultiplyTransform(matrix, MatrixOrderX.Prepend);
 }
示例#9
0
文件: MatrixX.cs 项目: nakijun/adasg
 public void Multiply(MatrixX m)
 {
     Multiply(m, MatrixOrderX.Prepend);
 }
示例#10
0
文件: MatrixX.cs 项目: nakijun/adasg
        public override bool Equals(object obj)
        {
            MatrixX m = obj as MatrixX;

            return(m != null && m.matrix.Equals(matrix));
        }