scale.lua 987 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. return {
  2. tag = 'transform',
  3. summary = 'Scale the coordinate system.',
  4. description = 'Scales the coordinate system.',
  5. arguments = {
  6. sx = {
  7. type = 'number',
  8. description = 'The x component of the scale.'
  9. },
  10. sy = {
  11. type = 'number',
  12. default = 'sx',
  13. description = 'The y component of the scale.'
  14. },
  15. sz = {
  16. type = 'number',
  17. default = 'sx',
  18. description = 'The z component of the scale.'
  19. },
  20. scale = {
  21. type = 'Vec3',
  22. description = 'The scale to apply.'
  23. }
  24. },
  25. returns = {},
  26. variants = {
  27. {
  28. description = 'Scale the coordinate system using numbers.',
  29. arguments = { 'sx', 'sy', 'sz' },
  30. returns = {}
  31. },
  32. {
  33. description = 'Scale the coordinate system using a vector.',
  34. arguments = { 'scale' },
  35. returns = {}
  36. }
  37. },
  38. related = {
  39. 'Pass:translate',
  40. 'Pass:rotate',
  41. 'Pass:transform',
  42. 'Pass:origin',
  43. 'Pass:push',
  44. 'Pass:pop'
  45. }
  46. }