Class: Quat
new Quat(Number, Number, Number, Number)
Parameters:
| Name |
Type |
Description |
Number |
|
x |
Number |
|
y |
Number |
|
z |
Number |
|
w |
- Source:
Members
-
<static> this.w
-
Properties:
| Name |
Type |
Description |
Number |
|
w |
- Source:
-
<static> this.x
-
Properties:
| Name |
Type |
Description |
Number |
|
x |
- Source:
-
<static> this.y
-
Properties:
| Name |
Type |
Description |
Number |
|
y |
- Source:
-
<static> this.z
-
Properties:
| Name |
Type |
Description |
Number |
|
z |
- Source:
Methods
-
<static> calculateW()
-
- Source:
Returns:
this
-
<static> clone()
-
- Source:
Returns:
Quat
-
<static> conjugate()
-
- Source:
Returns:
this
-
<static> copy(Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
- Source:
Returns:
this
-
<static> div(Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
- Source:
Returns:
this
-
<static> dot(Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
- Source:
Returns:
Number
-
<static> fromArray(Array)
-
Parameters:
| Name |
Type |
Description |
Array |
|
array |
- Source:
Returns:
this
-
<static> fromAxisAngle(Vec3, Number)
-
Parameters:
| Name |
Type |
Description |
Vec3 |
|
axis |
Number |
|
angle |
- Source:
Returns:
this
-
<static> fromJSON(Object)
-
Parameters:
| Name |
Type |
Description |
Object |
|
json |
- Source:
Returns:
this
-
<static> fromMat3(Mat3)
-
Parameters:
| Name |
Type |
Description |
Mat3 |
|
m |
- Source:
Returns:
this
-
<static> fromMat4(Mat4)
-
Parameters:
| Name |
Type |
Description |
Mat4 |
|
m |
- Source:
Returns:
this
-
<static> fromVec3s(Vec3, Vec3)
-
Parameters:
| Name |
Type |
Description |
Vec3 |
|
u |
Vec3 |
|
v |
- Source:
Returns:
this
-
<static> inverse()
-
- Source:
Returns:
this
-
<static> inverseQuat(Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
- Source:
Returns:
this
-
<static> length()
-
- Source:
Returns:
Number
-
<static> lengthSq()
-
- Source:
Returns:
Number
-
<static> lerp(Quat, Number)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
Number |
|
x |
- Source:
Returns:
this
-
<static> lookRotation(Vec3, Vec3)
-
Parameters:
| Name |
Type |
Description |
Vec3 |
|
forward |
Vec3 |
|
up |
- Source:
Returns:
this
-
<static> mul(Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
- Source:
Returns:
this
-
<static> nlerp(Quat, Number)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
Number |
|
x |
- Source:
Returns:
this
-
<static> normalize()
-
- Source:
Returns:
this
-
<static> qdiv(Quat, Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
a |
Quat |
|
b |
- Source:
Returns:
this
-
<static> qdot(Quat, Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
a |
Quat |
|
b |
- Source:
Returns:
Number
-
<static> qlerp(Quat, Quat, Number)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
a |
Quat |
|
b |
Number |
|
x |
- Source:
Returns:
this
-
<static> qmul(Quat, Quat)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
a |
Quat |
|
b |
- Source:
Returns:
this
-
<static> qnlerp(Quat, Quat, Number)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
a |
Quat |
|
b |
Number |
|
x |
- Source:
Returns:
this
-
<static> qslerp(Quat, Quat, Number)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
a |
Quat |
|
b |
Number |
|
x |
- Source:
Returns:
this
-
<static> rotate(Number, Number, Number)
-
Parameters:
| Name |
Type |
Description |
Number |
|
x |
Number |
|
y |
Number |
|
z |
- Source:
Returns:
this
-
<static> rotateX(Number)
-
Parameters:
| Name |
Type |
Description |
Number |
|
angle |
- Source:
Returns:
this
-
<static> rotateY(Number)
-
Parameters:
| Name |
Type |
Description |
Number |
|
angle |
- Source:
Returns:
this
-
<static> rotateZ(Number)
-
Parameters:
| Name |
Type |
Description |
Number |
|
angle |
- Source:
Returns:
this
-
<static> set(Number, Number, Number, Number)
-
Parameters:
| Name |
Type |
Description |
Number |
|
x |
Number |
|
y |
Number |
|
z |
Number |
|
w |
- Source:
Returns:
this
-
<static> slerp(Quat, Number)
-
Parameters:
| Name |
Type |
Description |
Quat |
|
other |
Number |
|
x |
- Source:
Returns:
this
-
<static> toArray()
-
- Source:
Returns:
Object
-
<static> toJSON()
-
- Source:
Returns:
Object
-
<static> toString()
-
- Source:
Returns:
String