reflect.lua 632 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. summary = 'Create a matrix that reflects across a plane.',
  3. description = [[
  4. Turns the matrix into a reflection matrix that transforms values as though they were reflected
  5. across a plane.
  6. ]],
  7. arguments = {
  8. position = {
  9. type = 'Vec3',
  10. description = 'The position of the plane.'
  11. },
  12. normal = {
  13. type = 'Vec3',
  14. description = 'The normal vector of the plane.'
  15. }
  16. },
  17. returns = {
  18. self = {
  19. type = 'Mat4',
  20. description = 'The reflected matrix.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = { 'position', 'normal' },
  26. returns = { 'self' }
  27. }
  28. }
  29. }