equals.lua 571 B

12345678910111213141516171819202122232425262728
  1. return {
  2. summary = 'Check if a matrix equals another matrix.',
  3. description = 'Returns whether a matrix is approximately equal to another matrix.',
  4. arguments = {
  5. n = {
  6. type = 'Mat4',
  7. description = 'The other matrix.'
  8. }
  9. },
  10. returns = {
  11. equal = {
  12. type = 'boolean',
  13. description = 'Whether the 2 matrices approximately equal each other.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = { 'n' },
  19. returns = { 'equal' }
  20. }
  21. },
  22. related = {
  23. 'Vec2:equals',
  24. 'Vec3:equals',
  25. 'Vec4:equals',
  26. 'Quat:equals'
  27. }
  28. }