BooleanVector2

@Serializable
data class BooleanVector2(val x: Boolean, val y: Boolean)(source)

Boolean 2D vector

Constructors

Link copied to clipboard
constructor(x: Boolean, y: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val x: Boolean
Link copied to clipboard
Link copied to clipboard
val y: Boolean
Link copied to clipboard
Link copied to clipboard

Functions

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.

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.