is there any way to declare a variable as a quaternion and use standard + - * ^ calculus?
Best regards,
Joerg.
To my knowing, you can not decalare a quaternion in Igor directly. Variable operation can only creates real or complex variables.
Structure or simply a 4-points wave can meet with your need. Using programming this is really not difficult.
IMO all Variables in Igor should have been quaternions but that would probably have made some people very unhappy.
If you get IP8 (beta) you'll have access to the yet untested quaternion functions designed mostly for facilitating 3D rotations. These include quaternion to 4x4 matrix conversions, quaternion to rotation axis and rotation angle, quaternion to Euler angles (12 sequence definitions), conversions of axis (and angle) to quaternion and conversion of 4x4 matrix to quaternion.
To my knowing, you can not decalare a quaternion in Igor directly. Variable operation can only creates real or complex variables.
Structure or simply a 4-points wave can meet with your need. Using programming this is really not difficult.
February 14, 2018 at 06:04 pm - Permalink
MatrixOP
operations?February 15, 2018 at 03:56 am - Permalink
If you get IP8 (beta) you'll have access to the yet untested quaternion functions designed mostly for facilitating 3D rotations. These include quaternion to 4x4 matrix conversions, quaternion to rotation axis and rotation angle, quaternion to Euler angles (12 sequence definitions), conversions of axis (and angle) to quaternion and conversion of 4x4 matrix to quaternion.
A.G.
February 15, 2018 at 10:20 am - Permalink