struct Godot::Vector4i

Overview

4-element integer vector structure.

Defined in:

libgodot/types/vector4.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) #

def self.new(x : Number, y : Number, z : Number, w : Number) #

def self.new(pointer : Pointer(Void)) #

Instance Method Detail

def !=(other : Vector4i) : Bool #

def *(scalar : Number) : Vector4i #

def *(other : Vector4i) : Vector4i #

def +(other : Vector4i) : Vector4i #

def -(other : Vector4i) : Vector4i #

def - : Vector4i #

def /(scalar : Number) : Vector4i #

def /(other : Vector4i) : Vector4i #

def ==(other : Vector4i) : Bool #

def abs : Vector4i #

def clamp(min : Vector4i, max : Vector4i) : Vector4i #

def max(other : Vector4i) : Vector4i #

def min(other : Vector4i) : Vector4i #

def sign : Vector4i #

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

Same as #inspect(io).


def to_v4 : Vector4 #

def w : Int32 #

def w=(w : Int32) #

def x : Int32 #

def x=(x : Int32) #

def y : Int32 #

def y=(y : Int32) #

def z : Int32 #

def z=(z : Int32) #