openrndr
0.4.5-dev.44+1860897
common
openrndr-math
/
org.openrndr.math
/
BooleanVector2
Boolean
Vector2
@
Serializable
@
JvmRecord
data
class
BooleanVector2
(
val
x
:
Boolean
,
val
y
:
Boolean
)
(
source
)
Boolean 2D vector
Members
Constructors
Boolean
Vector2
Link copied to clipboard
constructor
(
x
:
Boolean
,
y
:
Boolean
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
to
Int
Vector2
Link copied to clipboard
fun
toIntVector2
(
x
:
Int
=
if (this.x) 1 else 0
,
y
:
Int
=
if (this.y) 1 else 0
)
:
IntVector2
Casts to
IntVector2
.
to
Vector2
Link copied to clipboard
fun
toVector2
(
x
:
Double
=
if (this.x) 1.0 else 0.0
,
y
:
Double
=
if (this.y) 1.0 else 0.0
)
:
Vector2
Casts to
Vector2
.
Properties
x
Link copied to clipboard
val
x
:
Boolean
xx
Link copied to clipboard
val
xx
:
BooleanVector2
y
Link copied to clipboard
val
y
:
Boolean
yx
Link copied to clipboard
val
yx
:
BooleanVector2
yy
Link copied to clipboard
val
yy
:
BooleanVector2