From Spinach Documentation Wiki
|
|
| (7 intermediate revisions by 2 users not shown) |
| Line 1: |
Line 1: |
| − | {{DISPLAYTITLE:quat2anax.m}} __NOTOC__
| + | #REDIRECT [[qter2anax.m]] |
| − | Converts a quaternion into angle-axis rotation parameters.
| |
| − | | |
| − | ==Syntax==
| |
| − | | |
| − | [rot_axis,rot_angle]=quat2anax(q)
| |
| − | | |
| − | ==Arguments==
| |
| − | | |
| − | q - quaternion, a structure with four fields
| |
| − | q.u, q.i, q.j, q.k giving the four compo-
| |
| − | nents of the quaternion
| |
| − | | |
| − | ==Outputs==
| |
| − | | |
| − | rot_axis - cartesian direction vector as a row
| |
| − | with three real elements
| |
| − | | |
| − | rot_angle - rotation angle in radians
| |
| − | | |
| − | ==Notes==
| |
| − | See the notes on [[rotation conventions]] for the basic definitions of rotations in ''Spinach''.
| |
| − | | |
| − | ==See also==
| |
| − | Links to related functions.
| |
| − | | |
| − | | |
| − | ''Version 2.3, authors: [[Ilya Kuprov]]''
| |
Latest revision as of 09:29, 30 August 2026