getPose.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. return {
  2. summary = 'Get the position and rotation of the matrix.',
  3. description = 'Returns the position and rotation of the matrix.',
  4. arguments = {},
  5. returns = {
  6. x = {
  7. type = 'number',
  8. description = 'The x translation.'
  9. },
  10. y = {
  11. type = 'number',
  12. description = 'The y translation.'
  13. },
  14. z = {
  15. type = 'number',
  16. description = 'The z translation.'
  17. },
  18. angle = {
  19. type = 'number',
  20. description = 'The number of radians the matrix rotates around its rotation axis.'
  21. },
  22. ax = {
  23. type = 'number',
  24. description = 'The x component of the axis of rotation.'
  25. },
  26. ay = {
  27. type = 'number',
  28. description = 'The y component of the axis of rotation.'
  29. },
  30. az = {
  31. type = 'number',
  32. description = 'The z component of the axis of rotation.'
  33. }
  34. },
  35. variants = {
  36. {
  37. arguments = {},
  38. returns = { 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az' }
  39. }
  40. },
  41. related = {
  42. 'Mat4:getPosition',
  43. 'Mat4:getOrientation',
  44. 'Mat4:getScale',
  45. 'Mat4:unpack',
  46. 'Mat4:set'
  47. }
  48. }