Vector & quaternion refactoring