Skip to content

v4i

Interface representing its WGSL vector type counterpart: vec4i or vec4. A vector with 4 elements of type i32

  • Tuple4<number>.Swizzle4<v2i, v3i, v4i>.vecInfixNotation<v4i>

[n: number]: number

readonly [$internal]: true

packages/typegpu/src/data/wgslTypes.ts:390


readonly [unscopables]: object

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

[key: number]: undefined | boolean

optional [iterator]: boolean

readonly optional [unscopables]: boolean

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

optional at: boolean

optional concat: boolean

optional copyWithin: boolean

optional entries: boolean

optional every: boolean

optional fill: boolean

optional filter: boolean

optional find: boolean

optional findIndex: boolean

optional findLast: boolean

optional findLastIndex: boolean

optional flat: boolean

optional flatMap: boolean

optional forEach: boolean

optional includes: boolean

optional indexOf: boolean

optional join: boolean

optional keys: boolean

optional lastIndexOf: boolean

optional length: boolean

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

optional map: boolean

optional pop: boolean

optional push: boolean

optional reduce: boolean

optional reduceRight: boolean

optional reverse: boolean

optional shift: boolean

optional slice: boolean

optional some: boolean

optional sort: boolean

optional splice: boolean

optional toLocaleString: boolean

optional toReversed: boolean

optional toSorted: boolean

optional toSpliced: boolean

optional toString: boolean

optional unshift: boolean

optional values: boolean

optional with: boolean

Tuple4.[unscopables]

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.symbol.wellknown.d.ts:97


0: number

Tuple4.0


1: number

Tuple4.1


2: number

Tuple4.2


3: number

Tuple4.3


a: number

packages/typegpu/src/data/wgslTypes.ts:400


aa: v2i

Swizzle4.aa


aaa: v3i

Swizzle4.aaa


aaaa: v4i

Swizzle4.aaaa


aaab: v4i

Swizzle4.aaab


aaag: v4i

Swizzle4.aaag


aaar: v4i

Swizzle4.aaar


aab: v3i

Swizzle4.aab


aaba: v4i

Swizzle4.aaba


aabb: v4i

Swizzle4.aabb


aabg: v4i

Swizzle4.aabg


aabr: v4i

Swizzle4.aabr


aag: v3i

Swizzle4.aag


aaga: v4i

Swizzle4.aaga


aagb: v4i

Swizzle4.aagb


aagg: v4i

Swizzle4.aagg


aagr: v4i

Swizzle4.aagr


aar: v3i

Swizzle4.aar


aara: v4i

Swizzle4.aara


aarb: v4i

Swizzle4.aarb


aarg: v4i

Swizzle4.aarg


aarr: v4i

Swizzle4.aarr


ab: v2i

Swizzle4.ab


aba: v3i

Swizzle4.aba


abaa: v4i

Swizzle4.abaa


abab: v4i

Swizzle4.abab


abag: v4i

Swizzle4.abag


abar: v4i

Swizzle4.abar


abb: v3i

Swizzle4.abb


abba: v4i

Swizzle4.abba


abbb: v4i

Swizzle4.abbb


abbg: v4i

Swizzle4.abbg


abbr: v4i

Swizzle4.abbr


abg: v3i

Swizzle4.abg


abga: v4i

Swizzle4.abga


abgb: v4i

Swizzle4.abgb


abgg: v4i

Swizzle4.abgg


abgr: v4i

Swizzle4.abgr


abr: v3i

Swizzle4.abr


abra: v4i

Swizzle4.abra


abrb: v4i

Swizzle4.abrb


abrg: v4i

Swizzle4.abrg


abrr: v4i

Swizzle4.abrr


ag: v2i

Swizzle4.ag


aga: v3i

Swizzle4.aga


agaa: v4i

Swizzle4.agaa


agab: v4i

Swizzle4.agab


agag: v4i

Swizzle4.agag


agar: v4i

Swizzle4.agar


agb: v3i

Swizzle4.agb


agba: v4i

Swizzle4.agba


agbb: v4i

Swizzle4.agbb


agbg: v4i

Swizzle4.agbg


agbr: v4i

Swizzle4.agbr


agg: v3i

Swizzle4.agg


agga: v4i

Swizzle4.agga


aggb: v4i

Swizzle4.aggb


aggg: v4i

Swizzle4.aggg


aggr: v4i

Swizzle4.aggr


agr: v3i

Swizzle4.agr


agra: v4i

Swizzle4.agra


agrb: v4i

Swizzle4.agrb


agrg: v4i

Swizzle4.agrg


agrr: v4i

Swizzle4.agrr


ar: v2i

Swizzle4.ar


ara: v3i

Swizzle4.ara


araa: v4i

Swizzle4.araa


arab: v4i

Swizzle4.arab


arag: v4i

Swizzle4.arag


arar: v4i

Swizzle4.arar


arb: v3i

Swizzle4.arb


arba: v4i

Swizzle4.arba


arbb: v4i

Swizzle4.arbb


arbg: v4i

Swizzle4.arbg


arbr: v4i

Swizzle4.arbr


arg: v3i

Swizzle4.arg


arga: v4i

Swizzle4.arga


argb: v4i

Swizzle4.argb


argg: v4i

Swizzle4.argg


argr: v4i

Swizzle4.argr


arr: v3i

Swizzle4.arr


arra: v4i

Swizzle4.arra


arrb: v4i

Swizzle4.arrb


arrg: v4i

Swizzle4.arrg


arrr: v4i

Swizzle4.arrr


b: number

packages/typegpu/src/data/wgslTypes.ts:399


ba: v2i

Swizzle4.ba


baa: v3i

Swizzle4.baa


baaa: v4i

Swizzle4.baaa


baab: v4i

Swizzle4.baab


baag: v4i

Swizzle4.baag


baar: v4i

Swizzle4.baar


bab: v3i

Swizzle4.bab


baba: v4i

Swizzle4.baba


babb: v4i

Swizzle4.babb


babg: v4i

Swizzle4.babg


babr: v4i

Swizzle4.babr


bag: v3i

Swizzle4.bag


baga: v4i

Swizzle4.baga


bagb: v4i

Swizzle4.bagb


bagg: v4i

Swizzle4.bagg


bagr: v4i

Swizzle4.bagr


bar: v3i

Swizzle4.bar


bara: v4i

Swizzle4.bara


barb: v4i

Swizzle4.barb


barg: v4i

Swizzle4.barg


barr: v4i

Swizzle4.barr


bb: v2i

Swizzle4.bb


bba: v3i

Swizzle4.bba


bbaa: v4i

Swizzle4.bbaa


bbab: v4i

Swizzle4.bbab


bbag: v4i

Swizzle4.bbag


bbar: v4i

Swizzle4.bbar


bbb: v3i

Swizzle4.bbb


bbba: v4i

Swizzle4.bbba


bbbb: v4i

Swizzle4.bbbb


bbbg: v4i

Swizzle4.bbbg


bbbr: v4i

Swizzle4.bbbr


bbg: v3i

Swizzle4.bbg


bbga: v4i

Swizzle4.bbga


bbgb: v4i

Swizzle4.bbgb


bbgg: v4i

Swizzle4.bbgg


bbgr: v4i

Swizzle4.bbgr


bbr: v3i

Swizzle4.bbr


bbra: v4i

Swizzle4.bbra


bbrb: v4i

Swizzle4.bbrb


bbrg: v4i

Swizzle4.bbrg


bbrr: v4i

Swizzle4.bbrr


bg: v2i

Swizzle4.bg


bga: v3i

Swizzle4.bga


bgaa: v4i

Swizzle4.bgaa


bgab: v4i

Swizzle4.bgab


bgag: v4i

Swizzle4.bgag


bgar: v4i

Swizzle4.bgar


bgb: v3i

Swizzle4.bgb


bgba: v4i

Swizzle4.bgba


bgbb: v4i

Swizzle4.bgbb


bgbg: v4i

Swizzle4.bgbg


bgbr: v4i

Swizzle4.bgbr


bgg: v3i

Swizzle4.bgg


bgga: v4i

Swizzle4.bgga


bggb: v4i

Swizzle4.bggb


bggg: v4i

Swizzle4.bggg


bggr: v4i

Swizzle4.bggr


bgr: v3i

Swizzle4.bgr


bgra: v4i

Swizzle4.bgra


bgrb: v4i

Swizzle4.bgrb


bgrg: v4i

Swizzle4.bgrg


bgrr: v4i

Swizzle4.bgrr


br: v2i

Swizzle4.br


bra: v3i

Swizzle4.bra


braa: v4i

Swizzle4.braa


brab: v4i

Swizzle4.brab


brag: v4i

Swizzle4.brag


brar: v4i

Swizzle4.brar


brb: v3i

Swizzle4.brb


brba: v4i

Swizzle4.brba


brbb: v4i

Swizzle4.brbb


brbg: v4i

Swizzle4.brbg


brbr: v4i

Swizzle4.brbr


brg: v3i

Swizzle4.brg


brga: v4i

Swizzle4.brga


brgb: v4i

Swizzle4.brgb


brgg: v4i

Swizzle4.brgg


brgr: v4i

Swizzle4.brgr


brr: v3i

Swizzle4.brr


brra: v4i

Swizzle4.brra


brrb: v4i

Swizzle4.brrb


brrg: v4i

Swizzle4.brrg


brrr: v4i

Swizzle4.brrr


g: number

packages/typegpu/src/data/wgslTypes.ts:398


ga: v2i

Swizzle4.ga


gaa: v3i

Swizzle4.gaa


gaaa: v4i

Swizzle4.gaaa


gaab: v4i

Swizzle4.gaab


gaag: v4i

Swizzle4.gaag


gaar: v4i

Swizzle4.gaar


gab: v3i

Swizzle4.gab


gaba: v4i

Swizzle4.gaba


gabb: v4i

Swizzle4.gabb


gabg: v4i

Swizzle4.gabg


gabr: v4i

Swizzle4.gabr


gag: v3i

Swizzle4.gag


gaga: v4i

Swizzle4.gaga


gagb: v4i

Swizzle4.gagb


gagg: v4i

Swizzle4.gagg


gagr: v4i

Swizzle4.gagr


gar: v3i

Swizzle4.gar


gara: v4i

Swizzle4.gara


garb: v4i

Swizzle4.garb


garg: v4i

Swizzle4.garg


garr: v4i

Swizzle4.garr


gb: v2i

Swizzle4.gb


gba: v3i

Swizzle4.gba


gbaa: v4i

Swizzle4.gbaa


gbab: v4i

Swizzle4.gbab


gbag: v4i

Swizzle4.gbag


gbar: v4i

Swizzle4.gbar


gbb: v3i

Swizzle4.gbb


gbba: v4i

Swizzle4.gbba


gbbb: v4i

Swizzle4.gbbb


gbbg: v4i

Swizzle4.gbbg


gbbr: v4i

Swizzle4.gbbr


gbg: v3i

Swizzle4.gbg


gbga: v4i

Swizzle4.gbga


gbgb: v4i

Swizzle4.gbgb


gbgg: v4i

Swizzle4.gbgg


gbgr: v4i

Swizzle4.gbgr


gbr: v3i

Swizzle4.gbr


gbra: v4i

Swizzle4.gbra


gbrb: v4i

Swizzle4.gbrb


gbrg: v4i

Swizzle4.gbrg


gbrr: v4i

Swizzle4.gbrr


gg: v2i

Swizzle4.gg


gga: v3i

Swizzle4.gga


ggaa: v4i

Swizzle4.ggaa


ggab: v4i

Swizzle4.ggab


ggag: v4i

Swizzle4.ggag


ggar: v4i

Swizzle4.ggar


ggb: v3i

Swizzle4.ggb


ggba: v4i

Swizzle4.ggba


ggbb: v4i

Swizzle4.ggbb


ggbg: v4i

Swizzle4.ggbg


ggbr: v4i

Swizzle4.ggbr


ggg: v3i

Swizzle4.ggg


ggga: v4i

Swizzle4.ggga


gggb: v4i

Swizzle4.gggb


gggg: v4i

Swizzle4.gggg


gggr: v4i

Swizzle4.gggr


ggr: v3i

Swizzle4.ggr


ggra: v4i

Swizzle4.ggra


ggrb: v4i

Swizzle4.ggrb


ggrg: v4i

Swizzle4.ggrg


ggrr: v4i

Swizzle4.ggrr


gr: v2i

Swizzle4.gr


gra: v3i

Swizzle4.gra


graa: v4i

Swizzle4.graa


grab: v4i

Swizzle4.grab


grag: v4i

Swizzle4.grag


grar: v4i

Swizzle4.grar


grb: v3i

Swizzle4.grb


grba: v4i

Swizzle4.grba


grbb: v4i

Swizzle4.grbb


grbg: v4i

Swizzle4.grbg


grbr: v4i

Swizzle4.grbr


grg: v3i

Swizzle4.grg


grga: v4i

Swizzle4.grga


grgb: v4i

Swizzle4.grgb


grgg: v4i

Swizzle4.grgg


grgr: v4i

Swizzle4.grgr


grr: v3i

Swizzle4.grr


grra: v4i

Swizzle4.grra


grrb: v4i

Swizzle4.grrb


grrg: v4i

Swizzle4.grrg


grrr: v4i

Swizzle4.grrr


readonly kind: "vec4i"

use to distinguish between vectors of the same size on the type level

packages/typegpu/src/data/wgslTypes.ts:392


length: 4

Tuple4.length


r: number

packages/typegpu/src/data/wgslTypes.ts:397


ra: v2i

Swizzle4.ra


raa: v3i

Swizzle4.raa


raaa: v4i

Swizzle4.raaa


raab: v4i

Swizzle4.raab


raag: v4i

Swizzle4.raag


raar: v4i

Swizzle4.raar


rab: v3i

Swizzle4.rab


raba: v4i

Swizzle4.raba


rabb: v4i

Swizzle4.rabb


rabg: v4i

Swizzle4.rabg


rabr: v4i

Swizzle4.rabr


rag: v3i

Swizzle4.rag


raga: v4i

Swizzle4.raga


ragb: v4i

Swizzle4.ragb


ragg: v4i

Swizzle4.ragg


ragr: v4i

Swizzle4.ragr


rar: v3i

Swizzle4.rar


rara: v4i

Swizzle4.rara


rarb: v4i

Swizzle4.rarb


rarg: v4i

Swizzle4.rarg


rarr: v4i

Swizzle4.rarr


rb: v2i

Swizzle4.rb


rba: v3i

Swizzle4.rba


rbaa: v4i

Swizzle4.rbaa


rbab: v4i

Swizzle4.rbab


rbag: v4i

Swizzle4.rbag


rbar: v4i

Swizzle4.rbar


rbb: v3i

Swizzle4.rbb


rbba: v4i

Swizzle4.rbba


rbbb: v4i

Swizzle4.rbbb


rbbg: v4i

Swizzle4.rbbg


rbbr: v4i

Swizzle4.rbbr


rbg: v3i

Swizzle4.rbg


rbga: v4i

Swizzle4.rbga


rbgb: v4i

Swizzle4.rbgb


rbgg: v4i

Swizzle4.rbgg


rbgr: v4i

Swizzle4.rbgr


rbr: v3i

Swizzle4.rbr


rbra: v4i

Swizzle4.rbra


rbrb: v4i

Swizzle4.rbrb


rbrg: v4i

Swizzle4.rbrg


rbrr: v4i

Swizzle4.rbrr


rg: v2i

Swizzle4.rg


rga: v3i

Swizzle4.rga


rgaa: v4i

Swizzle4.rgaa


rgab: v4i

Swizzle4.rgab


rgag: v4i

Swizzle4.rgag


rgar: v4i

Swizzle4.rgar


rgb: v3i

Swizzle4.rgb


rgba: v4i

Swizzle4.rgba


rgbb: v4i

Swizzle4.rgbb


rgbg: v4i

Swizzle4.rgbg


rgbr: v4i

Swizzle4.rgbr


rgg: v3i

Swizzle4.rgg


rgga: v4i

Swizzle4.rgga


rggb: v4i

Swizzle4.rggb


rggg: v4i

Swizzle4.rggg


rggr: v4i

Swizzle4.rggr


rgr: v3i

Swizzle4.rgr


rgra: v4i

Swizzle4.rgra


rgrb: v4i

Swizzle4.rgrb


rgrg: v4i

Swizzle4.rgrg


rgrr: v4i

Swizzle4.rgrr


rr: v2i

Swizzle4.rr


rra: v3i

Swizzle4.rra


rraa: v4i

Swizzle4.rraa


rrab: v4i

Swizzle4.rrab


rrag: v4i

Swizzle4.rrag


rrar: v4i

Swizzle4.rrar


rrb: v3i

Swizzle4.rrb


rrba: v4i

Swizzle4.rrba


rrbb: v4i

Swizzle4.rrbb


rrbg: v4i

Swizzle4.rrbg


rrbr: v4i

Swizzle4.rrbr


rrg: v3i

Swizzle4.rrg


rrga: v4i

Swizzle4.rrga


rrgb: v4i

Swizzle4.rrgb


rrgg: v4i

Swizzle4.rrgg


rrgr: v4i

Swizzle4.rrgr


rrr: v3i

Swizzle4.rrr


rrra: v4i

Swizzle4.rrra


rrrb: v4i

Swizzle4.rrrb


rrrg: v4i

Swizzle4.rrrg


rrrr: v4i

Swizzle4.rrrr


w: number

packages/typegpu/src/data/wgslTypes.ts:396


ww: v2i

Swizzle4.ww


www: v3i

Swizzle4.www


wwww: v4i

Swizzle4.wwww


wwwx: v4i

Swizzle4.wwwx


wwwy: v4i

Swizzle4.wwwy


wwwz: v4i

Swizzle4.wwwz


wwx: v3i

Swizzle4.wwx


wwxw: v4i

Swizzle4.wwxw


wwxx: v4i

Swizzle4.wwxx


wwxy: v4i

Swizzle4.wwxy


wwxz: v4i

Swizzle4.wwxz


wwy: v3i

Swizzle4.wwy


wwyw: v4i

Swizzle4.wwyw


wwyx: v4i

Swizzle4.wwyx


wwyy: v4i

Swizzle4.wwyy


wwyz: v4i

Swizzle4.wwyz


wwz: v3i

Swizzle4.wwz


wwzw: v4i

Swizzle4.wwzw


wwzx: v4i

Swizzle4.wwzx


wwzy: v4i

Swizzle4.wwzy


wwzz: v4i

Swizzle4.wwzz


wx: v2i

Swizzle4.wx


wxw: v3i

Swizzle4.wxw


wxww: v4i

Swizzle4.wxww


wxwx: v4i

Swizzle4.wxwx


wxwy: v4i

Swizzle4.wxwy


wxwz: v4i

Swizzle4.wxwz


wxx: v3i

Swizzle4.wxx


wxxw: v4i

Swizzle4.wxxw


wxxx: v4i

Swizzle4.wxxx


wxxy: v4i

Swizzle4.wxxy


wxxz: v4i

Swizzle4.wxxz


wxy: v3i

Swizzle4.wxy


wxyw: v4i

Swizzle4.wxyw


wxyx: v4i

Swizzle4.wxyx


wxyy: v4i

Swizzle4.wxyy


wxyz: v4i

Swizzle4.wxyz


wxz: v3i

Swizzle4.wxz


wxzw: v4i

Swizzle4.wxzw


wxzx: v4i

Swizzle4.wxzx


wxzy: v4i

Swizzle4.wxzy


wxzz: v4i

Swizzle4.wxzz


wy: v2i

Swizzle4.wy


wyw: v3i

Swizzle4.wyw


wyww: v4i

Swizzle4.wyww


wywx: v4i

Swizzle4.wywx


wywy: v4i

Swizzle4.wywy


wywz: v4i

Swizzle4.wywz


wyx: v3i

Swizzle4.wyx


wyxw: v4i

Swizzle4.wyxw


wyxx: v4i

Swizzle4.wyxx


wyxy: v4i

Swizzle4.wyxy


wyxz: v4i

Swizzle4.wyxz


wyy: v3i

Swizzle4.wyy


wyyw: v4i

Swizzle4.wyyw


wyyx: v4i

Swizzle4.wyyx


wyyy: v4i

Swizzle4.wyyy


wyyz: v4i

Swizzle4.wyyz


wyz: v3i

Swizzle4.wyz


wyzw: v4i

Swizzle4.wyzw


wyzx: v4i

Swizzle4.wyzx


wyzy: v4i

Swizzle4.wyzy


wyzz: v4i

Swizzle4.wyzz


wz: v2i

Swizzle4.wz


wzw: v3i

Swizzle4.wzw


wzww: v4i

Swizzle4.wzww


wzwx: v4i

Swizzle4.wzwx


wzwy: v4i

Swizzle4.wzwy


wzwz: v4i

Swizzle4.wzwz


wzx: v3i

Swizzle4.wzx


wzxw: v4i

Swizzle4.wzxw


wzxx: v4i

Swizzle4.wzxx


wzxy: v4i

Swizzle4.wzxy


wzxz: v4i

Swizzle4.wzxz


wzy: v3i

Swizzle4.wzy


wzyw: v4i

Swizzle4.wzyw


wzyx: v4i

Swizzle4.wzyx


wzyy: v4i

Swizzle4.wzyy


wzyz: v4i

Swizzle4.wzyz


wzz: v3i

Swizzle4.wzz


wzzw: v4i

Swizzle4.wzzw


wzzx: v4i

Swizzle4.wzzx


wzzy: v4i

Swizzle4.wzzy


wzzz: v4i

Swizzle4.wzzz


x: number

packages/typegpu/src/data/wgslTypes.ts:393


xw: v2i

Swizzle4.xw


xww: v3i

Swizzle4.xww


xwww: v4i

Swizzle4.xwww


xwwx: v4i

Swizzle4.xwwx


xwwy: v4i

Swizzle4.xwwy


xwwz: v4i

Swizzle4.xwwz


xwx: v3i

Swizzle4.xwx


xwxw: v4i

Swizzle4.xwxw


xwxx: v4i

Swizzle4.xwxx


xwxy: v4i

Swizzle4.xwxy


xwxz: v4i

Swizzle4.xwxz


xwy: v3i

Swizzle4.xwy


xwyw: v4i

Swizzle4.xwyw


xwyx: v4i

Swizzle4.xwyx


xwyy: v4i

Swizzle4.xwyy


xwyz: v4i

Swizzle4.xwyz


xwz: v3i

Swizzle4.xwz


xwzw: v4i

Swizzle4.xwzw


xwzx: v4i

Swizzle4.xwzx


xwzy: v4i

Swizzle4.xwzy


xwzz: v4i

Swizzle4.xwzz


xx: v2i

Swizzle4.xx


xxw: v3i

Swizzle4.xxw


xxww: v4i

Swizzle4.xxww


xxwx: v4i

Swizzle4.xxwx


xxwy: v4i

Swizzle4.xxwy


xxwz: v4i

Swizzle4.xxwz


xxx: v3i

Swizzle4.xxx


xxxw: v4i

Swizzle4.xxxw


xxxx: v4i

Swizzle4.xxxx


xxxy: v4i

Swizzle4.xxxy


xxxz: v4i

Swizzle4.xxxz


xxy: v3i

Swizzle4.xxy


xxyw: v4i

Swizzle4.xxyw


xxyx: v4i

Swizzle4.xxyx


xxyy: v4i

Swizzle4.xxyy


xxyz: v4i

Swizzle4.xxyz


xxz: v3i

Swizzle4.xxz


xxzw: v4i

Swizzle4.xxzw


xxzx: v4i

Swizzle4.xxzx


xxzy: v4i

Swizzle4.xxzy


xxzz: v4i

Swizzle4.xxzz


xy: v2i

Swizzle4.xy


xyw: v3i

Swizzle4.xyw


xyww: v4i

Swizzle4.xyww


xywx: v4i

Swizzle4.xywx


xywy: v4i

Swizzle4.xywy


xywz: v4i

Swizzle4.xywz


xyx: v3i

Swizzle4.xyx


xyxw: v4i

Swizzle4.xyxw


xyxx: v4i

Swizzle4.xyxx


xyxy: v4i

Swizzle4.xyxy


xyxz: v4i

Swizzle4.xyxz


xyy: v3i

Swizzle4.xyy


xyyw: v4i

Swizzle4.xyyw


xyyx: v4i

Swizzle4.xyyx


xyyy: v4i

Swizzle4.xyyy


xyyz: v4i

Swizzle4.xyyz


xyz: v3i

Swizzle4.xyz


xyzw: v4i

Swizzle4.xyzw


xyzx: v4i

Swizzle4.xyzx


xyzy: v4i

Swizzle4.xyzy


xyzz: v4i

Swizzle4.xyzz


xz: v2i

Swizzle4.xz


xzw: v3i

Swizzle4.xzw


xzww: v4i

Swizzle4.xzww


xzwx: v4i

Swizzle4.xzwx


xzwy: v4i

Swizzle4.xzwy


xzwz: v4i

Swizzle4.xzwz


xzx: v3i

Swizzle4.xzx


xzxw: v4i

Swizzle4.xzxw


xzxx: v4i

Swizzle4.xzxx


xzxy: v4i

Swizzle4.xzxy


xzxz: v4i

Swizzle4.xzxz


xzy: v3i

Swizzle4.xzy


xzyw: v4i

Swizzle4.xzyw


xzyx: v4i

Swizzle4.xzyx


xzyy: v4i

Swizzle4.xzyy


xzyz: v4i

Swizzle4.xzyz


xzz: v3i

Swizzle4.xzz


xzzw: v4i

Swizzle4.xzzw


xzzx: v4i

Swizzle4.xzzx


xzzy: v4i

Swizzle4.xzzy


xzzz: v4i

Swizzle4.xzzz


y: number

packages/typegpu/src/data/wgslTypes.ts:394


yw: v2i

Swizzle4.yw


yww: v3i

Swizzle4.yww


ywww: v4i

Swizzle4.ywww


ywwx: v4i

Swizzle4.ywwx


ywwy: v4i

Swizzle4.ywwy


ywwz: v4i

Swizzle4.ywwz


ywx: v3i

Swizzle4.ywx


ywxw: v4i

Swizzle4.ywxw


ywxx: v4i

Swizzle4.ywxx


ywxy: v4i

Swizzle4.ywxy


ywxz: v4i

Swizzle4.ywxz


ywy: v3i

Swizzle4.ywy


ywyw: v4i

Swizzle4.ywyw


ywyx: v4i

Swizzle4.ywyx


ywyy: v4i

Swizzle4.ywyy


ywyz: v4i

Swizzle4.ywyz


ywz: v3i

Swizzle4.ywz


ywzw: v4i

Swizzle4.ywzw


ywzx: v4i

Swizzle4.ywzx


ywzy: v4i

Swizzle4.ywzy


ywzz: v4i

Swizzle4.ywzz


yx: v2i

Swizzle4.yx


yxw: v3i

Swizzle4.yxw


yxww: v4i

Swizzle4.yxww


yxwx: v4i

Swizzle4.yxwx


yxwy: v4i

Swizzle4.yxwy


yxwz: v4i

Swizzle4.yxwz


yxx: v3i

Swizzle4.yxx


yxxw: v4i

Swizzle4.yxxw


yxxx: v4i

Swizzle4.yxxx


yxxy: v4i

Swizzle4.yxxy


yxxz: v4i

Swizzle4.yxxz


yxy: v3i

Swizzle4.yxy


yxyw: v4i

Swizzle4.yxyw


yxyx: v4i

Swizzle4.yxyx


yxyy: v4i

Swizzle4.yxyy


yxyz: v4i

Swizzle4.yxyz


yxz: v3i

Swizzle4.yxz


yxzw: v4i

Swizzle4.yxzw


yxzx: v4i

Swizzle4.yxzx


yxzy: v4i

Swizzle4.yxzy


yxzz: v4i

Swizzle4.yxzz


yy: v2i

Swizzle4.yy


yyw: v3i

Swizzle4.yyw


yyww: v4i

Swizzle4.yyww


yywx: v4i

Swizzle4.yywx


yywy: v4i

Swizzle4.yywy


yywz: v4i

Swizzle4.yywz


yyx: v3i

Swizzle4.yyx


yyxw: v4i

Swizzle4.yyxw


yyxx: v4i

Swizzle4.yyxx


yyxy: v4i

Swizzle4.yyxy


yyxz: v4i

Swizzle4.yyxz


yyy: v3i

Swizzle4.yyy


yyyw: v4i

Swizzle4.yyyw


yyyx: v4i

Swizzle4.yyyx


yyyy: v4i

Swizzle4.yyyy


yyyz: v4i

Swizzle4.yyyz


yyz: v3i

Swizzle4.yyz


yyzw: v4i

Swizzle4.yyzw


yyzx: v4i

Swizzle4.yyzx


yyzy: v4i

Swizzle4.yyzy


yyzz: v4i

Swizzle4.yyzz


yz: v2i

Swizzle4.yz


yzw: v3i

Swizzle4.yzw


yzww: v4i

Swizzle4.yzww


yzwx: v4i

Swizzle4.yzwx


yzwy: v4i

Swizzle4.yzwy


yzwz: v4i

Swizzle4.yzwz


yzx: v3i

Swizzle4.yzx


yzxw: v4i

Swizzle4.yzxw


yzxx: v4i

Swizzle4.yzxx


yzxy: v4i

Swizzle4.yzxy


yzxz: v4i

Swizzle4.yzxz


yzy: v3i

Swizzle4.yzy


yzyw: v4i

Swizzle4.yzyw


yzyx: v4i

Swizzle4.yzyx


yzyy: v4i

Swizzle4.yzyy


yzyz: v4i

Swizzle4.yzyz


yzz: v3i

Swizzle4.yzz


yzzw: v4i

Swizzle4.yzzw


yzzx: v4i

Swizzle4.yzzx


yzzy: v4i

Swizzle4.yzzy


yzzz: v4i

Swizzle4.yzzz


z: number

packages/typegpu/src/data/wgslTypes.ts:395


zw: v2i

Swizzle4.zw


zww: v3i

Swizzle4.zww


zwww: v4i

Swizzle4.zwww


zwwx: v4i

Swizzle4.zwwx


zwwy: v4i

Swizzle4.zwwy


zwwz: v4i

Swizzle4.zwwz


zwx: v3i

Swizzle4.zwx


zwxw: v4i

Swizzle4.zwxw


zwxx: v4i

Swizzle4.zwxx


zwxy: v4i

Swizzle4.zwxy


zwxz: v4i

Swizzle4.zwxz


zwy: v3i

Swizzle4.zwy


zwyw: v4i

Swizzle4.zwyw


zwyx: v4i

Swizzle4.zwyx


zwyy: v4i

Swizzle4.zwyy


zwyz: v4i

Swizzle4.zwyz


zwz: v3i

Swizzle4.zwz


zwzw: v4i

Swizzle4.zwzw


zwzx: v4i

Swizzle4.zwzx


zwzy: v4i

Swizzle4.zwzy


zwzz: v4i

Swizzle4.zwzz


zx: v2i

Swizzle4.zx


zxw: v3i

Swizzle4.zxw


zxww: v4i

Swizzle4.zxww


zxwx: v4i

Swizzle4.zxwx


zxwy: v4i

Swizzle4.zxwy


zxwz: v4i

Swizzle4.zxwz


zxx: v3i

Swizzle4.zxx


zxxw: v4i

Swizzle4.zxxw


zxxx: v4i

Swizzle4.zxxx


zxxy: v4i

Swizzle4.zxxy


zxxz: v4i

Swizzle4.zxxz


zxy: v3i

Swizzle4.zxy


zxyw: v4i

Swizzle4.zxyw


zxyx: v4i

Swizzle4.zxyx


zxyy: v4i

Swizzle4.zxyy


zxyz: v4i

Swizzle4.zxyz


zxz: v3i

Swizzle4.zxz


zxzw: v4i

Swizzle4.zxzw


zxzx: v4i

Swizzle4.zxzx


zxzy: v4i

Swizzle4.zxzy


zxzz: v4i

Swizzle4.zxzz


zy: v2i

Swizzle4.zy


zyw: v3i

Swizzle4.zyw


zyww: v4i

Swizzle4.zyww


zywx: v4i

Swizzle4.zywx


zywy: v4i

Swizzle4.zywy


zywz: v4i

Swizzle4.zywz


zyx: v3i

Swizzle4.zyx


zyxw: v4i

Swizzle4.zyxw


zyxx: v4i

Swizzle4.zyxx


zyxy: v4i

Swizzle4.zyxy


zyxz: v4i

Swizzle4.zyxz


zyy: v3i

Swizzle4.zyy


zyyw: v4i

Swizzle4.zyyw


zyyx: v4i

Swizzle4.zyyx


zyyy: v4i

Swizzle4.zyyy


zyyz: v4i

Swizzle4.zyyz


zyz: v3i

Swizzle4.zyz


zyzw: v4i

Swizzle4.zyzw


zyzx: v4i

Swizzle4.zyzx


zyzy: v4i

Swizzle4.zyzy


zyzz: v4i

Swizzle4.zyzz


zz: v2i

Swizzle4.zz


zzw: v3i

Swizzle4.zzw


zzww: v4i

Swizzle4.zzww


zzwx: v4i

Swizzle4.zzwx


zzwy: v4i

Swizzle4.zzwy


zzwz: v4i

Swizzle4.zzwz


zzx: v3i

Swizzle4.zzx


zzxw: v4i

Swizzle4.zzxw


zzxx: v4i

Swizzle4.zzxx


zzxy: v4i

Swizzle4.zzxy


zzxz: v4i

Swizzle4.zzxz


zzy: v3i

Swizzle4.zzy


zzyw: v4i

Swizzle4.zzyw


zzyx: v4i

Swizzle4.zzyx


zzyy: v4i

Swizzle4.zzyy


zzyz: v4i

Swizzle4.zzyz


zzz: v3i

Swizzle4.zzz


zzzw: v4i

Swizzle4.zzzw


zzzx: v4i

Swizzle4.zzzx


zzzy: v4i

Swizzle4.zzzy


zzzz: v4i

Swizzle4.zzzz

[iterator](): ArrayIterator<number>

Iterator

ArrayIterator<number>

Tuple4.[iterator]

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:78


[operatorMinus](lhs, rhs): v4i

number | v4i

number | v4i

v4i

vecInfixNotation.[operatorMinus]

packages/typegpu/src/data/wgslTypes.ts:67


[operatorPercent](lhs, rhs): v4i

number | v4i

number | v4i

v4i

vecInfixNotation.[operatorPercent]

packages/typegpu/src/data/wgslTypes.ts:70


[operatorPlus](lhs, rhs): v4i

number | v4i

number | v4i

v4i

vecInfixNotation.[operatorPlus]

packages/typegpu/src/data/wgslTypes.ts:66


[operatorSlash](lhs, rhs): v4i

number | v4i

number | v4i

v4i

vecInfixNotation.[operatorSlash]

packages/typegpu/src/data/wgslTypes.ts:69


[operatorStar](lhs, rhs): v4i

number | v4i | matBase

number | v4i | matBase

v4i

vecInfixNotation.[operatorStar]

packages/typegpu/src/data/wgslTypes.ts:68


add(other): v4i

number | v4i

v4i

vecInfixNotation.add

packages/typegpu/src/data/wgslTypes.ts:60


at(index): undefined | number

Returns the item located at the specified index.

number

The zero-based index of the desired code unit. A negative index will count back from the last item.

undefined | number

Tuple4.at

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2022.array.d.ts:24


concat(…items): number[]

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

ConcatArray<number>[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple4.concat

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1353

concat(…items): number[]

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

…(number | ConcatArray<number>)[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple4.concat

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1359


copyWithin(target, start, end?): this

Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

number

If target is negative, it is treated as length+target where length is the length of the array.

number

If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

number

If not specified, length of the this object is used as its default value.

this

Tuple4.copyWithin

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:62


div(other): v4i

number | v4i

v4i

vecInfixNotation.div

packages/typegpu/src/data/wgslTypes.ts:63


entries(): ArrayIterator<[number, number]>

Returns an iterable of key, value pairs for every entry in the array

ArrayIterator<[number, number]>

Tuple4.entries

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:83


every<S>(predicate, thisArg?): this is S[]

Determines whether all the members of an array satisfy the specified test.

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

this is S[]

Tuple4.every

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1440

every(predicate, thisArg?): boolean

Determines whether all the members of an array satisfy the specified test.

(value, index, array) => unknown

A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

boolean

Tuple4.every

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1449


fill(value, start?, end?): this

Changes all array elements from start to end index to a static value and returns the modified array

number

value to fill array section with

number

index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

number

index to stop filling the array at. If end is negative, it is treated as length+end.

this

Tuple4.fill

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:51


filter<S>(predicate, thisArg?): S[]

Returns the elements of an array that meet the condition specified in a callback function.

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

S[]

Tuple4.filter

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1476

filter(predicate, thisArg?): number[]

Returns the elements of an array that meet the condition specified in a callback function.

(value, index, array) => unknown

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

number[]

Tuple4.filter

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1482


find<S>(predicate, thisArg?): undefined | S

Returns the value of the first element in the array where predicate is true, and undefined otherwise.

S extends number

(value, index, obj) => value is S

find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

undefined | S

Tuple4.find

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:29

find(predicate, thisArg?): undefined | number

(value, index, obj) => unknown

any

undefined | number

Tuple4.find

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:30


findIndex(predicate, thisArg?): number

Returns the index of the first element in the array where predicate is true, and -1 otherwise.

(value, index, obj) => unknown

find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

number

Tuple4.findIndex

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:41


findLast<S>(predicate, thisArg?): undefined | S

Returns the value of the last element in the array where predicate is true, and undefined otherwise.

S extends number

(value, index, array) => value is S

findLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

undefined | S

Tuple4.findLast

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:29

findLast(predicate, thisArg?): undefined | number

(value, index, array) => unknown

any

undefined | number

Tuple4.findLast

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:30


findLastIndex(predicate, thisArg?): number

Returns the index of the last element in the array where predicate is true, and -1 otherwise.

(value, index, array) => unknown

findLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

number

Tuple4.findLastIndex

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:41


flat<A, D>(this, depth?): FlatArray<A, D>[]

Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.

A

D extends number = 1

A

D

The maximum recursion depth

FlatArray<A, D>[]

Tuple4.flat

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2019.array.d.ts:75


flatMap<U, This>(callback, thisArg?): U[]

Calls a defined callback function on each element of an array. Then, flattens the result into a new array. This is identical to a map followed by flat with depth 1.

U

This = undefined

(this, value, index, array) => U | readonly U[]

A function that accepts up to three arguments. The flatMap method calls the callback function one time for each element in the array.

This

An object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple4.flatMap

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2019.array.d.ts:64


forEach(callbackfn, thisArg?): void

Performs the specified action for each element in an array.

(value, index, array) => void

A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

void

Tuple4.forEach

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1464


includes(searchElement, fromIndex?): boolean

Determines whether an array includes a certain element, returning true or false as appropriate.

number

The element to search for.

number

The position in this array at which to begin searching for searchElement.

boolean

Tuple4.includes

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2016.array.include.d.ts:25


indexOf(searchElement, fromIndex?): number

Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

number

Tuple4.indexOf

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1425


join(separator?): string

Adds all the elements of an array into a string, separated by the specified separator string.

string

A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

string

Tuple4.join

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1364


keys(): ArrayIterator<number>

Returns an iterable of keys in the array

ArrayIterator<number>

Tuple4.keys

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:88


lastIndexOf(searchElement, fromIndex?): number

Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

number

Tuple4.lastIndexOf

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1431


map<U>(callbackfn, thisArg?): U[]

Calls a defined callback function on each element of an array, and returns an array that contains the results.

U

(value, index, array) => U

A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple4.map

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1470


mod(other): v4i

number | v4i

v4i

vecInfixNotation.mod

packages/typegpu/src/data/wgslTypes.ts:64


mul(other): v4i

number | v4i | matBase

v4i

vecInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:62


pop(): undefined | number

Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple4.pop

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1342


push(…items): number

Appends new elements to the end of an array, and returns the new length of the array.

number[]

New elements to add to the array.

number

Tuple4.push

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1347


reduce(callbackfn): number

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

number

Tuple4.reduce

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1488

reduce(callbackfn, initialValue): number

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple4.reduce

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1489

reduce<U>(callbackfn, initialValue): U

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

U

Tuple4.reduce

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1495


reduceRight(callbackfn): number

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

number

Tuple4.reduceRight

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1501

reduceRight(callbackfn, initialValue): number

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple4.reduceRight

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1502

reduceRight<U>(callbackfn, initialValue): U

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

U

Tuple4.reduceRight

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1508


reverse(): number[]

Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.

number[]

Tuple4.reverse

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1369


shift(): undefined | number

Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple4.shift

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1374


slice(start?, end?): number[]

Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

number

The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.

number

The end index of the specified portion of the array. This is exclusive of the element at the index ‘end’. If end is undefined, then the slice extends to the end of the array.

number[]

Tuple4.slice

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1384


some(predicate, thisArg?): boolean

Determines whether the specified callback function returns true for any element of an array.

(value, index, array) => unknown

A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

boolean

Tuple4.some

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1458


sort(compareFn?): this

Sorts an array in place. This method mutates the array and returns a reference to the same array.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11,2,22,1].sort((a, b) => a - b)

this

Tuple4.sort

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1395


splice(start, deleteCount?): number[]

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove. Omitting this argument will remove all elements from the start paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.

number[]

An array containing the elements that were deleted.

Tuple4.splice

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1404

splice(start, deleteCount, …items): number[]

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove. If value of this argument is either a negative number, zero, undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.

number[]

Elements to insert into the array in place of the deleted elements.

number[]

An array containing the elements that were deleted.

Tuple4.splice

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1414


sub(other): v4i

number | v4i

v4i

vecInfixNotation.sub

packages/typegpu/src/data/wgslTypes.ts:61


toLocaleString(): string

Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

string

Tuple4.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1337

toLocaleString(locales, options?): string

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

Tuple4.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:64


toReversed(): number[]

Returns a copy of an array with its elements reversed.

number[]

Tuple4.toReversed

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:46


toSorted(compareFn?): number[]

Returns a copy of an array with its elements sorted.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]

number[]

Tuple4.toSorted

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:57


toSpliced(start, deleteCount, …items): number[]

Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

Elements to insert into the copied array in place of the deleted elements.

number[]

The copied array.

Tuple4.toSpliced

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:66

toSpliced(start, deleteCount?): number[]

Copies an array and removes elements while returning the remaining elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

A copy of the original array with the remaining elements.

Tuple4.toSpliced

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:74


toString(): string

Returns a string representation of an array.

string

Tuple4.toString

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1333


unshift(…items): number

Inserts new elements at the start of an array, and returns the new length of the array.

number[]

Elements to insert at the start of the array.

number

Tuple4.unshift

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1419


values(): ArrayIterator<number>

Returns an iterable of values in the array

ArrayIterator<number>

Tuple4.values

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:93


with(index, value): number[]

Copies an array, then overwrites the value at the provided index with the given value. If the index is negative, then it replaces from the end of the array.

number

The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.

number

The value to write into the copied array.

number[]

The copied array with the updated value.

Tuple4.with

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:85