vec3i
On this page

vec3i

Type

A three-component vector of i32.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

interface vec3i {
readonly [vecTag]: readonly ['i32', 3]
[index: number]: i32
x: i32
y: i32
z: i32
r: i32
g: i32
b: i32
…
}

The … line stands for 234 more members, the swizzles. A swizzle reads two to four components as a new vector of the same element type. The components come in any order and may repeat, and their letters come from one set, xyzw or rgba.

See also

Edit this page Report a problem