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)); } }
public Transform TranslateX(float tx) { return(Transforms.Multiply(this, 1, 0, 0, 1, tx, 0, this)); }
public Transform TranslateY(float ty) { return(Transforms.Multiply(this, 1, 0, 0, 1, 0, ty, this)); }
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)); }