conjugate.lua 485 B

1234567891011121314151617181920
  1. return {
  2. summary = 'Conjugate (invert) the quaternion.',
  3. description = [[
  4. Conjugates the input quaternion in place, returning the input. If the quaternion is normalized,
  5. this is the same as inverting it. It negates the (x, y, z) components of the quaternion.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. self = {
  10. type = 'Quat',
  11. description = 'The inverted quaternion.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'self' }
  18. }
  19. }
  20. }