convert expression for use with vecmath

since all the math operations in vecmath apply the result to the object they’re called on instead of returning the result, i can’t just replace + with add() and make sure the parentheses are in the right place. How should i convert a mathematical expression to vecmath without using a bunch of temporary variables?