struct

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)
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