Skip to main content

vec4b

Class

A vector containing 4 boolean values.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Index

Properties

Methods

Constructors

Constructor

new vec4b(x, y, z, w): vec4b

Parameters

ParameterType
xboolean
yboolean
zboolean
wboolean

Returns

vec4b

Properties

a

a: boolean

Alternate name for the w component.


b

b: boolean

Alternate name for the z component.


g

g: boolean

Alternate name for the y component.


r

r: boolean

Alternate name for the x component.


w

w: boolean

w component of the vec4b.


x

x: boolean

x component of the vec4b.


y

y: boolean

y component of the vec4b.


z

z: boolean

z component of the vec4b.

Methods

toString()

toString(): string

Returns a string representation of the vector.

Returns

string