struct
Godot::Vector3i
- Godot::Vector3i
- Struct
- Value
- Object
Overview
3-element structure that can be used to represent 3D grid coordinates or discrete voxels with 32-bit integers.
Defined in:
libgodot/types.crConstant Summary
-
BACK =
Vector3i.new(0, 0, 1) -
DOWN =
Vector3i.new(0, -1, 0) -
FORWARD =
Vector3i.new(0, 0, -1) -
LEFT =
Vector3i.new(-1, 0, 0) -
ONE =
Vector3i.new(1, 1, 1) -
RIGHT =
Vector3i.new(1, 0, 0) -
UP =
Vector3i.new(0, 1, 0) -
ZERO =
Vector3i.new(0, 0, 0)
Constructors
- .new(x : Int32 = 0, y : Int32 = 0, z : Int32 = 0)
- .new(x : Number, y : Number, z : Number)
- .new(pointer : Pointer(Void))
Instance Method Summary
- #*(scalar : Number) : Vector3i
- #*(other : Vector3i) : Vector3i
- #+(other : Vector3i) : Vector3i
- #-(other : Vector3i) : Vector3i
- #- : Vector3i
- #/(scalar : Number) : Vector3i
- #/(other : Vector3i) : Vector3i
- #abs : Vector3i
- #clamp(min : Vector3i, max : Vector3i) : Vector3i
- #max(other : Vector3i) : Vector3i
- #min(other : Vector3i) : Vector3i
- #sign : Vector3i
-
#to_s(io : IO) : Void
Same as
#inspect(io). - #to_v3 : Vector3
- #x : Int32
- #x=(x : Int32)
- #y : Int32
- #y=(y : Int32)
- #z : Int32
- #z=(z : Int32)