getRectToRect
fun getRectToRect(source: RectF, target: RectF, @IntRange(from = 0, to = 359) rotationDegrees: Int, mirroring: Boolean): Matrix
Gets the transform from one RectF to another with rotation degrees and mirroring.
Following is how the source is mapped to the target with a 90° rotation and a mirroring. The rect , b, c, d> is mapped to ', b', c', d'>.
a----------b a'-----------d' | source | -90° + mirroring -> | | d----------c | target | | | b'-----------c'*