struct Godot::Quaternion

Overview

4-element structure that represents a 3D rotation with hypercomplex numbers.

Defined in:

libgodot/types.cr

Constant Summary

IDENTITY = Quaternion.new(0.0_f32, 0.0_f32, 0.0_f32, 1.0_f32)

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, z : Float32 = 0.0_f32, w : Float32 = 1.0_f32) #

[View source]
def self.new(x : Number, y : Number, z : Number, w : Number) #

[View source]
def self.new(pointer : Pointer(Void)) #

[View source]

Instance Method Detail

def to_s(io : IO) : Void #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def w : Float32 #

[View source]
def w=(w : Float32) #

[View source]
def x : Float32 #

[View source]
def x=(x : Float32) #

[View source]
def y : Float32 #

[View source]
def y=(y : Float32) #

[View source]
def z : Float32 #

[View source]
def z=(z : Float32) #

[View source]