WakeUpOnFire's method makes sense to me.
I need to invest in calipers.
One then also needs to know the position of the cog in mm from the center line.
Sheldon Brown has these figures for different cogs, and, perhaps, different hubs.
I'll do a little research and see if I can find a link to the info.