hytopia 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/server.matrix2._constructor_.md +89 -0
- package/docs/server.matrix2.add.md +55 -0
- package/docs/server.matrix2.adjoint.md +19 -0
- package/docs/server.matrix2.clone.md +19 -0
- package/docs/server.matrix2.copy.md +55 -0
- package/docs/server.matrix2.create.md +19 -0
- package/docs/server.matrix2.determinant.md +13 -0
- package/docs/server.matrix2.equals.md +55 -0
- package/docs/server.matrix2.exactequals.md +55 -0
- package/docs/server.matrix2.frobeniusnormal.md +13 -0
- package/docs/server.matrix2.fromrotation.md +55 -0
- package/docs/server.matrix2.fromscaling.md +55 -0
- package/docs/server.matrix2.identity.md +19 -0
- package/docs/server.matrix2.invert.md +19 -0
- package/docs/server.matrix2.md +383 -0
- package/docs/server.matrix2.multiply.md +55 -0
- package/docs/server.matrix2.multiplyscalar.md +55 -0
- package/docs/server.matrix2.rotate.md +55 -0
- package/docs/server.matrix2.subtract.md +55 -0
- package/docs/server.matrix2.tostring.md +19 -0
- package/docs/server.matrix2.transpose.md +19 -0
- package/docs/server.matrix3._constructor_.md +159 -0
- package/docs/server.matrix3.add.md +55 -0
- package/docs/server.matrix3.adjoint.md +19 -0
- package/docs/server.matrix3.clone.md +19 -0
- package/docs/server.matrix3.copy.md +55 -0
- package/docs/server.matrix3.create.md +19 -0
- package/docs/server.matrix3.determinant.md +13 -0
- package/docs/server.matrix3.equals.md +55 -0
- package/docs/server.matrix3.exactequals.md +55 -0
- package/docs/server.matrix3.frobeniusnormal.md +13 -0
- package/docs/server.matrix3.frommatrix4.md +55 -0
- package/docs/server.matrix3.fromquaternion.md +55 -0
- package/docs/server.matrix3.fromrotation.md +55 -0
- package/docs/server.matrix3.fromscaling.md +55 -0
- package/docs/server.matrix3.fromtranslation.md +55 -0
- package/docs/server.matrix3.identity.md +19 -0
- package/docs/server.matrix3.invert.md +19 -0
- package/docs/server.matrix3.md +445 -0
- package/docs/server.matrix3.multiply.md +55 -0
- package/docs/server.matrix3.multiplyscalar.md +55 -0
- package/docs/server.matrix3.projection.md +71 -0
- package/docs/server.matrix3.rotate.md +55 -0
- package/docs/server.matrix3.subtract.md +55 -0
- package/docs/server.matrix3.tostring.md +19 -0
- package/docs/server.matrix3.transpose.md +19 -0
- package/docs/server.matrix4._constructor_.md +257 -0
- package/docs/server.matrix4.add.md +55 -0
- package/docs/server.matrix4.adjoint.md +19 -0
- package/docs/server.matrix4.clone.md +19 -0
- package/docs/server.matrix4.copy.md +55 -0
- package/docs/server.matrix4.create.md +19 -0
- package/docs/server.matrix4.determinant.md +13 -0
- package/docs/server.matrix4.equals.md +55 -0
- package/docs/server.matrix4.exactequals.md +55 -0
- package/docs/server.matrix4.frobeniusnormal.md +13 -0
- package/docs/server.matrix4.fromquaternion.md +55 -0
- package/docs/server.matrix4.fromrotation.md +71 -0
- package/docs/server.matrix4.fromrotationtranslation.md +71 -0
- package/docs/server.matrix4.fromrotationtranslationscale.md +87 -0
- package/docs/server.matrix4.fromrotationtranslationscaleorigin.md +103 -0
- package/docs/server.matrix4.fromscaling.md +55 -0
- package/docs/server.matrix4.fromtranslation.md +55 -0
- package/docs/server.matrix4.fromxrotation.md +55 -0
- package/docs/server.matrix4.fromyrotation.md +55 -0
- package/docs/server.matrix4.fromzrotation.md +55 -0
- package/docs/server.matrix4.frustrum.md +135 -0
- package/docs/server.matrix4.identity.md +19 -0
- package/docs/server.matrix4.invert.md +19 -0
- package/docs/server.matrix4.lookat.md +87 -0
- package/docs/server.matrix4.md +651 -0
- package/docs/server.matrix4.multiply.md +55 -0
- package/docs/server.matrix4.multiplyscalar.md +55 -0
- package/docs/server.matrix4.orthogonal.md +135 -0
- package/docs/server.matrix4.perspective.md +103 -0
- package/docs/server.matrix4.rotate.md +71 -0
- package/docs/server.matrix4.rotatex.md +55 -0
- package/docs/server.matrix4.rotatey.md +55 -0
- package/docs/server.matrix4.rotatez.md +55 -0
- package/docs/server.matrix4.scale.md +55 -0
- package/docs/server.matrix4.subtract.md +55 -0
- package/docs/server.matrix4.targetto.md +87 -0
- package/docs/server.matrix4.tostring.md +19 -0
- package/docs/server.matrix4.translate.md +55 -0
- package/docs/server.matrix4.transpose.md +19 -0
- package/docs/server.md +66 -0
- package/docs/server.quaternion.identity.md +19 -0
- package/docs/server.quaternion.length.md +13 -0
- package/docs/server.quaternion.logarithm.md +19 -0
- package/docs/server.quaternion.magnitude.md +1 -1
- package/docs/server.quaternion.md +114 -2
- package/docs/server.quaternion.power.md +55 -0
- package/docs/server.quaternion.randomize.md +19 -0
- package/docs/server.quaternion.setaxisangle.md +71 -0
- package/docs/server.quaternion.squaredlength.md +13 -0
- package/docs/server.quaternion.squaredmagnitude.md +1 -1
- package/docs/server.vector2._constructor_.md +61 -0
- package/docs/server.vector2.add.md +55 -0
- package/docs/server.vector2.angle.md +55 -0
- package/docs/server.vector2.ceil.md +19 -0
- package/docs/server.vector2.clone.md +19 -0
- package/docs/server.vector2.copy.md +55 -0
- package/docs/server.vector2.create.md +19 -0
- package/docs/server.vector2.cross.md +55 -0
- package/docs/server.vector2.distance.md +55 -0
- package/docs/server.vector2.divide.md +55 -0
- package/docs/server.vector2.dot.md +55 -0
- package/docs/server.vector2.equals.md +55 -0
- package/docs/server.vector2.exactequals.md +55 -0
- package/docs/server.vector2.floor.md +19 -0
- package/docs/server.vector2.invert.md +19 -0
- package/docs/server.vector2.length.md +13 -0
- package/docs/server.vector2.lerp.md +71 -0
- package/docs/server.vector2.magnitude.md +13 -0
- package/docs/server.vector2.max.md +55 -0
- package/docs/server.vector2.md +657 -0
- package/docs/server.vector2.min.md +55 -0
- package/docs/server.vector2.multiply.md +55 -0
- package/docs/server.vector2.negate.md +19 -0
- package/docs/server.vector2.normalize.md +19 -0
- package/docs/server.vector2.randomize.md +55 -0
- package/docs/server.vector2.rotate.md +71 -0
- package/docs/server.vector2.round.md +19 -0
- package/docs/server.vector2.scale.md +55 -0
- package/docs/server.vector2.scaleandadd.md +71 -0
- package/docs/server.vector2.squaredlength.md +13 -0
- package/docs/server.vector2.squaredmagnitude.md +13 -0
- package/docs/server.vector2.subtract.md +55 -0
- package/docs/server.vector2.tostring.md +19 -0
- package/docs/server.vector2.transformmatrix2.md +55 -0
- package/docs/server.vector2.transformmatrix3.md +55 -0
- package/docs/server.vector2.transformmatrix4.md +55 -0
- package/docs/server.vector2.x.md +15 -0
- package/docs/server.vector2.y.md +15 -0
- package/docs/server.vector2.zero.md +19 -0
- package/docs/server.vector2boolean.md +72 -0
- package/docs/server.vector2boolean.x.md +11 -0
- package/docs/server.vector2boolean.y.md +11 -0
- package/docs/server.vector2like.md +72 -0
- package/docs/server.vector2like.x.md +11 -0
- package/docs/server.vector2like.y.md +11 -0
- package/docs/server.vector3.create.md +19 -0
- package/docs/server.vector3.length.md +13 -0
- package/docs/server.vector3.magnitude.md +1 -1
- package/docs/server.vector3.md +144 -2
- package/docs/server.vector3.randomize.md +55 -0
- package/docs/server.vector3.scaleandadd.md +71 -0
- package/docs/server.vector3.squaredlength.md +13 -0
- package/docs/server.vector3.squaredmagnitude.md +1 -1
- package/docs/server.vector3.transformmatrix3.md +55 -0
- package/docs/server.vector3.transformmatrix4.md +55 -0
- package/docs/server.vector3.transformquaternion.md +55 -0
- package/docs/server.vector3.zero.md +19 -0
- package/examples/zombies-fps/classes/GameManager.ts +5 -3
- package/package.json +1 -1
- package/server.api.json +14293 -7345
- package/server.d.ts +917 -4
- package/server.js +89 -89
- package/examples/ai-agents/bun.lockb +0 -0
- package/examples/big-world/bun.lockb +0 -0
- package/examples/block-entity/bun.lockb +0 -0
- package/examples/child-entity/bun.lockb +0 -0
- package/examples/child-entity/package-lock.json +0 -30
- package/examples/custom-ui/bun.lockb +0 -0
- package/examples/entity-controller/bun.lockb +0 -0
- package/examples/entity-spawn/bun.lockb +0 -0
- package/examples/hole-in-wall-game/bun.lockb +0 -0
- package/examples/lighting/bun.lockb +0 -0
- package/examples/pathfinding/bun.lockb +0 -0
- package/examples/payload-game/bun.lockb +0 -0
- package/examples/wall-dodge-game/bun.lockb +0 -0
- package/examples/zombies-fps/bun.lockb +0 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromQuaternion](./server.matrix4.fromquaternion.md)
|
4
|
+
|
5
|
+
## Matrix4.fromQuaternion() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a `Quaternion` object.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromQuaternion(quaternion: Quaternion): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
quaternion
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Quaternion](./server.quaternion.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The `Quaternion` object to create the `Matrix4` instance from.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Matrix4](./server.matrix4.md)
|
53
|
+
|
54
|
+
A new `Matrix4` instance.
|
55
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromRotation](./server.matrix4.fromrotation.md)
|
4
|
+
|
5
|
+
## Matrix4.fromRotation() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from an angle and axis.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromRotation(angle: number, axis: Vector3): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
angle
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The angle in radians to rotate the matrix by.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
<tr><td>
|
50
|
+
|
51
|
+
axis
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
[Vector3](./server.vector3.md)
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The axis to rotate the matrix around.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
</tbody></table>
|
66
|
+
**Returns:**
|
67
|
+
|
68
|
+
[Matrix4](./server.matrix4.md)
|
69
|
+
|
70
|
+
A new `Matrix4` instance.
|
71
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromRotationTranslation](./server.matrix4.fromrotationtranslation.md)
|
4
|
+
|
5
|
+
## Matrix4.fromRotationTranslation() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a rotation and translation.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromRotationTranslation(rotation: Quaternion, translation: Vector3): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
rotation
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Quaternion](./server.quaternion.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The rotation of the matrix.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
<tr><td>
|
50
|
+
|
51
|
+
translation
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
[Vector3](./server.vector3.md)
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The translation of the matrix.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
</tbody></table>
|
66
|
+
**Returns:**
|
67
|
+
|
68
|
+
[Matrix4](./server.matrix4.md)
|
69
|
+
|
70
|
+
A new `Matrix4` instance.
|
71
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromRotationTranslationScale](./server.matrix4.fromrotationtranslationscale.md)
|
4
|
+
|
5
|
+
## Matrix4.fromRotationTranslationScale() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a rotation, translation, and scale.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromRotationTranslationScale(rotation: Quaternion, translation: Vector3, scale: Vector3): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
rotation
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Quaternion](./server.quaternion.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The rotation of the matrix.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
<tr><td>
|
50
|
+
|
51
|
+
translation
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
[Vector3](./server.vector3.md)
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The translation of the matrix.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
<tr><td>
|
66
|
+
|
67
|
+
scale
|
68
|
+
|
69
|
+
|
70
|
+
</td><td>
|
71
|
+
|
72
|
+
[Vector3](./server.vector3.md)
|
73
|
+
|
74
|
+
|
75
|
+
</td><td>
|
76
|
+
|
77
|
+
The scale of the matrix.
|
78
|
+
|
79
|
+
|
80
|
+
</td></tr>
|
81
|
+
</tbody></table>
|
82
|
+
**Returns:**
|
83
|
+
|
84
|
+
[Matrix4](./server.matrix4.md)
|
85
|
+
|
86
|
+
A new `Matrix4` instance.
|
87
|
+
|
@@ -0,0 +1,103 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromRotationTranslationScaleOrigin](./server.matrix4.fromrotationtranslationscaleorigin.md)
|
4
|
+
|
5
|
+
## Matrix4.fromRotationTranslationScaleOrigin() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a rotation, translation, scale, and origin.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromRotationTranslationScaleOrigin(rotation: Quaternion, translation: Vector3, scale: Vector3, origin: Vector3): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
rotation
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Quaternion](./server.quaternion.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The rotation of the matrix.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
<tr><td>
|
50
|
+
|
51
|
+
translation
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
[Vector3](./server.vector3.md)
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The translation of the matrix.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
<tr><td>
|
66
|
+
|
67
|
+
scale
|
68
|
+
|
69
|
+
|
70
|
+
</td><td>
|
71
|
+
|
72
|
+
[Vector3](./server.vector3.md)
|
73
|
+
|
74
|
+
|
75
|
+
</td><td>
|
76
|
+
|
77
|
+
The scale of the matrix.
|
78
|
+
|
79
|
+
|
80
|
+
</td></tr>
|
81
|
+
<tr><td>
|
82
|
+
|
83
|
+
origin
|
84
|
+
|
85
|
+
|
86
|
+
</td><td>
|
87
|
+
|
88
|
+
[Vector3](./server.vector3.md)
|
89
|
+
|
90
|
+
|
91
|
+
</td><td>
|
92
|
+
|
93
|
+
The origin of the matrix.
|
94
|
+
|
95
|
+
|
96
|
+
</td></tr>
|
97
|
+
</tbody></table>
|
98
|
+
**Returns:**
|
99
|
+
|
100
|
+
[Matrix4](./server.matrix4.md)
|
101
|
+
|
102
|
+
A new `Matrix4` instance.
|
103
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromScaling](./server.matrix4.fromscaling.md)
|
4
|
+
|
5
|
+
## Matrix4.fromScaling() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a scale of identity matrix.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromScaling(scale: Vector3): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
scale
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Vector3](./server.vector3.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The scale of the matrix.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Matrix4](./server.matrix4.md)
|
53
|
+
|
54
|
+
A new `Matrix4` instance.
|
55
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromTranslation](./server.matrix4.fromtranslation.md)
|
4
|
+
|
5
|
+
## Matrix4.fromTranslation() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a translation of identity matrix.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromTranslation(translation: Vector3): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
translation
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Vector3](./server.vector3.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The translation of the matrix.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Matrix4](./server.matrix4.md)
|
53
|
+
|
54
|
+
A new `Matrix4` instance.
|
55
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromXRotation](./server.matrix4.fromxrotation.md)
|
4
|
+
|
5
|
+
## Matrix4.fromXRotation() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from an x-rotation of identity matrix.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromXRotation(angle: number): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
angle
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The angle in radians to rotate the matrix by.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Matrix4](./server.matrix4.md)
|
53
|
+
|
54
|
+
A new `Matrix4` instance.
|
55
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromYRotation](./server.matrix4.fromyrotation.md)
|
4
|
+
|
5
|
+
## Matrix4.fromYRotation() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a y-rotation of identity matrix.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromYRotation(angle: number): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
angle
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The angle in radians to rotate the matrix by.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Matrix4](./server.matrix4.md)
|
53
|
+
|
54
|
+
A new `Matrix4` instance.
|
55
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Matrix4](./server.matrix4.md) > [fromZRotation](./server.matrix4.fromzrotation.md)
|
4
|
+
|
5
|
+
## Matrix4.fromZRotation() method
|
6
|
+
|
7
|
+
Creates a new `Matrix4` instance from a z-rotation of identity matrix.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static fromZRotation(angle: number): Matrix4;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
angle
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The angle in radians to rotate the matrix by.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Matrix4](./server.matrix4.md)
|
53
|
+
|
54
|
+
A new `Matrix4` instance.
|
55
|
+
|