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

Uff, that's not the usual quaternion!

Actually, it is; quaternions are often used to represent rotations.

Replies are listed 'Best First'.
Re^3: Perl and Quaternions
by salva (Canon) on May 08, 2014 at 10:21 UTC
    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.