openrndr
0.4.5-dev.4.uncommitted+98ebace
common
openrndr-math
/
org.openrndr.math
/
BooleanVector4
/
toVector4
to
Vector4
fun
toVector4
(
x
:
Double
=
if (this.x) 1.0 else 0.0
,
y
:
Double
=
if (this.y) 1.0 else 0.0
,
z
:
Double
=
if (this.z) 1.0 else 0.0
,
w
:
Double
=
if (this.x) 1.0 else 0.0
)
:
Vector4
(
source
)
Casts to
Vector4
.