Refactoring vector class (Vec2)