openrndr
Toggle table of contents
0.4.5-dev.17.uncommitted+81afe70
common
Platform filter
common
Switch theme
Search in API
openrndr
openrndr-math
/
org.openrndr.math
/
BooleanVector3
/
toVector3
to
Vector3
fun
toVector3
(
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
)
:
Vector3
(
source
)
Casts to
Vector3
.