set method

Vector3 set(
  1. double x,
  2. double y, [
  3. double? z
])

Implementation

Vector3 set(double x, double y, [double? z]) {
  z ??= this.z; // sprite.scale.set(x,y)

  this.x = x;
  this.y = y;
  this.z = z;

  return this;
}