vec2b
On this page

vec2b

Type

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

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

Syntax

interface vec2b {
readonly [vecTag]: readonly ['bool', 2]
[index: number]: bool
x: bool
y: bool
r: bool
g: bool
…
}

The … line stands for 56 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