@minecraft/math 1.4.2 → 1.5.1
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/api-report/math.api.md +8 -0
- package/dist/minecraft-math.js +504 -319
- package/dist/minecraft-math.js.map +3 -3
- package/lib/general/clamp.js +5 -1
- package/lib/general/clamp.js.map +1 -1
- package/lib/general/index.js +17 -1
- package/lib/general/index.js.map +1 -1
- package/lib/index.js +18 -2
- package/lib/index.js.map +1 -1
- package/lib/index.test.js +6 -4
- package/lib/index.test.js.map +1 -1
- package/lib/types/math-beta.d.ts +56 -0
- package/lib/types/math-public.d.ts +56 -0
- package/lib/types/math.d.ts +56 -0
- package/lib/vector3/coreHelpers.js +81 -18
- package/lib/vector3/coreHelpers.js.map +1 -1
- package/lib/vector3/coreHelpers.test.js +137 -111
- package/lib/vector3/coreHelpers.test.js.map +1 -1
- package/lib/vector3/index.js +18 -2
- package/lib/vector3/index.js.map +1 -1
- package/lib/vector3/vectorWrapper.js +59 -18
- package/lib/vector3/vectorWrapper.js.map +1 -1
- package/lib/vector3/vectorWrapper.test.js +138 -108
- package/lib/vector3/vectorWrapper.test.js.map +1 -1
- package/package.json +3 -3
package/api-report/math.api.md
CHANGED
|
@@ -86,7 +86,11 @@ export class Vector3Builder implements Vector3 {
|
|
|
86
86
|
floor(): this;
|
|
87
87
|
lerp(vec: Vector3, t: number): this;
|
|
88
88
|
magnitude(): number;
|
|
89
|
+
multiply(vec: Vector3): this;
|
|
89
90
|
normalize(): this;
|
|
91
|
+
rotateX(a: number): this;
|
|
92
|
+
rotateY(a: number): this;
|
|
93
|
+
rotateZ(a: number): this;
|
|
90
94
|
scale(val: number): this;
|
|
91
95
|
slerp(vec: Vector3, t: number): this;
|
|
92
96
|
subtract(v: Vector3): this;
|
|
@@ -116,7 +120,11 @@ export class Vector3Utils {
|
|
|
116
120
|
static floor(v: Vector3): Vector3;
|
|
117
121
|
static lerp(a: Vector3, b: Vector3, t: number): Vector3;
|
|
118
122
|
static magnitude(v: Vector3): number;
|
|
123
|
+
static multiply(a: Vector3, b: Vector3): Vector3;
|
|
119
124
|
static normalize(v: Vector3): Vector3;
|
|
125
|
+
static rotateX(v: Vector3, a: number): Vector3;
|
|
126
|
+
static rotateY(v: Vector3, a: number): Vector3;
|
|
127
|
+
static rotateZ(v: Vector3, a: number): Vector3;
|
|
120
128
|
static scale(v1: Vector3, scale: number): Vector3;
|
|
121
129
|
static slerp(a: Vector3, b: Vector3, t: number): Vector3;
|
|
122
130
|
static subtract(v1: Vector3, v2: Vector3): Vector3;
|