Multiply() public static method

public static Multiply ( AffineTransform a, AffineTransform b, AffineTransform into ) : AffineTransform
a AffineTransform
b AffineTransform
into AffineTransform
return AffineTransform
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 2
0
 public Transform TranslateX(float tx)
 {
     return(Transforms.Multiply(this, 1, 0, 0, 1, tx, 0, this));
 }
Ejemplo n.º 3
0
 public Transform TranslateY(float ty)
 {
     return(Transforms.Multiply(this, 1, 0, 0, 1, 0, ty, this));
 }
Ejemplo n.º 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));
        }