Example #1
0
 public static Matrix2 TranslatePrepend(Matrix2 matrix, double offsetX, double offsetY)
 {
     return(Translate(offsetX, offsetY) * matrix);
 }
Example #2
0
 public static Matrix2 ScaleAtPrepend(Matrix2 matrix, double scaleX, double scaleY, double centerX, double centerY)
 {
     return(ScaleAt(scaleX, scaleY, centerX, centerY) * matrix);
 }
Example #3
0
 public static Point2 TransformPoint(Matrix2 matrix, Point2 point)
 {
     return(new Point2(
                (point.X * matrix.M11) + (point.Y * matrix.M21) + matrix.OffsetX,
                (point.X * matrix.M12) + (point.Y * matrix.M22) + matrix.OffsetY));
 }