Skip to content

v3f

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

  • Tuple3<number>.Swizzle3<v2f, v3f, v4f>.vecInfixNotation<v3f>

[n: number]: number

readonly [$internal]: true

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


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/tsover/lib/lib.es2015.symbol.wellknown.d.ts:97


0: number

Tuple3.0


1: number

Tuple3.1


2: number

Tuple3.2


b: number

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


bb: v2f

Swizzle3.bb


bbb: v3f

Swizzle3.bbb


bbbb: v4f

Swizzle3.bbbb


bbbg: v4f

Swizzle3.bbbg


bbbr: v4f

Swizzle3.bbbr


bbg: v3f

Swizzle3.bbg


bbgb: v4f

Swizzle3.bbgb


bbgg: v4f

Swizzle3.bbgg


bbgr: v4f

Swizzle3.bbgr


bbr: v3f

Swizzle3.bbr


bbrb: v4f

Swizzle3.bbrb


bbrg: v4f

Swizzle3.bbrg


bbrr: v4f

Swizzle3.bbrr


bg: v2f

Swizzle3.bg


bgb: v3f

Swizzle3.bgb


bgbb: v4f

Swizzle3.bgbb


bgbg: v4f

Swizzle3.bgbg


bgbr: v4f

Swizzle3.bgbr


bgg: v3f

Swizzle3.bgg


bggb: v4f

Swizzle3.bggb


bggg: v4f

Swizzle3.bggg


bggr: v4f

Swizzle3.bggr


bgr: v3f

Swizzle3.bgr


bgrb: v4f

Swizzle3.bgrb


bgrg: v4f

Swizzle3.bgrg


bgrr: v4f

Swizzle3.bgrr


br: v2f

Swizzle3.br


brb: v3f

Swizzle3.brb


brbb: v4f

Swizzle3.brbb


brbg: v4f

Swizzle3.brbg


brbr: v4f

Swizzle3.brbr


brg: v3f

Swizzle3.brg


brgb: v4f

Swizzle3.brgb


brgg: v4f

Swizzle3.brgg


brgr: v4f

Swizzle3.brgr


brr: v3f

Swizzle3.brr


brrb: v4f

Swizzle3.brrb


brrg: v4f

Swizzle3.brrg


brrr: v4f

Swizzle3.brrr


g: number

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


gb: v2f

Swizzle3.gb


gbb: v3f

Swizzle3.gbb


gbbb: v4f

Swizzle3.gbbb


gbbg: v4f

Swizzle3.gbbg


gbbr: v4f

Swizzle3.gbbr


gbg: v3f

Swizzle3.gbg


gbgb: v4f

Swizzle3.gbgb


gbgg: v4f

Swizzle3.gbgg


gbgr: v4f

Swizzle3.gbgr


gbr: v3f

Swizzle3.gbr


gbrb: v4f

Swizzle3.gbrb


gbrg: v4f

Swizzle3.gbrg


gbrr: v4f

Swizzle3.gbrr


gg: v2f

Swizzle3.gg


ggb: v3f

Swizzle3.ggb


ggbb: v4f

Swizzle3.ggbb


ggbg: v4f

Swizzle3.ggbg


ggbr: v4f

Swizzle3.ggbr


ggg: v3f

Swizzle3.ggg


gggb: v4f

Swizzle3.gggb


gggg: v4f

Swizzle3.gggg


gggr: v4f

Swizzle3.gggr


ggr: v3f

Swizzle3.ggr


ggrb: v4f

Swizzle3.ggrb


ggrg: v4f

Swizzle3.ggrg


ggrr: v4f

Swizzle3.ggrr


gr: v2f

Swizzle3.gr


grb: v3f

Swizzle3.grb


grbb: v4f

Swizzle3.grbb


grbg: v4f

Swizzle3.grbg


grbr: v4f

Swizzle3.grbr


grg: v3f

Swizzle3.grg


grgb: v4f

Swizzle3.grgb


grgg: v4f

Swizzle3.grgg


grgr: v4f

Swizzle3.grgr


grr: v3f

Swizzle3.grr


grrb: v4f

Swizzle3.grrb


grrg: v4f

Swizzle3.grrg


grrr: v4f

Swizzle3.grrr


readonly kind: "vec3f"

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

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


length: 3

Tuple3.length


r: number

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


rb: v2f

Swizzle3.rb


rbb: v3f

Swizzle3.rbb


rbbb: v4f

Swizzle3.rbbb


rbbg: v4f

Swizzle3.rbbg


rbbr: v4f

Swizzle3.rbbr


rbg: v3f

Swizzle3.rbg


rbgb: v4f

Swizzle3.rbgb


rbgg: v4f

Swizzle3.rbgg


rbgr: v4f

Swizzle3.rbgr


rbr: v3f

Swizzle3.rbr


rbrb: v4f

Swizzle3.rbrb


rbrg: v4f

Swizzle3.rbrg


rbrr: v4f

Swizzle3.rbrr


rg: v2f

Swizzle3.rg


rgb: v3f

Swizzle3.rgb


rgbb: v4f

Swizzle3.rgbb


rgbg: v4f

Swizzle3.rgbg


rgbr: v4f

Swizzle3.rgbr


rgg: v3f

Swizzle3.rgg


rggb: v4f

Swizzle3.rggb


rggg: v4f

Swizzle3.rggg


rggr: v4f

Swizzle3.rggr


rgr: v3f

Swizzle3.rgr


rgrb: v4f

Swizzle3.rgrb


rgrg: v4f

Swizzle3.rgrg


rgrr: v4f

Swizzle3.rgrr


rr: v2f

Swizzle3.rr


rrb: v3f

Swizzle3.rrb


rrbb: v4f

Swizzle3.rrbb


rrbg: v4f

Swizzle3.rrbg


rrbr: v4f

Swizzle3.rrbr


rrg: v3f

Swizzle3.rrg


rrgb: v4f

Swizzle3.rrgb


rrgg: v4f

Swizzle3.rrgg


rrgr: v4f

Swizzle3.rrgr


rrr: v3f

Swizzle3.rrr


rrrb: v4f

Swizzle3.rrrb


rrrg: v4f

Swizzle3.rrrg


rrrr: v4f

Swizzle3.rrrr


x: number

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


xx: v2f

Swizzle3.xx


xxx: v3f

Swizzle3.xxx


xxxx: v4f

Swizzle3.xxxx


xxxy: v4f

Swizzle3.xxxy


xxxz: v4f

Swizzle3.xxxz


xxy: v3f

Swizzle3.xxy


xxyx: v4f

Swizzle3.xxyx


xxyy: v4f

Swizzle3.xxyy


xxyz: v4f

Swizzle3.xxyz


xxz: v3f

Swizzle3.xxz


xxzx: v4f

Swizzle3.xxzx


xxzy: v4f

Swizzle3.xxzy


xxzz: v4f

Swizzle3.xxzz


xy: v2f

Swizzle3.xy


xyx: v3f

Swizzle3.xyx


xyxx: v4f

Swizzle3.xyxx


xyxy: v4f

Swizzle3.xyxy


xyxz: v4f

Swizzle3.xyxz


xyy: v3f

Swizzle3.xyy


xyyx: v4f

Swizzle3.xyyx


xyyy: v4f

Swizzle3.xyyy


xyyz: v4f

Swizzle3.xyyz


xyz: v3f

Swizzle3.xyz


xyzx: v4f

Swizzle3.xyzx


xyzy: v4f

Swizzle3.xyzy


xyzz: v4f

Swizzle3.xyzz


xz: v2f

Swizzle3.xz


xzx: v3f

Swizzle3.xzx


xzxx: v4f

Swizzle3.xzxx


xzxy: v4f

Swizzle3.xzxy


xzxz: v4f

Swizzle3.xzxz


xzy: v3f

Swizzle3.xzy


xzyx: v4f

Swizzle3.xzyx


xzyy: v4f

Swizzle3.xzyy


xzyz: v4f

Swizzle3.xzyz


xzz: v3f

Swizzle3.xzz


xzzx: v4f

Swizzle3.xzzx


xzzy: v4f

Swizzle3.xzzy


xzzz: v4f

Swizzle3.xzzz


y: number

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


yx: v2f

Swizzle3.yx


yxx: v3f

Swizzle3.yxx


yxxx: v4f

Swizzle3.yxxx


yxxy: v4f

Swizzle3.yxxy


yxxz: v4f

Swizzle3.yxxz


yxy: v3f

Swizzle3.yxy


yxyx: v4f

Swizzle3.yxyx


yxyy: v4f

Swizzle3.yxyy


yxyz: v4f

Swizzle3.yxyz


yxz: v3f

Swizzle3.yxz


yxzx: v4f

Swizzle3.yxzx


yxzy: v4f

Swizzle3.yxzy


yxzz: v4f

Swizzle3.yxzz


yy: v2f

Swizzle3.yy


yyx: v3f

Swizzle3.yyx


yyxx: v4f

Swizzle3.yyxx


yyxy: v4f

Swizzle3.yyxy


yyxz: v4f

Swizzle3.yyxz


yyy: v3f

Swizzle3.yyy


yyyx: v4f

Swizzle3.yyyx


yyyy: v4f

Swizzle3.yyyy


yyyz: v4f

Swizzle3.yyyz


yyz: v3f

Swizzle3.yyz


yyzx: v4f

Swizzle3.yyzx


yyzy: v4f

Swizzle3.yyzy


yyzz: v4f

Swizzle3.yyzz


yz: v2f

Swizzle3.yz


yzx: v3f

Swizzle3.yzx


yzxx: v4f

Swizzle3.yzxx


yzxy: v4f

Swizzle3.yzxy


yzxz: v4f

Swizzle3.yzxz


yzy: v3f

Swizzle3.yzy


yzyx: v4f

Swizzle3.yzyx


yzyy: v4f

Swizzle3.yzyy


yzyz: v4f

Swizzle3.yzyz


yzz: v3f

Swizzle3.yzz


yzzx: v4f

Swizzle3.yzzx


yzzy: v4f

Swizzle3.yzzy


yzzz: v4f

Swizzle3.yzzz


z: number

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


zx: v2f

Swizzle3.zx


zxx: v3f

Swizzle3.zxx


zxxx: v4f

Swizzle3.zxxx


zxxy: v4f

Swizzle3.zxxy


zxxz: v4f

Swizzle3.zxxz


zxy: v3f

Swizzle3.zxy


zxyx: v4f

Swizzle3.zxyx


zxyy: v4f

Swizzle3.zxyy


zxyz: v4f

Swizzle3.zxyz


zxz: v3f

Swizzle3.zxz


zxzx: v4f

Swizzle3.zxzx


zxzy: v4f

Swizzle3.zxzy


zxzz: v4f

Swizzle3.zxzz


zy: v2f

Swizzle3.zy


zyx: v3f

Swizzle3.zyx


zyxx: v4f

Swizzle3.zyxx


zyxy: v4f

Swizzle3.zyxy


zyxz: v4f

Swizzle3.zyxz


zyy: v3f

Swizzle3.zyy


zyyx: v4f

Swizzle3.zyyx


zyyy: v4f

Swizzle3.zyyy


zyyz: v4f

Swizzle3.zyyz


zyz: v3f

Swizzle3.zyz


zyzx: v4f

Swizzle3.zyzx


zyzy: v4f

Swizzle3.zyzy


zyzz: v4f

Swizzle3.zyzz


zz: v2f

Swizzle3.zz


zzx: v3f

Swizzle3.zzx


zzxx: v4f

Swizzle3.zzxx


zzxy: v4f

Swizzle3.zzxy


zzxz: v4f

Swizzle3.zzxz


zzy: v3f

Swizzle3.zzy


zzyx: v4f

Swizzle3.zzyx


zzyy: v4f

Swizzle3.zzyy


zzyz: v4f

Swizzle3.zzyz


zzz: v3f

Swizzle3.zzz


zzzx: v4f

Swizzle3.zzzx


zzzy: v4f

Swizzle3.zzzy


zzzz: v4f

Swizzle3.zzzz

[iterator](): ArrayIterator<number>

Iterator

ArrayIterator<number>

Tuple3.[iterator]

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


[operatorMinus](lhs, rhs): v3f

number | v3f

number | v3f

v3f

vecInfixNotation.[operatorMinus]

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


[operatorPercent](lhs, rhs): v3f

number | v3f

number | v3f

v3f

vecInfixNotation.[operatorPercent]

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


[operatorPlus](lhs, rhs): v3f

number | v3f

number | v3f

v3f

vecInfixNotation.[operatorPlus]

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


[operatorSlash](lhs, rhs): v3f

number | v3f

number | v3f

v3f

vecInfixNotation.[operatorSlash]

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


[operatorStar](lhs, rhs): v3f

number | v3f | m3x3f

number | v3f | m3x3f

v3f

vecInfixNotation.[operatorStar]

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


add(other): v3f

number | v3f

v3f

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

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

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

Tuple3.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

Tuple3.copyWithin

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


div(other): v3f

number | v3f

v3f

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

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

Tuple3.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

Tuple3.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

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

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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

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

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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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>

Tuple3.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

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

Tuple3.map

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


mod(other): v3f

number | v3f

v3f

vecInfixNotation.mod

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


mul(other): v3f

number | v3f | m3x3f

v3f

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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

Tuple3.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

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

Tuple3.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

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

Tuple3.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

Tuple3.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

Tuple3.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.

Tuple3.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.

Tuple3.splice

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


sub(other): v3f

number | v3f

v3f

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

Tuple3.toLocaleString

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

toLocaleString(locales, options?): string

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

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

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

Tuple3.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.

Tuple3.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.

Tuple3.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

Tuple3.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

Tuple3.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>

Tuple3.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.

Tuple3.with

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