translate.lua 830 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. return {
  2. summary = 'Translate the matrix.',
  3. description = 'Translates the matrix.',
  4. arguments = {
  5. v = {
  6. type = 'Vec3',
  7. description = 'The translation vector.'
  8. },
  9. x = {
  10. type = 'number',
  11. description = 'The x component of the translation.'
  12. },
  13. y = {
  14. type = 'number',
  15. description = 'The y component of the translation.'
  16. },
  17. z = {
  18. type = 'number',
  19. description = 'The z component of the translation.'
  20. }
  21. },
  22. returns = {
  23. self = {
  24. type = 'Mat4',
  25. description = 'The translated matrix.'
  26. }
  27. },
  28. variants = {
  29. {
  30. arguments = { 'v' },
  31. returns = { 'self' }
  32. },
  33. {
  34. arguments = { 'x', 'y', 'z' },
  35. returns = { 'self' }
  36. }
  37. },
  38. related = {
  39. 'Mat4:rotate',
  40. 'Mat4:scale',
  41. 'Mat4:identity'
  42. }
  43. }