There are two ways to create vectors: Vector2(x, y) will create a vector with components x and y and
Vector2(a) will create a unit vector rotated by an angle of a radians.
(In the JavaScript version, create vectors using Game.vector2(x, y).)
Addition, subtraction, multiplication and division work as expected: