Пример #1
0
 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);
     }
 }
Пример #2
0
 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;
     }
 }
Пример #3
0
 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;
     }
 }
Пример #4
0
 public void Invert()
 {
     t = t.Invert();
 }
Пример #5
0
 public Matrix(Matrix other)
 {
     t = other != null ? other.t : CoreGraphics.CGAffineTransform.MakeIdentity();
 }
Пример #6
0
 void IMatrix.Invert()
 {
     t = t.Invert();
 }
Пример #7
0
 partial void Init(Matrix other)
 {
     t = other != null ? other.t : CoreGraphics.CGAffineTransform.MakeIdentity();
 }
Пример #8
0
 partial void InvertImpl()
 {
     t = t.Invert();
 }