project_vars function

Project one or more variables onto a subspace