rotate.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. return {
  2. tag = 'transform',
  3. summary = 'Rotate the coordinate system.',
  4. description = 'Rotates the coordinate system.',
  5. arguments = {
  6. angle = {
  7. type = 'number',
  8. description = 'The amount to rotate the coordinate system by, in radians.'
  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. rotation = {
  23. type = 'Quat',
  24. description = 'A quaternion containing the rotation to apply.'
  25. }
  26. },
  27. returns = {},
  28. variants = {
  29. {
  30. description = 'Rotate the coordinate system using numbers.',
  31. arguments = { 'angle', 'ax', 'ay', 'az' },
  32. returns = {}
  33. },
  34. {
  35. description = 'Rotate the coordinate system using a quaternion.',
  36. arguments = { 'rotation' },
  37. returns = {}
  38. }
  39. },
  40. related = {
  41. 'Pass:translate',
  42. 'Pass:scale',
  43. 'Pass:transform',
  44. 'Pass:origin',
  45. 'Pass:push',
  46. 'Pass:pop'
  47. }
  48. }