set

operator fun set(x: Double, y: Double): Vec2

Sets a vector to equal an x/y value and returns this.

Return

The current instance vector.

Parameters

x

x value.

y

y value.


fun set(v1: Vec2): Vec2

Sets a vector to another vector and returns this.

Return

The current instance vector.

Parameters

v1

Vector to set x/y values to.