vec4b
ClassA vector containing 4 boolean values.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Index
Constructors
Constructor
new vec4b(
x,y,z,w):vec4b
Parameters
| Parameter | Type |
|---|---|
x | boolean |
y | boolean |
z | boolean |
w | boolean |
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