postTranslate method

void postTranslate(
  1. double dx,
  2. double dy
)

Sets Matrix to Matrix constructed from translation (dx, dy) multiplied by Matrix. This can be thought of as moving the point to be mapped after applying Matrix.

Given:

         | J K L |               | 1 0 dx |
Matrix = | M N O |,  T(dx, dy) = | 0 1 dy |
         | P Q R |               | 0 0  1 |

sets Matrix to:

                     | 1 0 dx | | J K L |   | J+dx*P K+dx*Q L+dx*R |
T(dx, dy) * Matrix = | 0 1 dy | | M N O | = | M+dy*P N+dy*Q O+dy*R |
                     | 0 0  1 | | P Q R |   |      P      Q      R |

@param dx x-axis translation after applying Matrix @param dy y-axis translation after applying Matrix

Implementation

void postTranslate(double dx, double dy) => c.mnn_cv_matrix_post_translate(ptr, dx, dy);