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