Multiply() public static method

public static Multiply ( AffineTransform a, AffineTransform b, AffineTransform into ) : AffineTransform
a AffineTransform
b AffineTransform
into AffineTransform
return AffineTransform
コード例 #1
0
 public Transform PreConcatenate(Transform other)
 {
     if (this.Generality < other.Generality)
     {
         return(other.Concatenate(this));
     }
     if (other is AffineTransform)
     {
         return(Transforms.Multiply((AffineTransform)other, this, new AffineTransform()));
     }
     else
     {
         AffineTransform oaff = new AffineTransform(other);
         return(Transforms.Multiply(oaff, this, oaff));
     }
 }
コード例 #2
0
 public Transform TranslateX(float tx)
 {
     return(Transforms.Multiply(this, 1, 0, 0, 1, tx, 0, this));
 }
コード例 #3
0
 public Transform TranslateY(float ty)
 {
     return(Transforms.Multiply(this, 1, 0, 0, 1, 0, ty, this));
 }
コード例 #4
0
        public Transform Rotate(float angle)
        {
            float sina = FloatMath.Sin(angle), cosa = FloatMath.Cos(angle);

            return(Transforms.Multiply(cosa, sina, -sina, cosa, 0, 0, this, this));
        }