@serenityjs/protocol 0.4.2 → 0.4.3-beta-20240814075643
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/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -2245,6 +2245,11 @@ declare class Vector3f extends DataType {
|
|
|
2245
2245
|
* @returns The length of the 3D vector.
|
|
2246
2246
|
*/
|
|
2247
2247
|
length(): number;
|
|
2248
|
+
/**
|
|
2249
|
+
* Calculates the square length of this 3D vector.
|
|
2250
|
+
* @returns the square length of the 3D vector.
|
|
2251
|
+
*/
|
|
2252
|
+
lengthSqrt(): number;
|
|
2248
2253
|
/**
|
|
2249
2254
|
* Normalizes this 3D vector.
|
|
2250
2255
|
* @returns The normalized 3D vector.
|
package/dist/index.js
CHANGED
|
@@ -2981,6 +2981,13 @@ var Vector3f = class _Vector3f extends import_raknet8.DataType {
|
|
|
2981
2981
|
length() {
|
|
2982
2982
|
return Math.hypot(this.x, this.y, this.z);
|
|
2983
2983
|
}
|
|
2984
|
+
/**
|
|
2985
|
+
* Calculates the square length of this 3D vector.
|
|
2986
|
+
* @returns the square length of the 3D vector.
|
|
2987
|
+
*/
|
|
2988
|
+
lengthSqrt() {
|
|
2989
|
+
return this.x * this.x + this.y * this.y + this.z * this.z;
|
|
2990
|
+
}
|
|
2984
2991
|
/**
|
|
2985
2992
|
* Normalizes this 3D vector.
|
|
2986
2993
|
* @returns The normalized 3D vector.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenityjs/protocol",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3-beta-20240814075643",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/SerenityJS/serenity",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"preset": "@serenityjs/jest-presets/jest/node"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@serenityjs/eslint-config": "
|
|
22
|
-
"@serenityjs/jest-presets": "
|
|
23
|
-
"@serenityjs/typescript-config": "
|
|
21
|
+
"@serenityjs/eslint-config": "0.4.3-beta-20240814075643",
|
|
22
|
+
"@serenityjs/jest-presets": "0.4.3-beta-20240814075643",
|
|
23
|
+
"@serenityjs/typescript-config": "0.4.3-beta-20240814075643",
|
|
24
24
|
"@types/jest": "^29.5.12",
|
|
25
25
|
"@types/node": "^20.11.24",
|
|
26
26
|
"jest": "^29.7.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@serenityjs/binarystream": "^2.6.6",
|
|
32
|
-
"@serenityjs/nbt": "
|
|
33
|
-
"@serenityjs/raknet": "
|
|
32
|
+
"@serenityjs/nbt": "0.4.3-beta-20240814075643",
|
|
33
|
+
"@serenityjs/raknet": "0.4.3-beta-20240814075643"
|
|
34
34
|
}
|
|
35
35
|
}
|