Added set method to Vector2d.