2D Linear Transforms
Rotate with a 3-4-5 Matrix
Rotate a triangle with the exact rational rotation where cos = 4/5 and sin = 3/5.
rotate-rational-3-4-5
This exact rational rotation is a teachable exception. Arbitrary angles usually send integer pixel positions to irrational coordinates, so bitmap rotation must round or resample and can introduce aliasing.