struct
Godot::Vector4
- Godot::Vector4
- Struct
- Value
- Object
Overview
4-element structure that can be used to represent 4D coordinates or homogeneous vectors.
Defined in:
libgodot/types.crConstant Summary
-
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)
- .new(x : Number, y : Number, z : Number, w : Number)
- .new(pointer : Pointer(Void))
Instance Method Summary
-
#to_s(io : IO) : Void
Same as
#inspect(io). - #w : Float32
- #w=(w : Float32)
- #x : Float32
- #x=(x : Float32)
- #y : Float32
- #y=(y : Float32)
- #z : Float32
- #z=(z : Float32)
Constructor Detail
def self.new(x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, z : Float32 = 0.0_f32, w : Float32 = 0.0_f32)
#