negate static method

Vec2D negate(
  1. Vec2D result,
  2. Vec2D a
)

Implementation

static Vec2D negate(Vec2D result, Vec2D a) {
  result[0] = -1 * a[0];
  result[1] = -1 * a[1];

  return result;
}