Skip to content

v3u

Interface representing its WGSL vector type counterpart: vec3u or vec3. A vector with 3 elements of type u32

  • Tuple3<number>.Swizzle3<v2u, v3u, v4u>.vecInfixNotation<v3u>

[n: number]: number

readonly [$internal]: true

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


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

Tuple3.[unscopables]

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


0: number

Tuple3.0


1: number

Tuple3.1


2: number

Tuple3.2


readonly kind: "vec3u"

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

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


length: 3

Tuple3.length


x: number

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


readonly xx: v2u

Swizzle3.xx

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


readonly xxx: v3u

Swizzle3.xxx

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


readonly xxxx: v4u

Swizzle3.xxxx

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


readonly xxxy: v4u

Swizzle3.xxxy

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


readonly xxxz: v4u

Swizzle3.xxxz

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


readonly xxy: v3u

Swizzle3.xxy

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


readonly xxyx: v4u

Swizzle3.xxyx

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


readonly xxyy: v4u

Swizzle3.xxyy

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


readonly xxyz: v4u

Swizzle3.xxyz

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


readonly xxz: v3u

Swizzle3.xxz

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


readonly xxzx: v4u

Swizzle3.xxzx

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


readonly xxzy: v4u

Swizzle3.xxzy

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


readonly xxzz: v4u

Swizzle3.xxzz

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


readonly xy: v2u

Swizzle3.xy

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


readonly xyx: v3u

Swizzle3.xyx

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


readonly xyxx: v4u

Swizzle3.xyxx

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


readonly xyxy: v4u

Swizzle3.xyxy

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


readonly xyxz: v4u

Swizzle3.xyxz

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


readonly xyy: v3u

Swizzle3.xyy

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


readonly xyyx: v4u

Swizzle3.xyyx

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


readonly xyyy: v4u

Swizzle3.xyyy

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


readonly xyyz: v4u

Swizzle3.xyyz

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


readonly xyz: v3u

Swizzle3.xyz

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


readonly xyzx: v4u

Swizzle3.xyzx

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


readonly xyzy: v4u

Swizzle3.xyzy

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


readonly xyzz: v4u

Swizzle3.xyzz

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


readonly xz: v2u

Swizzle3.xz

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


readonly xzx: v3u

Swizzle3.xzx

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


readonly xzxx: v4u

Swizzle3.xzxx

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


readonly xzxy: v4u

Swizzle3.xzxy

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


readonly xzxz: v4u

Swizzle3.xzxz

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


readonly xzy: v3u

Swizzle3.xzy

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


readonly xzyx: v4u

Swizzle3.xzyx

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


readonly xzyy: v4u

Swizzle3.xzyy

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


readonly xzyz: v4u

Swizzle3.xzyz

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


readonly xzz: v3u

Swizzle3.xzz

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


readonly xzzx: v4u

Swizzle3.xzzx

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


readonly xzzy: v4u

Swizzle3.xzzy

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


readonly xzzz: v4u

Swizzle3.xzzz

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


y: number

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


readonly yx: v2u

Swizzle3.yx

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


readonly yxx: v3u

Swizzle3.yxx

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


readonly yxxx: v4u

Swizzle3.yxxx

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


readonly yxxy: v4u

Swizzle3.yxxy

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


readonly yxxz: v4u

Swizzle3.yxxz

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


readonly yxy: v3u

Swizzle3.yxy

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


readonly yxyx: v4u

Swizzle3.yxyx

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


readonly yxyy: v4u

Swizzle3.yxyy

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


readonly yxyz: v4u

Swizzle3.yxyz

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


readonly yxz: v3u

Swizzle3.yxz

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


readonly yxzx: v4u

Swizzle3.yxzx

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


readonly yxzy: v4u

Swizzle3.yxzy

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


readonly yxzz: v4u

Swizzle3.yxzz

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


readonly yy: v2u

Swizzle3.yy

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


readonly yyx: v3u

Swizzle3.yyx

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


readonly yyxx: v4u

Swizzle3.yyxx

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


readonly yyxy: v4u

Swizzle3.yyxy

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


readonly yyxz: v4u

Swizzle3.yyxz

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


readonly yyy: v3u

Swizzle3.yyy

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


readonly yyyx: v4u

Swizzle3.yyyx

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


readonly yyyy: v4u

Swizzle3.yyyy

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


readonly yyyz: v4u

Swizzle3.yyyz

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


readonly yyz: v3u

Swizzle3.yyz

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


readonly yyzx: v4u

Swizzle3.yyzx

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


readonly yyzy: v4u

Swizzle3.yyzy

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


readonly yyzz: v4u

Swizzle3.yyzz

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


readonly yz: v2u

Swizzle3.yz

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


readonly yzx: v3u

Swizzle3.yzx

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


readonly yzxx: v4u

Swizzle3.yzxx

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


readonly yzxy: v4u

Swizzle3.yzxy

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


readonly yzxz: v4u

Swizzle3.yzxz

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


readonly yzy: v3u

Swizzle3.yzy

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


readonly yzyx: v4u

Swizzle3.yzyx

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


readonly yzyy: v4u

Swizzle3.yzyy

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


readonly yzyz: v4u

Swizzle3.yzyz

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


readonly yzz: v3u

Swizzle3.yzz

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


readonly yzzx: v4u

Swizzle3.yzzx

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


readonly yzzy: v4u

Swizzle3.yzzy

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


readonly yzzz: v4u

Swizzle3.yzzz

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


z: number

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


readonly zx: v2u

Swizzle3.zx

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


readonly zxx: v3u

Swizzle3.zxx

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


readonly zxxx: v4u

Swizzle3.zxxx

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


readonly zxxy: v4u

Swizzle3.zxxy

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


readonly zxxz: v4u

Swizzle3.zxxz

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


readonly zxy: v3u

Swizzle3.zxy

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


readonly zxyx: v4u

Swizzle3.zxyx

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


readonly zxyy: v4u

Swizzle3.zxyy

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


readonly zxyz: v4u

Swizzle3.zxyz

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


readonly zxz: v3u

Swizzle3.zxz

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


readonly zxzx: v4u

Swizzle3.zxzx

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


readonly zxzy: v4u

Swizzle3.zxzy

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


readonly zxzz: v4u

Swizzle3.zxzz

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


readonly zy: v2u

Swizzle3.zy

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


readonly zyx: v3u

Swizzle3.zyx

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


readonly zyxx: v4u

Swizzle3.zyxx

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


readonly zyxy: v4u

Swizzle3.zyxy

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


readonly zyxz: v4u

Swizzle3.zyxz

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


readonly zyy: v3u

Swizzle3.zyy

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


readonly zyyx: v4u

Swizzle3.zyyx

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


readonly zyyy: v4u

Swizzle3.zyyy

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


readonly zyyz: v4u

Swizzle3.zyyz

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


readonly zyz: v3u

Swizzle3.zyz

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


readonly zyzx: v4u

Swizzle3.zyzx

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


readonly zyzy: v4u

Swizzle3.zyzy

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


readonly zyzz: v4u

Swizzle3.zyzz

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


readonly zz: v2u

Swizzle3.zz

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


readonly zzx: v3u

Swizzle3.zzx

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


readonly zzxx: v4u

Swizzle3.zzxx

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


readonly zzxy: v4u

Swizzle3.zzxy

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


readonly zzxz: v4u

Swizzle3.zzxz

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


readonly zzy: v3u

Swizzle3.zzy

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


readonly zzyx: v4u

Swizzle3.zzyx

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


readonly zzyy: v4u

Swizzle3.zzyy

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


readonly zzyz: v4u

Swizzle3.zzyz

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


readonly zzz: v3u

Swizzle3.zzz

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


readonly zzzx: v4u

Swizzle3.zzzx

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


readonly zzzy: v4u

Swizzle3.zzzy

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


readonly zzzz: v4u

Swizzle3.zzzz

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

[iterator](): ArrayIterator<number>

Iterator

ArrayIterator<number>

Tuple3.[iterator]

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


add(other): v3u

number

v3u

vecInfixNotation.add

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

add(other): v3u

v3u

v3u

vecInfixNotation.add

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


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

Tuple3.at

node_modules/.pnpm/[email protected]/node_modules/typescript/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[]

Tuple3.concat

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1350

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[]

Tuple3.concat

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1356


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

Tuple3.copyWithin

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


div(other): v3u

number

v3u

vecInfixNotation.div

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

div(other): v3u

v3u

v3u

vecInfixNotation.div

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


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

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

ArrayIterator<[number, number]>

Tuple3.entries

node_modules/.pnpm/[email protected]/node_modules/typescript/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[]

Tuple3.every

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1433

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

Tuple3.every

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1442


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

Tuple3.fill

node_modules/.pnpm/[email protected]/node_modules/typescript/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[]

Tuple3.filter

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1469

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[]

Tuple3.filter

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1475


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

Tuple3.find

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

find(predicate, thisArg?): undefined | number

(value, index, obj) => unknown

any

undefined | number

Tuple3.find

node_modules/.pnpm/[email protected]/node_modules/typescript/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

Tuple3.findIndex

node_modules/.pnpm/[email protected]/node_modules/typescript/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

Tuple3.findLast

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

findLast(predicate, thisArg?): undefined | number

(value, index, array) => unknown

any

undefined | number

Tuple3.findLast

node_modules/.pnpm/[email protected]/node_modules/typescript/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

Tuple3.findLastIndex

node_modules/.pnpm/[email protected]/node_modules/typescript/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>[]

Tuple3.flat

node_modules/.pnpm/[email protected]/node_modules/typescript/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[]

Tuple3.flatMap

node_modules/.pnpm/[email protected]/node_modules/typescript/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

Tuple3.forEach

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1457


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

Tuple3.includes

node_modules/.pnpm/[email protected]/node_modules/typescript/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

Tuple3.indexOf

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1418


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

Tuple3.join

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1361


keys(): ArrayIterator<number>

Returns an iterable of keys in the array

ArrayIterator<number>

Tuple3.keys

node_modules/.pnpm/[email protected]/node_modules/typescript/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

Tuple3.lastIndexOf

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1424


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[]

Tuple3.map

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1463


mul(other): v3u

number

v3u

vecInfixNotation.mul

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

mul(other): v3u

v3u

v3u

vecInfixNotation.mul

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

mul(other): v3u

never

v3u

vecInfixNotation.mul

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


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

Tuple3.pop

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1339


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

Tuple3.push

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1344


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

Tuple3.reduce

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1481

reduce(callbackfn, initialValue): number

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

number

number

Tuple3.reduce

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

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

Tuple3.reduce

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


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

Tuple3.reduceRight

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1494

reduceRight(callbackfn, initialValue): number

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

number

number

Tuple3.reduceRight

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

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

Tuple3.reduceRight

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


reverse(): number[]

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

number[]

Tuple3.reverse

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1366


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

Tuple3.shift

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1371


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[]

Tuple3.slice

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1381


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

Tuple3.some

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1451


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

Tuple3.sort

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1392


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.

number[]

An array containing the elements that were deleted.

Tuple3.splice

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1399

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.

number[]

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

number[]

An array containing the elements that were deleted.

Tuple3.splice

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1407


sub(other): v3u

number

v3u

vecInfixNotation.sub

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

sub(other): v3u

v3u

v3u

vecInfixNotation.sub

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


toLocaleString(): string

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

string

Tuple3.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1334

toLocaleString(locales, options?): string

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

Tuple3.toLocaleString

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


toReversed(): number[]

Returns a copy of an array with its elements reversed.

number[]

Tuple3.toReversed

node_modules/.pnpm/[email protected]/node_modules/typescript/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[]

Tuple3.toSorted

node_modules/.pnpm/[email protected]/node_modules/typescript/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.

Tuple3.toSpliced

node_modules/.pnpm/[email protected]/node_modules/typescript/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.

Tuple3.toSpliced

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


toString(): string

Returns a string representation of an array.

string

Tuple3.toString

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1330


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

Tuple3.unshift

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1412


values(): ArrayIterator<number>

Returns an iterable of values in the array

ArrayIterator<number>

Tuple3.values

node_modules/.pnpm/[email protected]/node_modules/typescript/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.

Tuple3.with

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