Vec constructor

Vec(
  1. double x,
  2. double y, [
  3. double z = 0
])

Implementation

Vec(this.x, this.y, [this.z = 0]);