Your issue is that the - unary operator doesn't work with floats, I came across that issue recently, so your code would need to be:
PHP Code:
VecNegated[0] = 0.0 - Vec[0];
VecNegated[1] = 0.0 - Vec[1];
VecNegated[2] = 0.0 - Vec[2];
__________________