add static method

Vec2D add(
  1. Vec2D o,
  2. Vec2D a,
  3. Vec2D b
)

Implementation

static Vec2D add(Vec2D o, Vec2D a, Vec2D b) {
  o[0] = a[0] + b[0];
  o[1] = a[1] + b[1];
  return o;
}