setValues method

  1. @override
Vector4 setValues(
  1. double x,
  2. double y, [
  3. double? z,
  4. double? w,
])
override

Implementation

@override
Vector4 setValues(double x, double y, [double? z, double? w]) {
  z ??= this.z;
  w ??= this.w;

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

  return this;
}