struct
Godot::Vector2i
- Godot::Vector2i
- Struct
- Value
- Object
Overview
2-element structure that can be used to represent 2D grid coordinates or discrete positions with 32-bit integers.
Defined in:
libgodot/types.crConstant Summary
-
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
Instance Method Summary
- #*(scalar : Number) : Vector2i
- #*(other : Vector2i) : Vector2i
- #+(other : Vector2i) : Vector2i
- #-(other : Vector2i) : Vector2i
- #- : Vector2i
- #/(scalar : Number) : Vector2i
- #/(other : Vector2i) : Vector2i
- #abs : Vector2i
- #clamp(min : Vector2i, max : Vector2i) : Vector2i
- #max(other : Vector2i) : Vector2i
- #min(other : Vector2i) : Vector2i
- #sign : Vector2i
-
#to_s(io : IO) : Void
Same as
#inspect(io). - #to_v2 : Vector2
- #x : Int32
- #x=(x : Int32)
- #y : Int32
- #y=(y : Int32)