offsetY method

Vec offsetY(
  1. int y
)

Returns a new Vec whose coordinates are this one's but with the Y coordinate translated by y.

Implementation

Vec offsetY(int y) => Vec(x, this.y + y);