struct

Godot::Vector4

Inherits Struct < Value < Object

4-element structure that can be used to represent 4D coordinates or homogeneous vectors.

Constants

ONE = Vector4.new(1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32)
ZERO = Vector4.new(0.0_f32, 0.0_f32, 0.0_f32, 0.0_f32)

Constructors

new(x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, z : Float32 = 0.0_f32, w : Float32 = 0.0_f32)
Source
new(x : Number, y : Number, z : Number, w : Number)
Source
new(pointer : Pointer(Void))
Source

Instance methods

to_s(io : IO) : Void

Same as #inspect(io).

Source
w=(w : Float32)
Source
x=(x : Float32)
Source
y=(y : Float32)
Source
z=(z : Float32)
Source