getOrientation.lua 833 B

123456789101112131415161718192021222324252627282930313233343536
  1. return {
  2. summary = 'Get the angle/axis rotation of the matrix.',
  3. description = 'Returns the angle/axis rotation of the matrix.',
  4. arguments = {},
  5. returns = {
  6. angle = {
  7. type = 'number',
  8. description = 'The number of radians the matrix rotates around its rotation axis.'
  9. },
  10. ax = {
  11. type = 'number',
  12. description = 'The x component of the axis of rotation.'
  13. },
  14. ay = {
  15. type = 'number',
  16. description = 'The y component of the axis of rotation.'
  17. },
  18. az = {
  19. type = 'number',
  20. description = 'The z component of the axis of rotation.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = {},
  26. returns = { 'angle', 'ax', 'ay', 'az' }
  27. }
  28. },
  29. related = {
  30. 'Mat4:getPosition',
  31. 'Mat4:getScale',
  32. 'Mat4:getPose',
  33. 'Mat4:unpack',
  34. 'Mat4:set'
  35. }
  36. }