| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- return {
- summary = 'Scale the matrix.',
- description = 'Scales the matrix.',
- arguments = {
- scale = {
- type = 'Vec3',
- description = 'The 3D scale to apply.'
- },
- sx = {
- type = 'number',
- description = 'The x component of the scale to apply.'
- },
- sy = {
- type = 'number',
- default = 'sx',
- description = 'The y component of the scale to apply.'
- },
- sz = {
- type = 'number',
- default = 'sx',
- description = 'The z component of the scale to apply.'
- }
- },
- returns = {
- self = {
- type = 'Mat4',
- description = 'The modified matrix.'
- }
- },
- variants = {
- {
- arguments = { 'scale' },
- returns = { 'self' }
- },
- {
- arguments = { 'sx', 'sy', 'sz' },
- returns = { 'self' }
- }
- },
- related = {
- 'Mat4:translate',
- 'Mat4:rotate',
- 'Mat4:identity'
- }
- }
|