mirror of
https://github.com/Reuh/language-candran.git
synced 2025-10-28 04:39:31 +00:00
Added math functions snippets
Added math functions snippets also fixed some Readme errors
This commit is contained in:
parent
91958e3bd2
commit
bb0f007168
2 changed files with 133 additions and 5 deletions
|
|
@ -47,8 +47,8 @@
|
|||
'return definition shortcut':
|
||||
'prefix': 'ret'
|
||||
'body': 'return ${0:value}'
|
||||
'log':
|
||||
'prefix': 'log'
|
||||
'print':
|
||||
'prefix': 'print'
|
||||
'body': 'print("${0:logging}")'
|
||||
'require':
|
||||
'prefix': 'require'
|
||||
|
|
@ -83,3 +83,96 @@
|
|||
'table.sort':
|
||||
'prefix': 'tabs',
|
||||
'body': 'table.sort(${1:tableName}${2:, sortfunction})'
|
||||
'table.remove':
|
||||
'prefix': 'tabr',
|
||||
'body': 'table.remove(${1:tableName}${2:, position})'
|
||||
'table.maxn':
|
||||
'prefix': 'tabm',
|
||||
'body': 'table.maxn(${1:tableName})'
|
||||
'math.abs':
|
||||
'prefix': 'abs',
|
||||
'body': 'math.abs(${0:x})'
|
||||
'math.acos':
|
||||
'prefix': 'acos',
|
||||
'body': 'math.acos(${0:x})'
|
||||
'math.asin':
|
||||
'prefix': 'asin',
|
||||
'body': 'math.asin(${0:x})'
|
||||
'math.atan':
|
||||
'prefix': 'atan',
|
||||
'body': 'math.atan(${0:x})'
|
||||
'math.atan2':
|
||||
'prefix': 'atan2',
|
||||
'body': 'math.atan2(${0:y}, ${1:x})'
|
||||
'math.ceil':
|
||||
'prefix': 'ceil',
|
||||
'body': 'math.ceil(${0:x})'
|
||||
'math.cos':
|
||||
'prefix': 'cos',
|
||||
'body': 'math.cos(${0:x})'
|
||||
'math.cosh':
|
||||
'prefix': 'cosh',
|
||||
'body': 'math.cosh(${0:x})'
|
||||
'math.deg':
|
||||
'prefix': 'deg',
|
||||
'body': 'math.deg(${0:x})'
|
||||
'math.exp':
|
||||
'prefix': 'exp',
|
||||
'body': 'math.exp(${0:x})'
|
||||
'math.floor':
|
||||
'prefix': 'floor',
|
||||
'body': 'math.floor(${0:x})'
|
||||
'math.fmod':
|
||||
'prefix': 'fmod',
|
||||
'body': 'math.fmod(${0:x}, ${1:y})'
|
||||
'math.frexp':
|
||||
'prefix': 'frexp',
|
||||
'body': 'math.frexp(${0:x})'
|
||||
'math.huge':
|
||||
'prefix': 'huge',
|
||||
'body': 'math.huge'
|
||||
'math.ldexp':
|
||||
'prefix': 'ldexp',
|
||||
'body': 'math.ldexp(${0:m}, ${1:e})'
|
||||
'math.log':
|
||||
'prefix': 'log',
|
||||
'body': 'math.log(${0:x})'
|
||||
'math.log10':
|
||||
'prefix': 'log10',
|
||||
'body': 'math.log10(${0:x})'
|
||||
'math.max':
|
||||
'prefix': 'max',
|
||||
'body': 'math.max(${0:x}, ${1:...})'
|
||||
'math.min':
|
||||
'prefix': 'min',
|
||||
'body': 'math.min(${0:x}, ${1:...})'
|
||||
'math.pi':
|
||||
'prefix': 'pi',
|
||||
'body': 'math.pi'
|
||||
'math.pow':
|
||||
'prefix': 'pow',
|
||||
'body': 'math.pow(${0:x}, ${1:y})'
|
||||
'math.rad':
|
||||
'prefix': 'rad',
|
||||
'body': 'math.rad(${0:x})'
|
||||
'math.random':
|
||||
'prefix': 'random',
|
||||
'body': 'math.random(${0:m}, ${1:n})'
|
||||
'math.randomseed':
|
||||
'prefix': 'randomseed',
|
||||
'body': 'math.randomseed(${0:x})'
|
||||
'math.sin':
|
||||
'prefix': 'sin',
|
||||
'body': 'math.sin(${0:x})'
|
||||
'math.sinh':
|
||||
'prefix': 'sinh',
|
||||
'body': 'math.sinh(${0:x})'
|
||||
'math.sqrt':
|
||||
'prefix': 'sqrt',
|
||||
'body': 'math.sqrt(${0:x})'
|
||||
'math.tan':
|
||||
'prefix': 'tan',
|
||||
'body': 'math.tan(${0:x})'
|
||||
'math.tanh':
|
||||
'prefix': 'tanh',
|
||||
'body': 'math.tanh(${0:x})'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue