Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Quaternion

Hierarchy

  • Quaternion

Index

Constructors

constructor

  • new Quaternion(x?: number, y?: number, z?: number, w?: number): Quaternion
  • Parameters

    • Default value x: number = 0
    • Default value y: number = 0
    • Default value z: number = 0
    • Default value w: number = 1

    Returns Quaternion

Properties

w

w: number

x

x: number

y

y: number

z

z: number

Accessors

Static I

I:

Static IDENTITY

IDENTITY:

Static J

J:

Static K

K:

Static ONE

ONE:

Static ZERO

ZERO:

Methods

add

addEuler

  • addEuler(x: number, y: number, z: number): Quaternion

angleAxis

  • angleAxis(rad: number, axis: Vector): this

clone

conjugate

copy

dot

invert

length

  • length(): number

lengthSquared

  • lengthSquared(): number

lerp

magnitude

  • magnitude(): number

multiply

normalize

rotateX

rotateY

rotateZ

scale

set

  • set(x?: number, y?: number, z?: number, w?: number): this
  • Parameters

    • Default value x: number = 0
    • Default value y: number = 0
    • Default value z: number = 0
    • Default value w: number = 1

    Returns this

slerp

slerpEuler

  • slerpEuler(x: number, y: number, z: number, progress: number): Quaternion

slerpEulerVector

subtract

toFixed

Static add

Static fromArray

Static fromEuler

  • fromEuler(x: number, y: number, z: number): Quaternion

Static fromEulerVector

Static fromRotationMatrixIV

Static multiply

Static rotateTo

Static subtract

Static toEulerVector