openrndr
0.4.5-dev.4.uncommitted+98ebace
common
openrndr-math
/
org.openrndr.math
/
BooleanVector4
/
toIntVector4
to
Int
Vector4
fun
toIntVector4
(
x
:
Int
=
if (this.x) 1 else 0
,
y
:
Int
=
if (this.y) 1 else 0
,
z
:
Int
=
if (this.z) 1 else 0
,
w
:
Int
=
if (this.w) 1 else 0
)
:
IntVector4
(
source
)
Casts to
IntVector4
.