Clever way to transform plane by matrix

Thank you!!!

Could you explain the theory behind such solution?
I don’t really understand why inversed transformation is required :frowning: