in reply to Re^2: Perl and Quaternions
in thread Perl and Quaternions

Oh, ok, I got confused because of the X, Y names. 2D and 3D coordinates are promoted to quaternions as {0, x, y, z} and seeing {x, 0, 0, y} didn't feel right!

In any case, for 2D rotations, quaternions are overkill. You can just use complex numbers.