toIntVector2

fun toIntVector2(x: Int = if (this.x) 1 else 0, y: Int = if (this.y) 1 else 0): IntVector2(source)

Casts to IntVector2.