set

fun set(x: Double, y: Double, z: Double): Vector3

Sets the vector components.

(Upstream also has a z === undefined guard for sprite.scale.set(x, y); in Kotlin set takes three required Doubles, so that guard is dropped.)

Return

A reference to this vector.

Parameters

x

The value of the x component.

y

The value of the y component.

z

The value of the z component.