| 12345678910111213141516171819202122232425262728293031323334 |
- return {
- summary = 'Get the individual components of the matrix.',
- description = [[
- Returns the components of matrix, either as 10 separated numbers representing the position,
- scale, and rotation, or as 16 raw numbers representing the individual components of the matrix
- in column-major order.
- ]],
- arguments = {
- raw = {
- type = 'boolean',
- default = 'false',
- description = 'Whether to return the 16 raw components.'
- }
- },
- returns = {
- ['...'] = {
- type = 'number',
- description = 'The requested components of the matrix.'
- }
- },
- variants = {
- {
- arguments = { 'raw' },
- returns = { '...' }
- }
- },
- related = {
- 'Mat4:set',
- 'Mat4:getPosition',
- 'Mat4:getOrientation',
- 'Mat4:getScale',
- 'Mat4:getPose'
- }
- }
|