openrndr
Toggle table of contents
0.5.0-dev.0+70e7b47
common
Platform filter
common
Switch theme
Search in API
openrndr
openrndr-math
/
org.openrndr.math
/
BooleanVector2
/
toVector2
to
Vector2
fun
toVector2
(
x
:
Double
=
if (this.x) 1.0 else 0.0
,
y
:
Double
=
if (this.y) 1.0 else 0.0
)
:
Vector2
(
source
)
Casts to
Vector2
.