Refactoring of Vector2D.