struct Godot::Vector4i

Overview

4-element integer vector structure.

Defined in:

libgodot/types.cr

Constant Summary

ONE = Vector4i.new(1, 1, 1, 1)
ZERO = Vector4i.new(0, 0, 0, 0)

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32 = 0, y : Int32 = 0, z : Int32 = 0, w : Int32 = 0) #

[View source]
def self.new(x : Number, y : Number, z : Number, w : Number) #

[View source]
def self.new(pointer : Pointer(Void)) #

[View source]

Instance Method Detail

def to_s(io : IO) : Void #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def w : Int32 #

[View source]
def w=(w : Int32) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]
def z : Int32 #

[View source]
def z=(z : Int32) #

[View source]