Beispiel #1
0
 internal static SizeFx InverseTransform(Matrix matrix, SizeFx point)
 {
     if (matrix.Determinant() != 0.0f)
     {
         Matrix tempMatrix = Matrix.Identity;
         tempMatrix = Matrix.Multiply(tempMatrix, matrix);
         tempMatrix = Matrix.Invert(tempMatrix);
         point      = MatrixExtensions.Transform(tempMatrix, point);
     }
     return(point);
 }
Beispiel #2
0
 internal static SizeFx Transform(Matrix tempMatrix, SizeFx point)
 {
     System.Drawing.PointF[] pts    = { new System.Drawing.PointF(point.Width, point.Height) };
     System.Drawing.PointF[] newPts = TransformPoints(tempMatrix, pts);
     return(new SizeFx(newPts[0].X, newPts[0].Y));
 }
Beispiel #3
0
 static SizeFx()
 {
     SizeFx.mEmpty = new SizeFx();
 }