toVector2

fun toVector2(x: Double = if (this.x) 1.0 else 0.0, y: Double = if (this.y) 1.0 else 0.0): Vector2(source)

Casts to Vector2.