isScaleTranslate property

bool get isScaleTranslate

Returns true if Matrix at most scales and translates. Matrix may be identity, contain only scale elements, only translate elements, or both. Matrix form is:

 | scale-x    0    translate-x |
 |    0    scale-y translate-y |
 |    0       0 1      |

@return true if Matrix is identity; or scales, translates, or both

Implementation

bool get isScaleTranslate => c.mnn_cv_matrix_is_scale_translate(ptr);