add optional block to set_mag
Merge branch 'master' of https://github.com/monkstone/vecmath