function calculateVector(var a, var b)
{
return(vec_sub(a,b));
}

i think that'll do it