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)
Sourcenew(x : Number, y : Number, z : Number, w : Number)
Sourcenew(pointer : Pointer(Void))
SourceInstance methods
w=(w : Float32)
Sourcex=(x : Float32)
Sourcey=(y : Float32)
Sourcez=(z : Float32)
Source