Vector used for 2D math using integer coordinates. 2-element structure that can be used to represent positions in 2D space or any other pair of numeric values. It uses integer coordinates and is therefore preferable to [Vector2] when exact precision is required. [b]Note:[/b] In a boolean context, a Vector2i will evaluate to [code]false[/code] if it's equal to [code]Vector2i(0, 0)[/code]. Otherwise, a Vector2i will always evaluate to [code]true[/code]. https://docs.godotengine.org/en/latest/tutorials/math/index.html Constructs a new [Vector2i] from the given [code]x[/code] and [code]y[/code]. Constructs a new [Vector2i] from [Vector2]. The floating point coordinates will be truncated. Returns a new vector with all components in absolute values (i.e. positive). Returns the ratio of [member x] to [member y]. Returns the vector with each component set to one or negative one, depending on the signs of the components. The vector's X component. Also accessible by using the index position [code][0][/code]. The vector's Y component. Also accessible by using the index position [code][1][/code]. Enumerated value for the X axis. Enumerated value for the Y axis. Zero vector. One vector. Left unit vector. Right unit vector. Up unit vector. Down unit vector.