I remember taking Linear Algebra and learning how to rotate shapes in order to be able to find their area. You learn that rotations are essentially a linear transformation (btw, just like function derivatives, which I find to be super cool), which is what the guy on StackOverflow is doing. Pretty clever!