3 ms·
Any right quadrangle of any dimensions can be rotated with this algorithm by padding it to become a square with 2^n pixels per side, rotating the square, and th
by a4isms 5y ago
Any right quadrangle of any dimensions can be rotated with this algorithm by padding it to become a square with 2^n pixels per side, rotating the square, and then removing the padding.
The degenerate case is when the right quadrangle is already a square with 2^n sides, in which case there is no padding to remove.