scale static method

Vec2D scale(
  1. Vec2D o,
  2. Vec2D a,
  3. double scale
)

Implementation

static Vec2D scale(Vec2D o, Vec2D a, double scale) {
  o.x = a.x * scale;
  o.y = a.y * scale;
  return o;
}