added inline functions for doing some simple vector math