openrndr
0.4.5-dev.4.uncommitted+98ebace
common
openrndr-math
/
org.openrndr.math
/
BooleanVector2
/
toIntVector2
to
Int
Vector2
fun
toIntVector2
(
x
:
Int
=
if (this.x) 1 else 0
,
y
:
Int
=
if (this.y) 1 else 0
)
:
IntVector2
(
source
)
Casts to
IntVector2
.