Godot::Vector2i
Inherits Struct < Value < Object
2-element structure that can be used to represent 2D grid coordinates or discrete positions with 32-bit integers.
Constants
DOWN = Vector2i.new(0, 1)
LEFT = Vector2i.new(-1, 0)
ONE = Vector2i.new(1, 1)
RIGHT = Vector2i.new(1, 0)
UP = Vector2i.new(0, -1)
ZERO = Vector2i.new(0, 0)
Constructors
new(x : Int32 = 0, y : Int32 = 0)
Sourcenew(x : Number, y : Number)
Sourcenew(pointer : Pointer(Void))
SourceInstance methods
abs
Sourcesign
Sourceto_v2
Sourcex=(x : Int32)
Sourcey=(y : Int32)
Source