vec3b
On this page

vec3b

Type

A three-component vector of bool: what comparing two vec3 values yields, componentwise.

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

Syntax

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

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