struct CrystalEdge::Quaternion
- CrystalEdge::Quaternion
- Struct
- Value
- Object
Defined in:
crystaledge/quaternion.crConstructors
Class Method Summary
-
.from_euler(euler : Vector3)
Converts euler angles to Quaternion Angles are in radians!
- .lerp(qstart, qend : Quaternion, percent : Float64)
- .nlerp(qstart, qend : Quaternion, percent : Float64)
- .slerp(qstart, qend : Quaternion, percent : Float64)
-
.zero
Zero vector
Instance Method Summary
- #!=(other : Quaternion)
- #*(other : Quaternion)
- #*(other : Vector3)
- #*(other : Float64)
- #**(other : Quaternion)
- #+(other : Quaternion)
- #-(other : Quaternion)
- #-
- #==(other : self)
- #angle : Float64
- #angle=(v : Float64)
- #axis
- #axis=(v : Vector3)
- #clone
- #conjugate
-
#dot(other : Quaternion)
Dot product
- #inverse
- #magnitude
- #norm
- #normalize
- #normalize!
- #pure?
- #to_euler
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #unit?
- #values
- #w : Float64
- #w=(w : Float64)
- #x : Float64
- #x=(x : Float64)
- #y : Float64
- #y=(y : Float64)
- #z : Float64
- #z=(z : Float64)
Constructor Detail
Class Method Detail
Converts euler angles to Quaternion Angles are in radians!
Instance Method Detail
def to_s
#
Description copied from class Object
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
.