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[0] = a[0] * scale;
  o[1] = a[1] * scale;
  return o;
}