identity.lua 453 B

1234567891011121314151617181920212223
  1. return {
  2. summary = 'Reset the matrix to the identity.',
  3. description = [[
  4. Resets the matrix to the identity, effectively setting its translation to zero, its scale to 1,
  5. and clearing any rotation.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. self = {
  10. type = 'Mat4',
  11. description = 'The modified matrix.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'self' }
  18. }
  19. },
  20. related = {
  21. 'Pass:origin'
  22. }
  23. }