getScale.lua 599 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. summary = 'Get the scale factor of the matrix.',
  3. description = 'Returns the scale factor of the matrix.',
  4. arguments = {},
  5. returns = {
  6. sx = {
  7. type = 'number',
  8. description = 'The x scale.'
  9. },
  10. sy = {
  11. type = 'number',
  12. description = 'The y scale.'
  13. },
  14. sz = {
  15. type = 'number',
  16. description = 'The z scale.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = {},
  22. returns = { 'sx', 'sy', 'sz' }
  23. }
  24. },
  25. related = {
  26. 'Mat4:getPosition',
  27. 'Mat4:getOrientation',
  28. 'Mat4:getPose',
  29. 'Mat4:unpack',
  30. 'Mat4:set'
  31. }
  32. }