Fix polar decomposition in 2D.
Fix polar decomposition in 2D.

When performing polar decomposition in 2D as B = R.S, where R is rotation (with determinant +1) and S is scaling, use the convention that reflections are absorbed into S through a reflection around y axis.
In 3D, this is done by using a reflection along all three axes, but since the dimensionality is even in 2D, one axis needs to be chosen.

Fixes Matrix32::get_rotation and Matrix32::get_scale (which weren't properly fixed in #7445).

FateAce/godot,ZuBsPaCe/godot,Marqin/godot,morrow1nd/godot,guilhermefelipecgs/godot,Valentactive/godot,ex/godot,ZuBsPaCe/godot,RandomShaper/godot,Marqin/godot,ex/godot,vkbsb/godot,Max-Might/godot,godotengine/godot,akien-mga/godot,honix/godot,firefly2442/godot,groud/godot,Valentactive/godot,Max-Might/godot,RandomShaper/godot,BastiaanOlij/godot,n-pigeon/godot,Paulloz/godot,morrow1nd/godot,Max-Might/godot,Shockblast/godot,zicklag/godot,ex/godot,mcanders/godot,RebelliousX/Go_Dot,exabon/godot,Paulloz/godot,n-pigeon/godot,exabon/godot,Brickcaster/godot,honix/godot,okamstudio/godot,tomreyn/godot,Faless/godot,DmitriySalnikov/godot,akien-mga/godot,sanikoyes/godot,ZuBsPaCe/godot,Max-Might/godot,Zylann/godot,pkowal1982/godot,morrow1nd/godot,ficoos/godot,RandomShaper/godot,Paulloz/godot,zicklag/godot,Brickcaster/godot,MrMaidx/godot,Marqin/godot,okamstudio/godot,josempans/godot,BastiaanOlij/godot,ZuBsPaCe/godot,okamstudio/godot,guilhermefelipecgs/godot,honix/godot,Paulloz/godot,MarianoGnu/godot,vnen/godot,vnen/godot,NateWardawg/godot,ex/godot,NateWardawg/godot,BastiaanOlij/godot,okamstudio/godot,mcanders/godot,jejung/godot,guilhermefelipecgs/godot,ex/godot,NateWardawg/godot,guilhermefelipecgs/godot,zicklag/godot,BastiaanOlij/godot,n-pigeon/godot,zicklag/godot,RebelliousX/Go_Dot,tomreyn/godot,Valentactive/godot,josempans/godot,firefly2442/godot,Faless/godot,MarianoGnu/godot,jejung/godot,akien-mga/godot,vkbsb/godot,n-pigeon/godot,Zylann/godot,Shockblast/godot,Shockblast/godot,josempans/godot,guilhermefelipecgs/godot,morrow1nd/godot,NateWardawg/godot,vkbsb/godot,NateWardawg/godot,ageazrael/godot,RandomShaper/godot,exabon/godot,Paulloz/godot,Zylann/godot,Shockblast/godot,pkowal1982/godot,okamstudio/godot,DmitriySalnikov/godot,vnen/godot,okamstudio/godot,jejung/godot,Zylann/godot,mcanders/godot,BastiaanOlij/godot,Max-Might/godot,MrMaidx/godot,ageazrael/godot,akien-mga/godot,sanikoyes/godot,NateWardawg/godot,RebelliousX/Go_Dot,NateWardawg/godot,RandomShaper/godot,Valentactive/godot,Valentactive/godot,godotengine/godot,Valentactive/godot,n-pigeon/godot,ZuBsPaCe/godot,ageazrael/godot,vnen/godot,ficoos/godot,Zylann/godot,firefly2442/godot,Faless/godot,FateAce/godot,sanikoyes/godot,josempans/godot,mcanders/godot,pkowal1982/godot,godotengine/godot,okamstudio/godot,ZuBsPaCe/godot,honix/godot,MrMaidx/godot,groud/godot,Brickcaster/godot,ficoos/godot,guilhermefelipecgs/godot,tomreyn/godot,pkowal1982/godot,Faless/godot,MrMaidx/godot,vnen/godot,ZuBsPaCe/godot,zicklag/godot,Brickcaster/godot,pkowal1982/godot,DmitriySalnikov/godot,okamstudio/godot,jejung/godot,Zylann/godot,sanikoyes/godot,ageazrael/godot,Shockblast/godot,MrMaidx/godot,guilhermefelipecgs/godot,okamstudio/godot,n-pigeon/godot,zicklag/godot,jejung/godot,josempans/godot,josempans/godot,NateWardawg/godot,pkowal1982/godot,vkbsb/godot,vkbsb/godot,firefly2442/godot,Faless/godot,honix/godot,RebelliousX/Go_Dot,DmitriySalnikov/godot,RebelliousX/Go_Dot,tomreyn/godot,Brickcaster/godot,ex/godot,Faless/godot,morrow1nd/godot,ZuBsPaCe/godot,vnen/godot,vkbsb/godot,RebelliousX/Go_Dot,FateAce/godot,Marqin/godot,pkowal1982/godot,ageazrael/godot,Faless/godot,morrow1nd/godot,exabon/godot,Faless/godot,groud/godot,akien-mga/godot,firefly2442/godot,MarianoGnu/godot,godotengine/godot,ex/godot,godotengine/godot,Brickcaster/godot,Zylann/godot,firefly2442/godot,firefly2442/godot,exabon/godot,sanikoyes/godot,akien-mga/godot,DmitriySalnikov/godot,vkbsb/godot,RandomShaper/godot,sanikoyes/godot,MarianoGnu/godot,Shockblast/godot,MarianoGnu/godot,Paulloz/godot,godotengine/godot,ageazrael/godot,josempans/godot,Brickcaster/godot,Shockblast/godot,Marqin/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,DmitriySalnikov/godot,RandomShaper/godot,FateAce/godot,BastiaanOlij/godot,Paulloz/godot,vnen/godot,MarianoGnu/godot,jejung/godot,godotengine/godot,exabon/godot,vkbsb/godot,akien-mga/godot,vnen/godot,FateAce/godot,Shockblast/godot,Marqin/godot,MarianoGnu/godot,groud/godot,firefly2442/godot,FateAce/godot,godotengine/godot,sanikoyes/godot,ficoos/godot,Zylann/godot,sanikoyes/godot,Max-Might/godot,okamstudio/godot,ficoos/godot,Valentactive/godot,josempans/godot,DmitriySalnikov/godot,honix/godot,groud/godot,ageazrael/godot,mcanders/godot,akien-mga/godot,pkowal1982/godot,groud/godot,MarianoGnu/godot,ex/godot,mcanders/godot,BastiaanOlij/godot,n-pigeon/godot,MrMaidx/godot,Valentactive/godot,tomreyn/godot,ficoos/godot,NateWardawg/godot