getPosition.lua 646 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. summary = 'Get the translation of the matrix.',
  3. description = 'Returns the translation of the matrix. This is the last column 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. },
  19. variants = {
  20. {
  21. arguments = {},
  22. returns = { 'x', 'y', 'z' }
  23. }
  24. },
  25. related = {
  26. 'Mat4:getOrientation',
  27. 'Mat4:getScale',
  28. 'Mat4:getPose',
  29. 'Mat4:unpack',
  30. 'Mat4:set'
  31. }
  32. }