Search
Preparing search index...
The search index is not available
@blinkk/degu
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
mathf
Quaternion
Class Quaternion
Hierarchy
Quaternion
Index
Constructors
constructor
Properties
w
x
y
z
Accessors
I
IDENTITY
J
K
ONE
ZERO
Methods
add
add
Euler
angle
Axis
clone
conjugate
copy
dot
invert
length
length
Squared
lerp
magnitude
multiply
normalize
rotateX
rotateY
rotateZ
scale
set
slerp
slerp
Euler
slerp
Euler
Vector
subtract
to
Fixed
add
from
Array
from
Euler
from
Euler
Vector
from
Rotation
MatrixIV
multiply
rotate
To
subtract
to
Euler
Vector
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
add
(
q
:
Quaternion
|
Vector
)
:
Quaternion
Parameters
q:
Quaternion
|
Vector
Returns
Quaternion
add
Euler
add
Euler
(
x
:
number
, y
:
number
, z
:
number
)
:
Quaternion
Parameters
x:
number
y:
number
z:
number
Returns
Quaternion
angle
Axis
angle
Axis
(
rad
:
number
, axis
:
Vector
)
:
this
Parameters
rad:
number
axis:
Vector
Returns
this
clone
clone
(
)
:
Quaternion
Returns
Quaternion
conjugate
conjugate
(
)
:
Quaternion
Returns
Quaternion
copy
copy
(
q
:
Quaternion
)
:
Quaternion
Parameters
q:
Quaternion
Returns
Quaternion
dot
dot
(
q
:
Quaternion
|
Vector
)
:
number
Parameters
q:
Quaternion
|
Vector
Returns
number
The dot product of this quarternion and the provided quaternion.
invert
invert
(
)
:
Quaternion
Returns
Quaternion
length
length
(
)
:
number
Returns
number
length
Squared
length
Squared
(
)
:
number
Returns
number
lerp
lerp
(
q
:
Quaternion
|
Vector
, progress
:
number
)
:
this
Parameters
q:
Quaternion
|
Vector
progress:
number
Returns
this
magnitude
magnitude
(
)
:
number
Returns
number
multiply
multiply
(
a
:
Quaternion
)
:
Quaternion
Parameters
a:
Quaternion
Returns
Quaternion
normalize
normalize
(
)
:
Quaternion
Returns
Quaternion
rotateX
rotateX
(
degree
:
number
)
:
Quaternion
Parameters
degree:
number
Returns
Quaternion
rotateY
rotateY
(
degree
:
number
)
:
Quaternion
Parameters
degree:
number
Returns
Quaternion
rotateZ
rotateZ
(
degree
:
number
)
:
Quaternion
Parameters
degree:
number
Returns
Quaternion
scale
scale
(
scalar
:
number
)
:
Quaternion
Parameters
scalar:
number
Returns
Quaternion
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
slerp
(
q
:
Quaternion
|
Vector
, progress
:
number
)
:
Quaternion
Parameters
q:
Quaternion
|
Vector
progress:
number
Returns
Quaternion
slerp
Euler
slerp
Euler
(
x
:
number
, y
:
number
, z
:
number
, progress
:
number
)
:
Quaternion
Parameters
x:
number
y:
number
z:
number
progress:
number
Returns
Quaternion
slerp
Euler
Vector
slerp
Euler
Vector
(
v
:
Vector
, progress
:
number
)
:
Quaternion
Parameters
v:
Vector
progress:
number
Returns
Quaternion
subtract
subtract
(
q
:
Quaternion
|
Vector
)
:
Quaternion
Parameters
q:
Quaternion
|
Vector
Returns
Quaternion
to
Fixed
to
Fixed
(
numberOfDecimals
:
number
)
:
Quaternion
Parameters
numberOfDecimals:
number
Returns
Quaternion
Static
add
add
(
q1
:
Quaternion
|
Vector
, q2
:
Quaternion
|
Vector
)
:
Quaternion
Parameters
q1:
Quaternion
|
Vector
q2:
Quaternion
|
Vector
Returns
Quaternion
Static
from
Array
from
Array
(
values
:
Array
<
number
>
)
:
Quaternion
Parameters
values:
Array
<
number
>
Returns
Quaternion
Static
from
Euler
from
Euler
(
x
:
number
, y
:
number
, z
:
number
)
:
Quaternion
Parameters
x:
number
y:
number
z:
number
Returns
Quaternion
Static
from
Euler
Vector
from
Euler
Vector
(
v
:
Vector
)
:
Quaternion
Parameters
v:
Vector
Returns
Quaternion
Static
from
Rotation
MatrixIV
from
Rotation
MatrixIV
(
m
:
MatrixIV
)
:
Quaternion
Parameters
m:
MatrixIV
Returns
Quaternion
Static
multiply
multiply
(
a
:
Quaternion
, b
:
Quaternion
)
:
Quaternion
Parameters
a:
Quaternion
b:
Quaternion
Returns
Quaternion
Static
rotate
To
rotate
To
(
source
:
Vector
, target
:
Vector
, up
:
Vector
)
:
Quaternion
Parameters
source:
Vector
target:
Vector
up:
Vector
Returns
Quaternion
Static
subtract
subtract
(
q1
:
Quaternion
|
Vector
, q2
:
Quaternion
|
Vector
)
:
Quaternion
Parameters
q1:
Quaternion
|
Vector
q2:
Quaternion
|
Vector
Returns
Quaternion
Static
to
Euler
Vector
to
Euler
Vector
(
q
:
Quaternion
)
:
Vector
Parameters
q:
Quaternion
Returns
Vector
Globals
"index"
angular
arrayf
components
datguif
debug
dom
ease
func
interpolate
is
iterable-
iterator
loader
map
mathf
objectf
pseudo-
3d-
canvas
raf
setf
shaders
string
threef
time
ui
x
Quaternion
constructor
w
x
y
z
I
IDENTITY
J
K
ONE
ZERO
add
add
Euler
angle
Axis
clone
conjugate
copy
dot
invert
length
length
Squared
lerp
magnitude
multiply
normalize
rotateX
rotateY
rotateZ
scale
set
slerp
slerp
Euler
slerp
Euler
Vector
subtract
to
Fixed
add
from
Array
from
Euler
from
Euler
Vector
from
Rotation
MatrixIV
multiply
rotate
To
subtract
to
Euler
Vector