Break maths code off into separate files.

All 3D maths structs now get a thh and tcc file under inline/ to keep
their decls/defs separate.