struct

Godot::Vector3i

Inherits Struct < Value < Object

3-element structure that can be used to represent 3D grid coordinates or discrete voxels with 32-bit integers.

Constants

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)
Source
new(x : Number, y : Number, z : Number)
Source
new(pointer : Pointer(Void))
Source

Instance methods

*(scalar : Number) : Vector3i
Source
/(scalar : Number) : Vector3i
Source
clamp(min : Vector3i, max : Vector3i) : Vector3i
Source
max(other : Vector3i) : Vector3i
Source
min(other : Vector3i) : Vector3i
Source
sign
Source
to_s(io : IO) : Void

Same as #inspect(io).

Source
to_v3
Source
x=(x : Int32)
Source
y=(y : Int32)
Source
z=(z : Int32)
Source