| 1234567891011121314151617181920212223242526272829 |
- return {
- summary = 'Create a matrix that reflects across a plane.',
- description = [[
- Turns the matrix into a reflection matrix that transforms values as though they were reflected
- across a plane.
- ]],
- arguments = {
- position = {
- type = 'Vec3',
- description = 'The position of the plane.'
- },
- normal = {
- type = 'Vec3',
- description = 'The normal vector of the plane.'
- }
- },
- returns = {
- self = {
- type = 'Mat4',
- description = 'The reflected matrix.'
- }
- },
- variants = {
- {
- arguments = { 'position', 'normal' },
- returns = { 'self' }
- }
- }
- }
|