struct

CrystalEdge::Quaternion

Inherits Struct < Value < Object

Constructors

new(x : Float64, y : Float64, z : Float64, w : Float64)
Source

Class methods

from_euler(euler : Vector3)

Converts euler angles to Quaternion Angles are in radians!

Source
lerp(qstart, qend : Quaternion, percent : Float64)
Source
nlerp(qstart, qend : Quaternion, percent : Float64)
Source
slerp(qstart, qend : Quaternion, percent : Float64)
Source
zero

Zero vector

Source

Instance methods

!=(other : Quaternion)
Source
*(other : Quaternion)
Source
*(other : Vector3)
Source
*(other : Float64)
Source
**(other : Quaternion)
Source
+(other : Quaternion)
Source
-(other : Quaternion)
Source
==(other : self)
Source
angle
Source
angle=(v : Float64)
Source
axis
Source
axis=(v : Vector3)
Source
clone
Source
conjugate
Source
dot(other : Quaternion)

Dot product

Source
inverse
Source
magnitude
Source
norm
Source
normalize
Source
normalize!
Source
pure?
Source
to_euler
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
unit?
Source
values
Source
w=(w : Float64)
Source
x=(x : Float64)
Source
y=(y : Float64)
Source
z=(z : Float64)
Source