Add getter and setters to vector2.