static void TransformPoints(CoreGraphics.CGAffineTransform t, PointF [] pts) { for (int i = 0; i < pts.Length; ++i) { var p = pts [i]; var cgp = t.TransformPoint(new CoreGraphics.CGPoint(p.X, p.Y)); pts [i] = new PointF((float)cgp.X, (float)cgp.Y); } }
public void Translate(float dx, float dy, MatrixOrder order = MatrixOrder.Prepend) { if (order == MatrixOrder.Append) { t = t * CoreGraphics.CGAffineTransform.MakeTranslation(dx, dy); } else { t = CoreGraphics.CGAffineTransform.MakeTranslation(dx, dy) * t; } }
partial void TranslateImpl(float dx, float dy, MatrixOrder order) { if (order == MatrixOrder.Append) { t = t * CoreGraphics.CGAffineTransform.MakeTranslation(dx, dy); } else { t = CoreGraphics.CGAffineTransform.MakeTranslation(dx, dy) * t; } }
public void Invert() { t = t.Invert(); }
public Matrix(Matrix other) { t = other != null ? other.t : CoreGraphics.CGAffineTransform.MakeIdentity(); }
void IMatrix.Invert() { t = t.Invert(); }
partial void Init(Matrix other) { t = other != null ? other.t : CoreGraphics.CGAffineTransform.MakeIdentity(); }
partial void InvertImpl() { t = t.Invert(); }