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
/
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
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
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
.