There is a polygon (rotated rectangle) that defined by 4 corner points in 2D coordinate system. Does anyone help me with the fast (minimum trigonometry operations) algorithm to change its height by any scale factor.
A, B, C, D is known. Need to find A1, B1, C1, D1.
Why not just ($s=$ scale factor): $$A_1=s(A-D)+ D$$ $$D_1=s(D-A)+ A$$ and similarly for $B_1$ and $C_1$.