Godot::Quaternion
Inherits Struct < Value < Object
4-element structure that represents a 3D rotation with hypercomplex numbers.
Constants
IDENTITY = Quaternion.new(0.0_f32, 0.0_f32, 0.0_f32, 1.0_f32)
Constructors
new(x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, z : Float32 = 0.0_f32, w : Float32 = 1.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