unpack.lua 627 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the individual components of the matrix.',
  3. description = [[
  4. Returns the components of matrix, either as 10 separated numbers representing the position,
  5. scale, and rotation, or as 16 raw numbers representing the individual components of the matrix
  6. in column-major order.
  7. ]],
  8. arguments = {
  9. {
  10. name = 'raw',
  11. type = 'boolean',
  12. description = 'Whether to return the 16 raw components.'
  13. }
  14. },
  15. returns = {
  16. {
  17. name = '...',
  18. type = 'number',
  19. description = 'The requested components of the matrix.'
  20. }
  21. },
  22. related = {
  23. 'Mat4:set'
  24. }
  25. }