tvec3, tvec4: #include <cmath> like a good and proper schoolboy.
linear, test: doc & style tidy.