Vector constructor

Vector({
  1. double x = 0.0,
  2. double y = 0.0,
  3. double z = 0.0,
  4. double w = 0.0,
})

Implementation

Vector({double x: 0.0, double y: 0.0, double z: 0.0, double w: 0.0})
    : this.x = x,
      this.y = y,
      this.z = z,
      this.w = w;