| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- return {
- summary = 'Get the components of the quaternion.',
- description = [[
- Returns the components of the quaternion as numbers, either in an angle/axis representation or
- as raw quaternion values.
- ]],
- arguments = {
- {
- name = 'raw',
- type = 'boolean',
- default = 'false',
- description = 'Whether the values should be returned as raw values instead of angle/axis.'
- }
- },
- returns = {
- {
- name = 'a',
- type = 'number',
- description = 'The angle in radians, or the x value.'
- },
- {
- name = 'b',
- type = 'number',
- description = 'The x component of the rotation axis or the y value.'
- },
- {
- name = 'c',
- type = 'number',
- description = 'The y component of the rotation axis or the z value.'
- },
- {
- name = 'd',
- type = 'number',
- description = 'The z component of the rotation axis or the w value.'
- }
- },
- related = {
- 'quat:set'
- }
- }
|