Create get and set vector2 functions.