Quaternion

gdext.builtin.Quaternion
See theQuaternion companion object
final case class Quaternion(x: Float, y: Float, z: Float, w: Float)

Godot's Quaternion: a rotation as (x, y, z, w) (16 bytes).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(s: Float): Quaternion
def *(v: Vector3): Vector3
def /(s: Float): Quaternion
def angleTo(to: Quaternion): Float
def dot(o: Quaternion): Float
def getAngle: Float
def getEuler(order: Long = ...): Vector3
def isEqualApprox(to: Quaternion): Boolean
def isFinite: Boolean
def isNormalized: Boolean
def length: Float
def lengthSquared: Float
def slerp(to: Quaternion, weight: Float): Quaternion
def slerpni(to: Quaternion, weight: Float): Quaternion
def sphericalCubicInterpolate(b: Quaternion, preA: Quaternion, postB: Quaternion, weight: Float): Quaternion
def sphericalCubicInterpolateInTime(b: Quaternion, preA: Quaternion, postB: Quaternion, weight: Float, bT: Float, preAT: Float, postBT: Float): Quaternion
def xform(v: Vector3): Vector3

Rotate v (assumes a normalized quaternion).

Rotate v (assumes a normalized quaternion).

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product