Vec2 constructor

const Vec2(
  1. double x,
  2. double y
)

Implementation

const Vec2(this.x, this.y);