@minecraft/math 2.0.0 → 2.1.0
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 +145 -139
- package/dist/minecraft-math.d.ts +18 -0
- package/dist/minecraft-math.js +4 -0
- package/dist/minecraft-math.js.map +2 -2
- package/lib/types/math-beta.d.ts +18 -0
- package/lib/types/math-public.d.ts +18 -0
- package/lib/types/math.d.ts +18 -0
- package/lib/vector3/coreHelpers.js +16 -0
- package/lib/vector3/coreHelpers.js.map +1 -1
- package/package.json +1 -1
package/api-report/math.api.md
CHANGED
|
@@ -1,139 +1,145 @@
|
|
|
1
|
-
## API Report File for "@minecraft/math"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import type { Vector2 } from '@minecraft/server';
|
|
8
|
-
import type { Vector3 } from '@minecraft/server';
|
|
9
|
-
|
|
10
|
-
// @public
|
|
11
|
-
export function clampNumber(val: number, min: number, max: number): number;
|
|
12
|
-
|
|
13
|
-
// @public
|
|
14
|
-
export class Vector2Builder implements Vector2 {
|
|
15
|
-
constructor(vec: Vector2, arg?: never);
|
|
16
|
-
constructor(x: number, y: number);
|
|
17
|
-
// (undocumented)
|
|
18
|
-
toString(options?: {
|
|
19
|
-
decimals?: number;
|
|
20
|
-
delimiter?: string;
|
|
21
|
-
}): string;
|
|
22
|
-
// (undocumented)
|
|
23
|
-
x: number;
|
|
24
|
-
// (undocumented)
|
|
25
|
-
y: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// @public
|
|
29
|
-
export class Vector2Utils {
|
|
30
|
-
static toString(v: Vector2, options?: {
|
|
31
|
-
decimals?: number;
|
|
32
|
-
delimiter?: string;
|
|
33
|
-
}): string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// @public
|
|
37
|
-
export const VECTOR3_BACK: Vector3;
|
|
38
|
-
|
|
39
|
-
// @public
|
|
40
|
-
export const VECTOR3_DOWN: Vector3;
|
|
41
|
-
|
|
42
|
-
// @public
|
|
43
|
-
export const VECTOR3_EAST: Vector3;
|
|
44
|
-
|
|
45
|
-
// @public
|
|
46
|
-
export const VECTOR3_FORWARD: Vector3;
|
|
47
|
-
|
|
48
|
-
// @public
|
|
49
|
-
export const
|
|
50
|
-
|
|
51
|
-
// @public
|
|
52
|
-
export const
|
|
53
|
-
|
|
54
|
-
// @public
|
|
55
|
-
export const
|
|
56
|
-
|
|
57
|
-
// @public
|
|
58
|
-
export const
|
|
59
|
-
|
|
60
|
-
// @public
|
|
61
|
-
export const
|
|
62
|
-
|
|
63
|
-
// @public
|
|
64
|
-
export const
|
|
65
|
-
|
|
66
|
-
// @public
|
|
67
|
-
export const
|
|
68
|
-
|
|
69
|
-
// @public
|
|
70
|
-
export const
|
|
71
|
-
|
|
72
|
-
// @public
|
|
73
|
-
export
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
static
|
|
118
|
-
static
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
static
|
|
123
|
-
static
|
|
124
|
-
static
|
|
125
|
-
static
|
|
126
|
-
static
|
|
127
|
-
static
|
|
128
|
-
static
|
|
129
|
-
static
|
|
130
|
-
static
|
|
131
|
-
static
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1
|
+
## API Report File for "@minecraft/math"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import type { Vector2 } from '@minecraft/server';
|
|
8
|
+
import type { Vector3 } from '@minecraft/server';
|
|
9
|
+
|
|
10
|
+
// @public
|
|
11
|
+
export function clampNumber(val: number, min: number, max: number): number;
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export class Vector2Builder implements Vector2 {
|
|
15
|
+
constructor(vec: Vector2, arg?: never);
|
|
16
|
+
constructor(x: number, y: number);
|
|
17
|
+
// (undocumented)
|
|
18
|
+
toString(options?: {
|
|
19
|
+
decimals?: number;
|
|
20
|
+
delimiter?: string;
|
|
21
|
+
}): string;
|
|
22
|
+
// (undocumented)
|
|
23
|
+
x: number;
|
|
24
|
+
// (undocumented)
|
|
25
|
+
y: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export class Vector2Utils {
|
|
30
|
+
static toString(v: Vector2, options?: {
|
|
31
|
+
decimals?: number;
|
|
32
|
+
delimiter?: string;
|
|
33
|
+
}): string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @public
|
|
37
|
+
export const VECTOR3_BACK: Vector3;
|
|
38
|
+
|
|
39
|
+
// @public
|
|
40
|
+
export const VECTOR3_DOWN: Vector3;
|
|
41
|
+
|
|
42
|
+
// @public
|
|
43
|
+
export const VECTOR3_EAST: Vector3;
|
|
44
|
+
|
|
45
|
+
// @public
|
|
46
|
+
export const VECTOR3_FORWARD: Vector3;
|
|
47
|
+
|
|
48
|
+
// @public
|
|
49
|
+
export const VECTOR3_HALF: Vector3;
|
|
50
|
+
|
|
51
|
+
// @public
|
|
52
|
+
export const VECTOR3_LEFT: Vector3;
|
|
53
|
+
|
|
54
|
+
// @public
|
|
55
|
+
export const VECTOR3_NEGATIVE_ONE: Vector3;
|
|
56
|
+
|
|
57
|
+
// @public
|
|
58
|
+
export const VECTOR3_NORTH: Vector3;
|
|
59
|
+
|
|
60
|
+
// @public
|
|
61
|
+
export const VECTOR3_ONE: Vector3;
|
|
62
|
+
|
|
63
|
+
// @public
|
|
64
|
+
export const VECTOR3_RIGHT: Vector3;
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export const VECTOR3_SOUTH: Vector3;
|
|
68
|
+
|
|
69
|
+
// @public
|
|
70
|
+
export const VECTOR3_UP: Vector3;
|
|
71
|
+
|
|
72
|
+
// @public
|
|
73
|
+
export const VECTOR3_WEST: Vector3;
|
|
74
|
+
|
|
75
|
+
// @public
|
|
76
|
+
export const VECTOR3_ZERO: Vector3;
|
|
77
|
+
|
|
78
|
+
// @public
|
|
79
|
+
export class Vector3Builder implements Vector3 {
|
|
80
|
+
constructor(vec: Vector3, arg?: never, arg2?: never);
|
|
81
|
+
constructor(x: number, y: number, z: number);
|
|
82
|
+
add(v: Vector3): this;
|
|
83
|
+
assign(vec: Vector3): this;
|
|
84
|
+
clamp(limits: {
|
|
85
|
+
min?: Partial<Vector3>;
|
|
86
|
+
max?: Partial<Vector3>;
|
|
87
|
+
}): this;
|
|
88
|
+
cross(vec: Vector3): this;
|
|
89
|
+
distance(vec: Vector3): number;
|
|
90
|
+
dot(vec: Vector3): number;
|
|
91
|
+
equals(v: Vector3): boolean;
|
|
92
|
+
floor(): this;
|
|
93
|
+
lerp(vec: Vector3, t: number): this;
|
|
94
|
+
magnitude(): number;
|
|
95
|
+
multiply(vec: Vector3): this;
|
|
96
|
+
normalize(): this;
|
|
97
|
+
rotateX(a: number): this;
|
|
98
|
+
rotateY(a: number): this;
|
|
99
|
+
rotateZ(a: number): this;
|
|
100
|
+
scale(val: number): this;
|
|
101
|
+
slerp(vec: Vector3, t: number): this;
|
|
102
|
+
subtract(v: Vector3): this;
|
|
103
|
+
toString(options?: {
|
|
104
|
+
decimals?: number;
|
|
105
|
+
delimiter?: string;
|
|
106
|
+
}): string;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
x: number;
|
|
109
|
+
// (undocumented)
|
|
110
|
+
y: number;
|
|
111
|
+
// (undocumented)
|
|
112
|
+
z: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// @public
|
|
116
|
+
export class Vector3Utils {
|
|
117
|
+
static add(v1: Vector3, v2: Vector3): Vector3;
|
|
118
|
+
static clamp(v: Vector3, limits?: {
|
|
119
|
+
min?: Partial<Vector3>;
|
|
120
|
+
max?: Partial<Vector3>;
|
|
121
|
+
}): Vector3;
|
|
122
|
+
static cross(a: Vector3, b: Vector3): Vector3;
|
|
123
|
+
static distance(a: Vector3, b: Vector3): number;
|
|
124
|
+
static dot(a: Vector3, b: Vector3): number;
|
|
125
|
+
static equals(v1: Vector3, v2: Vector3): boolean;
|
|
126
|
+
static floor(v: Vector3): Vector3;
|
|
127
|
+
static lerp(a: Vector3, b: Vector3, t: number): Vector3;
|
|
128
|
+
static magnitude(v: Vector3): number;
|
|
129
|
+
static multiply(a: Vector3, b: Vector3): Vector3;
|
|
130
|
+
static normalize(v: Vector3): Vector3;
|
|
131
|
+
static rotateX(v: Vector3, a: number): Vector3;
|
|
132
|
+
static rotateY(v: Vector3, a: number): Vector3;
|
|
133
|
+
static rotateZ(v: Vector3, a: number): Vector3;
|
|
134
|
+
static scale(v1: Vector3, scale: number): Vector3;
|
|
135
|
+
static slerp(a: Vector3, b: Vector3, t: number): Vector3;
|
|
136
|
+
static subtract(v1: Vector3, v2: Vector3): Vector3;
|
|
137
|
+
static toString(v: Vector3, options?: {
|
|
138
|
+
decimals?: number;
|
|
139
|
+
delimiter?: string;
|
|
140
|
+
}): string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// (No @packageDocumentation comment for this package)
|
|
144
|
+
|
|
145
|
+
```
|
package/dist/minecraft-math.d.ts
CHANGED
|
@@ -77,6 +77,15 @@ export declare const VECTOR3_EAST: Vector3;
|
|
|
77
77
|
*/
|
|
78
78
|
export declare const VECTOR3_FORWARD: Vector3;
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* half
|
|
82
|
+
*
|
|
83
|
+
* A unit vector representing the value of 0.5 in all directions (0.5,0.5,0.5)
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare const VECTOR3_HALF: Vector3;
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* left
|
|
82
91
|
*
|
|
@@ -86,6 +95,15 @@ export declare const VECTOR3_FORWARD: Vector3;
|
|
|
86
95
|
*/
|
|
87
96
|
export declare const VECTOR3_LEFT: Vector3;
|
|
88
97
|
|
|
98
|
+
/**
|
|
99
|
+
* negative
|
|
100
|
+
*
|
|
101
|
+
* A unit vector representing the value of -1 in all directions (-1,-1,-1)
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare const VECTOR3_NEGATIVE_ONE: Vector3;
|
|
106
|
+
|
|
89
107
|
/**
|
|
90
108
|
* north
|
|
91
109
|
*
|
package/dist/minecraft-math.js
CHANGED
|
@@ -218,6 +218,8 @@ var VECTOR3_WEST = { x: -1, y: 0, z: 0 };
|
|
|
218
218
|
var VECTOR3_EAST = { x: 1, y: 0, z: 0 };
|
|
219
219
|
var VECTOR3_NORTH = { x: 0, y: 0, z: 1 };
|
|
220
220
|
var VECTOR3_SOUTH = { x: 0, y: 0, z: -1 };
|
|
221
|
+
var VECTOR3_HALF = { x: 0.5, y: 0.5, z: 0.5 };
|
|
222
|
+
var VECTOR3_NEGATIVE_ONE = { x: -1, y: -1, z: -1 };
|
|
221
223
|
|
|
222
224
|
// lib/vector3/vectorWrapper.js
|
|
223
225
|
var Vector3Builder = class {
|
|
@@ -413,7 +415,9 @@ export {
|
|
|
413
415
|
VECTOR3_DOWN,
|
|
414
416
|
VECTOR3_EAST,
|
|
415
417
|
VECTOR3_FORWARD,
|
|
418
|
+
VECTOR3_HALF,
|
|
416
419
|
VECTOR3_LEFT,
|
|
420
|
+
VECTOR3_NEGATIVE_ONE,
|
|
417
421
|
VECTOR3_NORTH,
|
|
418
422
|
VECTOR3_ONE,
|
|
419
423
|
VECTOR3_RIGHT,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/general/clamp.ts", "../src/vector3/coreHelpers.ts", "../src/vector3/vectorWrapper.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Clamps the passed in number to the passed in min and max values.\n *\n * @public\n */\nexport function clampNumber(val: number, min: number, max: number): number {\n return Math.min(Math.max(val, min), max);\n}\n", "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Vector2, Vector3 } from '@minecraft/server';\nimport { clampNumber } from '../general/clamp.js';\n\n/**\n * Utilities operating on Vector3 objects. All methods are static and do not modify the input objects.\n *\n * @public\n */\nexport class Vector3Utils {\n /**\n * equals\n *\n * Check the equality of two vectors\n */\n static equals(v1: Vector3, v2: Vector3): boolean {\n return v1.x === v2.x && v1.y === v2.y && v1.z === v2.z;\n }\n\n /**\n * add\n *\n * Add two vectors to produce a new vector\n */\n static add(v1: Vector3, v2: Vector3): Vector3 {\n return { x: v1.x + v2.x, y: v1.y + v2.y, z: v1.z + v2.z };\n }\n\n /**\n * subtract\n *\n * Subtract two vectors to produce a new vector (v1-v2)\n */\n static subtract(v1: Vector3, v2: Vector3): Vector3 {\n return { x: v1.x - v2.x, y: v1.y - v2.y, z: v1.z - v2.z };\n }\n\n /** scale\n *\n * Multiple all entries in a vector by a single scalar value producing a new vector\n */\n static scale(v1: Vector3, scale: number): Vector3 {\n return { x: v1.x * scale, y: v1.y * scale, z: v1.z * scale };\n }\n\n /**\n * dot\n *\n * Calculate the dot product of two vectors\n */\n static dot(a: Vector3, b: Vector3): number {\n return a.x * b.x + a.y * b.y + a.z * b.z;\n }\n\n /**\n * cross\n *\n * Calculate the cross product of two vectors. Returns a new vector.\n */\n static cross(a: Vector3, b: Vector3): Vector3 {\n return {\n x: a.y * b.z - a.z * b.y,\n y: a.z * b.x - a.x * b.z,\n z: a.x * b.y - a.y * b.x,\n };\n }\n\n /**\n * magnitude\n *\n * The magnitude of a vector\n */\n static magnitude(v: Vector3): number {\n return Math.sqrt(v.x ** 2 + v.y ** 2 + v.z ** 2);\n }\n\n /**\n * distance\n *\n * Calculate the distance between two vectors\n */\n static distance(a: Vector3, b: Vector3): number {\n return Vector3Utils.magnitude(Vector3Utils.subtract(a, b));\n }\n\n /**\n * normalize\n *\n * Takes a vector 3 and normalizes it to a unit vector\n */\n static normalize(v: Vector3): Vector3 {\n const mag = Vector3Utils.magnitude(v);\n return { x: v.x / mag, y: v.y / mag, z: v.z / mag };\n }\n\n /**\n * floor\n *\n * Floor the components of a vector to produce a new vector\n */\n static floor(v: Vector3): Vector3 {\n return { x: Math.floor(v.x), y: Math.floor(v.y), z: Math.floor(v.z) };\n }\n\n /**\n * toString\n *\n * Create a string representation of a vector3\n */\n static toString(v: Vector3, options?: { decimals?: number; delimiter?: string }): string {\n const decimals = options?.decimals ?? 2;\n const str: string[] = [v.x.toFixed(decimals), v.y.toFixed(decimals), v.z.toFixed(decimals)];\n return str.join(options?.delimiter ?? ', ');\n }\n\n /**\n * clamp\n *\n * Clamps the components of a vector to limits to produce a new vector\n */\n static clamp(\n v: Vector3,\n limits?: {\n min?: Partial<Vector3>;\n max?: Partial<Vector3>;\n }\n ): Vector3 {\n return {\n x: clampNumber(v.x, limits?.min?.x ?? Number.MIN_SAFE_INTEGER, limits?.max?.x ?? Number.MAX_SAFE_INTEGER),\n y: clampNumber(v.y, limits?.min?.y ?? Number.MIN_SAFE_INTEGER, limits?.max?.y ?? Number.MAX_SAFE_INTEGER),\n z: clampNumber(v.z, limits?.min?.z ?? Number.MIN_SAFE_INTEGER, limits?.max?.z ?? Number.MAX_SAFE_INTEGER),\n };\n }\n\n /**\n * lerp\n *\n * Constructs a new vector using linear interpolation on each component from two vectors.\n */\n static lerp(a: Vector3, b: Vector3, t: number): Vector3 {\n return {\n x: a.x + (b.x - a.x) * t,\n y: a.y + (b.y - a.y) * t,\n z: a.z + (b.z - a.z) * t,\n };\n }\n\n /**\n * slerp\n *\n * Constructs a new vector using spherical linear interpolation on each component from two vectors.\n */\n static slerp(a: Vector3, b: Vector3, t: number): Vector3 {\n const theta = Math.acos(Vector3Utils.dot(a, b));\n const sinTheta = Math.sin(theta);\n const ta = Math.sin((1.0 - t) * theta) / sinTheta;\n const tb = Math.sin(t * theta) / sinTheta;\n return Vector3Utils.add(Vector3Utils.scale(a, ta), Vector3Utils.scale(b, tb));\n }\n\n /**\n * multiply\n *\n * Element-wise multiplication of two vectors together.\n * Not to be confused with {@link Vector3Utils.dot} product or {@link Vector3Utils.cross} product\n */\n static multiply(a: Vector3, b: Vector3): Vector3 {\n return {\n x: a.x * b.x,\n y: a.y * b.y,\n z: a.z * b.z,\n };\n }\n\n /**\n * rotateX\n *\n * Rotates the vector around the x axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n static rotateX(v: Vector3, a: number): Vector3 {\n let cos = Math.cos(a);\n let sin = Math.sin(a);\n return {\n x: v.x,\n y: v.y * cos - v.z * sin,\n z: v.z * cos + v.y * sin,\n };\n }\n\n /**\n * rotateY\n *\n * Rotates the vector around the y axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n static rotateY(v: Vector3, a: number): Vector3 {\n let cos = Math.cos(a);\n let sin = Math.sin(a);\n return {\n x: v.x * cos + v.z * sin,\n y: v.y,\n z: v.z * cos - v.x * sin,\n };\n }\n\n /**\n * rotateZ\n *\n * Rotates the vector around the z axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n static rotateZ(v: Vector3, a: number): Vector3 {\n let cos = Math.cos(a);\n let sin = Math.sin(a);\n return {\n x: v.x * cos - v.y * sin,\n y: v.y * cos + v.x * sin,\n z: v.z,\n };\n }\n}\n\n/**\n * Utilities operating on Vector2 objects. All methods are static and do not modify the input objects.\n *\n * @public\n */\nexport class Vector2Utils {\n /**\n * toString\n *\n * Create a string representation of a vector2\n */\n static toString(v: Vector2, options?: { decimals?: number; delimiter?: string }): string {\n const decimals = options?.decimals ?? 2;\n const str: string[] = [v.x.toFixed(decimals), v.y.toFixed(decimals)];\n return str.join(options?.delimiter ?? ', ');\n }\n}\n\n/**\n * up\n *\n * A unit vector representing the world UP direction (0,1,0)\n *\n * @public\n */\nexport const VECTOR3_UP: Vector3 = { x: 0, y: 1, z: 0 };\n/**\n * down\n *\n * A unit vector representing the world DOWN direction (0,-1,0)\n *\n * @public\n */\nexport const VECTOR3_DOWN: Vector3 = { x: 0, y: -1, z: 0 };\n/**\n * left\n *\n * A unit vector representing the world LEFT direction (-1,0,0)\n *\n * @public\n */\nexport const VECTOR3_LEFT: Vector3 = { x: -1, y: 0, z: 0 };\n/**\n * right\n *\n * A unit vector representing the world RIGHT direction (1,0,0)\n *\n * @public\n */\nexport const VECTOR3_RIGHT: Vector3 = { x: 1, y: 0, z: 0 };\n/**\n * forward\n *\n * A unit vector representing the world FORWARD direction (0,0,1)\n *\n * @public\n */\nexport const VECTOR3_FORWARD: Vector3 = { x: 0, y: 0, z: 1 };\n/**\n * back\n *\n * A unit vector representing the world BACK direction (0,0,-1)\n *\n * @public\n */\nexport const VECTOR3_BACK: Vector3 = { x: 0, y: 0, z: -1 };\n/**\n * one\n *\n * A unit vector representing the value of 1 in all directions (1,1,1)\n *\n * @public\n */\nexport const VECTOR3_ONE: Vector3 = { x: 1, y: 1, z: 1 };\n/**\n * zero\n *\n * A unit vector representing the value of 0 in all directions (0,0,0)\n *\n * @public\n */\nexport const VECTOR3_ZERO: Vector3 = { x: 0, y: 0, z: 0 };\n/**\n * west\n *\n * A unit vector representing the world WEST direction (-1,0,0)\n * (same as LEFT)\n *\n * @public\n */\nexport const VECTOR3_WEST: Vector3 = { x: -1, y: 0, z: 0 };\n/**\n * east\n *\n * A unit vector representing the world EAST direction (-1,0,0)\n * (same as RIGHT)\n *\n * @public\n */\nexport const VECTOR3_EAST: Vector3 = { x: 1, y: 0, z: 0 };\n/**\n * north\n *\n * A unit vector representing the world NORTH direction (-1,0,0)\n * (same as FORWARD)\n *\n * @public\n */\nexport const VECTOR3_NORTH: Vector3 = { x: 0, y: 0, z: 1 };\n/**\n * south\n *\n * A unit vector representing the world SOUTH direction (-1,0,0)\n * (same as BACK)\n *\n * @public\n */\nexport const VECTOR3_SOUTH: Vector3 = { x: 0, y: 0, z: -1 };\n", "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Vector2, Vector3 } from '@minecraft/server';\nimport { Vector2Utils, Vector3Utils } from './coreHelpers.js';\n\n/**\n * Vector3 wrapper class which can be used as a Vector3 for APIs on \\@minecraft/server which require a Vector,\n * but also contain additional helper methods. This is an alternative to using the core Vector 3 utility\n * methods directly, for those who prefer a more object-oriented approach. This version of the class is mutable\n * and changes state inline.\n *\n * For an immutable version of the build, use ImmutableVector3Builder.\n *\n * @public\n */\nexport class Vector3Builder implements Vector3 {\n x: number;\n y: number;\n z: number;\n\n constructor(vec: Vector3, arg?: never, arg2?: never);\n constructor(x: number, y: number, z: number);\n constructor(first: number | Vector3, y?: number, z?: number) {\n if (typeof first === 'object') {\n this.x = first.x;\n this.y = first.y;\n this.z = first.z;\n } else {\n this.x = first;\n this.y = y ?? 0;\n this.z = z ?? 0;\n }\n }\n\n /**\n * Assigns the values of the passed in vector to this vector. Returns itself.\n */\n assign(vec: Vector3): this {\n this.x = vec.x;\n this.y = vec.y;\n this.z = vec.z;\n return this;\n }\n\n /**\n * equals\n *\n * Check the equality of two vectors\n */\n equals(v: Vector3): boolean {\n return Vector3Utils.equals(this, v);\n }\n\n /**\n * add\n *\n * Adds the vector v to this, returning itself.\n */\n add(v: Vector3): this {\n return this.assign(Vector3Utils.add(this, v));\n }\n\n /**\n * subtract\n *\n * Subtracts the vector v from this, returning itself.\n */\n subtract(v: Vector3): this {\n return this.assign(Vector3Utils.subtract(this, v));\n }\n\n /** scale\n *\n * Scales this by the passed in value, returning itself.\n */\n scale(val: number): this {\n return this.assign(Vector3Utils.scale(this, val));\n }\n\n /**\n * dot\n *\n * Computes the dot product of this and the passed in vector.\n */\n dot(vec: Vector3): number {\n return Vector3Utils.dot(this, vec);\n }\n\n /**\n * cross\n *\n * Computes the cross product of this and the passed in vector, returning itself.\n */\n cross(vec: Vector3): this {\n return this.assign(Vector3Utils.cross(this, vec));\n }\n\n /**\n * magnitude\n *\n * The magnitude of the vector\n */\n magnitude(): number {\n return Vector3Utils.magnitude(this);\n }\n\n /**\n * distance\n *\n * Calculate the distance between two vectors\n */\n distance(vec: Vector3): number {\n return Vector3Utils.distance(this, vec);\n }\n\n /**\n * normalize\n *\n * Normalizes this vector, returning itself.\n */\n normalize(): this {\n return this.assign(Vector3Utils.normalize(this));\n }\n\n /**\n * floor\n *\n * Floor the components of a vector to produce a new vector\n */\n floor(): this {\n return this.assign(Vector3Utils.floor(this));\n }\n\n /**\n * toString\n *\n * Create a string representation of a vector\n */\n toString(options?: { decimals?: number; delimiter?: string }): string {\n return Vector3Utils.toString(this, options);\n }\n\n /**\n * clamp\n *\n * Clamps the components of a vector to limits to produce a new vector\n */\n clamp(limits: { min?: Partial<Vector3>; max?: Partial<Vector3> }): this {\n return this.assign(Vector3Utils.clamp(this, limits));\n }\n\n /**\n * lerp\n *\n * Constructs a new vector using linear interpolation on each component from two vectors.\n */\n lerp(vec: Vector3, t: number): this {\n return this.assign(Vector3Utils.lerp(this, vec, t));\n }\n\n /**\n * slerp\n *\n * Constructs a new vector using spherical linear interpolation on each component from two vectors.\n */\n slerp(vec: Vector3, t: number): this {\n return this.assign(Vector3Utils.slerp(this, vec, t));\n }\n\n /**\n * multiply\n *\n * Element-wise multiplication of two vectors together.\n * Not to be confused with {@link Vector3Builder.dot} product or {@link Vector3Builder.cross} product\n */\n multiply(vec: Vector3): this {\n return this.assign(Vector3Utils.multiply(this, vec));\n }\n\n /**\n * rotateX\n *\n * Rotates the vector around the x axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n rotateX(a: number): this {\n return this.assign(Vector3Utils.rotateX(this, a));\n }\n\n /**\n * rotateY\n *\n * Rotates the vector around the y axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n rotateY(a: number): this {\n return this.assign(Vector3Utils.rotateY(this, a));\n }\n\n /**\n * rotateZ\n *\n * Rotates the vector around the z axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n rotateZ(a: number): this {\n return this.assign(Vector3Utils.rotateZ(this, a));\n }\n}\n\n/**\n * Vector2 wrapper class which can be used as a Vector2 for APIs on \\@minecraft/server which require a Vector2.\n * @public\n */\nexport class Vector2Builder implements Vector2 {\n x: number;\n y: number;\n\n constructor(vec: Vector2, arg?: never);\n constructor(x: number, y: number);\n constructor(first: number | Vector2, y?: number) {\n if (typeof first === 'object') {\n this.x = first.x;\n this.y = first.y;\n } else {\n this.x = first;\n this.y = y ?? 0;\n }\n }\n\n toString(options?: { decimals?: number; delimiter?: string }): string {\n return Vector2Utils.toString(this, options);\n }\n}\n"],
|
|
5
|
-
"mappings": ";AAQM,SAAU,YAAY,KAAa,KAAa,KAAW;AAC7D,SAAO,KAAK,IAAI,KAAK,IAAI,KAAK,GAAG,GAAG,GAAG;AAC3C;;;ACCM,IAAO,eAAP,MAAO,cAAY;;;;;;EAMrB,OAAO,OAAO,IAAa,IAAW;AAClC,WAAO,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG;EACzD;;;;;;EAOA,OAAO,IAAI,IAAa,IAAW;AAC/B,WAAO,EAAE,GAAG,GAAG,IAA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;AAQjD,IAAM,kBAA2B,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC;AAQnD,IAAM,eAAwB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAE;AAQjD,IAAM,cAAuB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC;AAQ/C,IAAM,eAAwB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC;AAShD,IAAM,eAAwB,EAAE,GAAG,IAAI,GAAG,GAAG,GAAG,EAAC;AASjD,IAAM,eAAwB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC;AAShD,IAAM,gBAAyB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC;AASjD,IAAM,gBAAyB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAE;;;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Clamps the passed in number to the passed in min and max values.\n *\n * @public\n */\nexport function clampNumber(val: number, min: number, max: number): number {\n return Math.min(Math.max(val, min), max);\n}\n", "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Vector2, Vector3 } from '@minecraft/server';\nimport { clampNumber } from '../general/clamp.js';\n\n/**\n * Utilities operating on Vector3 objects. All methods are static and do not modify the input objects.\n *\n * @public\n */\nexport class Vector3Utils {\n /**\n * equals\n *\n * Check the equality of two vectors\n */\n static equals(v1: Vector3, v2: Vector3): boolean {\n return v1.x === v2.x && v1.y === v2.y && v1.z === v2.z;\n }\n\n /**\n * add\n *\n * Add two vectors to produce a new vector\n */\n static add(v1: Vector3, v2: Vector3): Vector3 {\n return { x: v1.x + v2.x, y: v1.y + v2.y, z: v1.z + v2.z };\n }\n\n /**\n * subtract\n *\n * Subtract two vectors to produce a new vector (v1-v2)\n */\n static subtract(v1: Vector3, v2: Vector3): Vector3 {\n return { x: v1.x - v2.x, y: v1.y - v2.y, z: v1.z - v2.z };\n }\n\n /** scale\n *\n * Multiple all entries in a vector by a single scalar value producing a new vector\n */\n static scale(v1: Vector3, scale: number): Vector3 {\n return { x: v1.x * scale, y: v1.y * scale, z: v1.z * scale };\n }\n\n /**\n * dot\n *\n * Calculate the dot product of two vectors\n */\n static dot(a: Vector3, b: Vector3): number {\n return a.x * b.x + a.y * b.y + a.z * b.z;\n }\n\n /**\n * cross\n *\n * Calculate the cross product of two vectors. Returns a new vector.\n */\n static cross(a: Vector3, b: Vector3): Vector3 {\n return {\n x: a.y * b.z - a.z * b.y,\n y: a.z * b.x - a.x * b.z,\n z: a.x * b.y - a.y * b.x,\n };\n }\n\n /**\n * magnitude\n *\n * The magnitude of a vector\n */\n static magnitude(v: Vector3): number {\n return Math.sqrt(v.x ** 2 + v.y ** 2 + v.z ** 2);\n }\n\n /**\n * distance\n *\n * Calculate the distance between two vectors\n */\n static distance(a: Vector3, b: Vector3): number {\n return Vector3Utils.magnitude(Vector3Utils.subtract(a, b));\n }\n\n /**\n * normalize\n *\n * Takes a vector 3 and normalizes it to a unit vector\n */\n static normalize(v: Vector3): Vector3 {\n const mag = Vector3Utils.magnitude(v);\n return { x: v.x / mag, y: v.y / mag, z: v.z / mag };\n }\n\n /**\n * floor\n *\n * Floor the components of a vector to produce a new vector\n */\n static floor(v: Vector3): Vector3 {\n return { x: Math.floor(v.x), y: Math.floor(v.y), z: Math.floor(v.z) };\n }\n\n /**\n * toString\n *\n * Create a string representation of a vector3\n */\n static toString(v: Vector3, options?: { decimals?: number; delimiter?: string }): string {\n const decimals = options?.decimals ?? 2;\n const str: string[] = [v.x.toFixed(decimals), v.y.toFixed(decimals), v.z.toFixed(decimals)];\n return str.join(options?.delimiter ?? ', ');\n }\n\n /**\n * clamp\n *\n * Clamps the components of a vector to limits to produce a new vector\n */\n static clamp(\n v: Vector3,\n limits?: {\n min?: Partial<Vector3>;\n max?: Partial<Vector3>;\n }\n ): Vector3 {\n return {\n x: clampNumber(v.x, limits?.min?.x ?? Number.MIN_SAFE_INTEGER, limits?.max?.x ?? Number.MAX_SAFE_INTEGER),\n y: clampNumber(v.y, limits?.min?.y ?? Number.MIN_SAFE_INTEGER, limits?.max?.y ?? Number.MAX_SAFE_INTEGER),\n z: clampNumber(v.z, limits?.min?.z ?? Number.MIN_SAFE_INTEGER, limits?.max?.z ?? Number.MAX_SAFE_INTEGER),\n };\n }\n\n /**\n * lerp\n *\n * Constructs a new vector using linear interpolation on each component from two vectors.\n */\n static lerp(a: Vector3, b: Vector3, t: number): Vector3 {\n return {\n x: a.x + (b.x - a.x) * t,\n y: a.y + (b.y - a.y) * t,\n z: a.z + (b.z - a.z) * t,\n };\n }\n\n /**\n * slerp\n *\n * Constructs a new vector using spherical linear interpolation on each component from two vectors.\n */\n static slerp(a: Vector3, b: Vector3, t: number): Vector3 {\n const theta = Math.acos(Vector3Utils.dot(a, b));\n const sinTheta = Math.sin(theta);\n const ta = Math.sin((1.0 - t) * theta) / sinTheta;\n const tb = Math.sin(t * theta) / sinTheta;\n return Vector3Utils.add(Vector3Utils.scale(a, ta), Vector3Utils.scale(b, tb));\n }\n\n /**\n * multiply\n *\n * Element-wise multiplication of two vectors together.\n * Not to be confused with {@link Vector3Utils.dot} product or {@link Vector3Utils.cross} product\n */\n static multiply(a: Vector3, b: Vector3): Vector3 {\n return {\n x: a.x * b.x,\n y: a.y * b.y,\n z: a.z * b.z,\n };\n }\n\n /**\n * rotateX\n *\n * Rotates the vector around the x axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n static rotateX(v: Vector3, a: number): Vector3 {\n let cos = Math.cos(a);\n let sin = Math.sin(a);\n return {\n x: v.x,\n y: v.y * cos - v.z * sin,\n z: v.z * cos + v.y * sin,\n };\n }\n\n /**\n * rotateY\n *\n * Rotates the vector around the y axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n static rotateY(v: Vector3, a: number): Vector3 {\n let cos = Math.cos(a);\n let sin = Math.sin(a);\n return {\n x: v.x * cos + v.z * sin,\n y: v.y,\n z: v.z * cos - v.x * sin,\n };\n }\n\n /**\n * rotateZ\n *\n * Rotates the vector around the z axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n static rotateZ(v: Vector3, a: number): Vector3 {\n let cos = Math.cos(a);\n let sin = Math.sin(a);\n return {\n x: v.x * cos - v.y * sin,\n y: v.y * cos + v.x * sin,\n z: v.z,\n };\n }\n}\n\n/**\n * Utilities operating on Vector2 objects. All methods are static and do not modify the input objects.\n *\n * @public\n */\nexport class Vector2Utils {\n /**\n * toString\n *\n * Create a string representation of a vector2\n */\n static toString(v: Vector2, options?: { decimals?: number; delimiter?: string }): string {\n const decimals = options?.decimals ?? 2;\n const str: string[] = [v.x.toFixed(decimals), v.y.toFixed(decimals)];\n return str.join(options?.delimiter ?? ', ');\n }\n}\n\n/**\n * up\n *\n * A unit vector representing the world UP direction (0,1,0)\n *\n * @public\n */\nexport const VECTOR3_UP: Vector3 = { x: 0, y: 1, z: 0 };\n/**\n * down\n *\n * A unit vector representing the world DOWN direction (0,-1,0)\n *\n * @public\n */\nexport const VECTOR3_DOWN: Vector3 = { x: 0, y: -1, z: 0 };\n/**\n * left\n *\n * A unit vector representing the world LEFT direction (-1,0,0)\n *\n * @public\n */\nexport const VECTOR3_LEFT: Vector3 = { x: -1, y: 0, z: 0 };\n/**\n * right\n *\n * A unit vector representing the world RIGHT direction (1,0,0)\n *\n * @public\n */\nexport const VECTOR3_RIGHT: Vector3 = { x: 1, y: 0, z: 0 };\n/**\n * forward\n *\n * A unit vector representing the world FORWARD direction (0,0,1)\n *\n * @public\n */\nexport const VECTOR3_FORWARD: Vector3 = { x: 0, y: 0, z: 1 };\n/**\n * back\n *\n * A unit vector representing the world BACK direction (0,0,-1)\n *\n * @public\n */\nexport const VECTOR3_BACK: Vector3 = { x: 0, y: 0, z: -1 };\n/**\n * one\n *\n * A unit vector representing the value of 1 in all directions (1,1,1)\n *\n * @public\n */\nexport const VECTOR3_ONE: Vector3 = { x: 1, y: 1, z: 1 };\n/**\n * zero\n *\n * A unit vector representing the value of 0 in all directions (0,0,0)\n *\n * @public\n */\nexport const VECTOR3_ZERO: Vector3 = { x: 0, y: 0, z: 0 };\n/**\n * west\n *\n * A unit vector representing the world WEST direction (-1,0,0)\n * (same as LEFT)\n *\n * @public\n */\nexport const VECTOR3_WEST: Vector3 = { x: -1, y: 0, z: 0 };\n/**\n * east\n *\n * A unit vector representing the world EAST direction (-1,0,0)\n * (same as RIGHT)\n *\n * @public\n */\nexport const VECTOR3_EAST: Vector3 = { x: 1, y: 0, z: 0 };\n/**\n * north\n *\n * A unit vector representing the world NORTH direction (-1,0,0)\n * (same as FORWARD)\n *\n * @public\n */\nexport const VECTOR3_NORTH: Vector3 = { x: 0, y: 0, z: 1 };\n/**\n * south\n *\n * A unit vector representing the world SOUTH direction (-1,0,0)\n * (same as BACK)\n *\n * @public\n */\nexport const VECTOR3_SOUTH: Vector3 = { x: 0, y: 0, z: -1 };\n/**\n * half\n *\n * A unit vector representing the value of 0.5 in all directions (0.5,0.5,0.5)\n *\n * @public\n */\nexport const VECTOR3_HALF: Vector3 = { x: 0.5, y: 0.5, z: 0.5 };\n/**\n * negative\n *\n * A unit vector representing the value of -1 in all directions (-1,-1,-1)\n *\n * @public\n */\nexport const VECTOR3_NEGATIVE_ONE: Vector3 = { x: -1, y: -1, z: -1 };\n", "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Vector2, Vector3 } from '@minecraft/server';\nimport { Vector2Utils, Vector3Utils } from './coreHelpers.js';\n\n/**\n * Vector3 wrapper class which can be used as a Vector3 for APIs on \\@minecraft/server which require a Vector,\n * but also contain additional helper methods. This is an alternative to using the core Vector 3 utility\n * methods directly, for those who prefer a more object-oriented approach. This version of the class is mutable\n * and changes state inline.\n *\n * For an immutable version of the build, use ImmutableVector3Builder.\n *\n * @public\n */\nexport class Vector3Builder implements Vector3 {\n x: number;\n y: number;\n z: number;\n\n constructor(vec: Vector3, arg?: never, arg2?: never);\n constructor(x: number, y: number, z: number);\n constructor(first: number | Vector3, y?: number, z?: number) {\n if (typeof first === 'object') {\n this.x = first.x;\n this.y = first.y;\n this.z = first.z;\n } else {\n this.x = first;\n this.y = y ?? 0;\n this.z = z ?? 0;\n }\n }\n\n /**\n * Assigns the values of the passed in vector to this vector. Returns itself.\n */\n assign(vec: Vector3): this {\n this.x = vec.x;\n this.y = vec.y;\n this.z = vec.z;\n return this;\n }\n\n /**\n * equals\n *\n * Check the equality of two vectors\n */\n equals(v: Vector3): boolean {\n return Vector3Utils.equals(this, v);\n }\n\n /**\n * add\n *\n * Adds the vector v to this, returning itself.\n */\n add(v: Vector3): this {\n return this.assign(Vector3Utils.add(this, v));\n }\n\n /**\n * subtract\n *\n * Subtracts the vector v from this, returning itself.\n */\n subtract(v: Vector3): this {\n return this.assign(Vector3Utils.subtract(this, v));\n }\n\n /** scale\n *\n * Scales this by the passed in value, returning itself.\n */\n scale(val: number): this {\n return this.assign(Vector3Utils.scale(this, val));\n }\n\n /**\n * dot\n *\n * Computes the dot product of this and the passed in vector.\n */\n dot(vec: Vector3): number {\n return Vector3Utils.dot(this, vec);\n }\n\n /**\n * cross\n *\n * Computes the cross product of this and the passed in vector, returning itself.\n */\n cross(vec: Vector3): this {\n return this.assign(Vector3Utils.cross(this, vec));\n }\n\n /**\n * magnitude\n *\n * The magnitude of the vector\n */\n magnitude(): number {\n return Vector3Utils.magnitude(this);\n }\n\n /**\n * distance\n *\n * Calculate the distance between two vectors\n */\n distance(vec: Vector3): number {\n return Vector3Utils.distance(this, vec);\n }\n\n /**\n * normalize\n *\n * Normalizes this vector, returning itself.\n */\n normalize(): this {\n return this.assign(Vector3Utils.normalize(this));\n }\n\n /**\n * floor\n *\n * Floor the components of a vector to produce a new vector\n */\n floor(): this {\n return this.assign(Vector3Utils.floor(this));\n }\n\n /**\n * toString\n *\n * Create a string representation of a vector\n */\n toString(options?: { decimals?: number; delimiter?: string }): string {\n return Vector3Utils.toString(this, options);\n }\n\n /**\n * clamp\n *\n * Clamps the components of a vector to limits to produce a new vector\n */\n clamp(limits: { min?: Partial<Vector3>; max?: Partial<Vector3> }): this {\n return this.assign(Vector3Utils.clamp(this, limits));\n }\n\n /**\n * lerp\n *\n * Constructs a new vector using linear interpolation on each component from two vectors.\n */\n lerp(vec: Vector3, t: number): this {\n return this.assign(Vector3Utils.lerp(this, vec, t));\n }\n\n /**\n * slerp\n *\n * Constructs a new vector using spherical linear interpolation on each component from two vectors.\n */\n slerp(vec: Vector3, t: number): this {\n return this.assign(Vector3Utils.slerp(this, vec, t));\n }\n\n /**\n * multiply\n *\n * Element-wise multiplication of two vectors together.\n * Not to be confused with {@link Vector3Builder.dot} product or {@link Vector3Builder.cross} product\n */\n multiply(vec: Vector3): this {\n return this.assign(Vector3Utils.multiply(this, vec));\n }\n\n /**\n * rotateX\n *\n * Rotates the vector around the x axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n rotateX(a: number): this {\n return this.assign(Vector3Utils.rotateX(this, a));\n }\n\n /**\n * rotateY\n *\n * Rotates the vector around the y axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n rotateY(a: number): this {\n return this.assign(Vector3Utils.rotateY(this, a));\n }\n\n /**\n * rotateZ\n *\n * Rotates the vector around the z axis counterclockwise (left hand rule)\n * @param a - Angle in radians\n */\n rotateZ(a: number): this {\n return this.assign(Vector3Utils.rotateZ(this, a));\n }\n}\n\n/**\n * Vector2 wrapper class which can be used as a Vector2 for APIs on \\@minecraft/server which require a Vector2.\n * @public\n */\nexport class Vector2Builder implements Vector2 {\n x: number;\n y: number;\n\n constructor(vec: Vector2, arg?: never);\n constructor(x: number, y: number);\n constructor(first: number | Vector2, y?: number) {\n if (typeof first === 'object') {\n this.x = first.x;\n this.y = first.y;\n } else {\n this.x = first;\n this.y = y ?? 0;\n }\n }\n\n toString(options?: { decimals?: number; delimiter?: string }): string {\n return Vector2Utils.toString(this, options);\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAQM,SAAU,YAAY,KAAa,KAAa,KAAW;AA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AAQ,GAAS;AACb,WAAO,KAAK,OAAO,aAAa,QAAQ,MAAM,CAAC,CAAC;EACpD;;;;;;;EAQA,QAAQ,GAAS;AACb,WAAO,KAAK,OAAO,aAAa,QAAQ,MAAM,CAAC,CAAC;EACpD;;;;;;;EAQA,QAAQ,GAAS;AACb,WAAO,KAAK,OAAO,aAAa,QAAQ,MAAM,CAAC,CAAC;EACpD;;AAOE,IAAO,iBAAP,MAAqB;EACvB;EACA;EAIA,YAAY,OAAyB,GAAU;AAC3C,QAAI,OAAO,UAAU,UAAU;AAC3B,WAAK,IAAI,MAAM;AACf,WAAK,IAAI,MAAM;IACnB,OAAO;AACH,WAAK,IAAI;AACT,WAAK,IAAI,KAAK;IAClB;EACJ;EAEA,SAAS,SAAmD;AACxD,WAAO,aAAa,SAAS,MAAM,OAAO;EAC9C;;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/lib/types/math-beta.d.ts
CHANGED
|
@@ -77,6 +77,15 @@ export declare const VECTOR3_EAST: Vector3;
|
|
|
77
77
|
*/
|
|
78
78
|
export declare const VECTOR3_FORWARD: Vector3;
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* half
|
|
82
|
+
*
|
|
83
|
+
* A unit vector representing the value of 0.5 in all directions (0.5,0.5,0.5)
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare const VECTOR3_HALF: Vector3;
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* left
|
|
82
91
|
*
|
|
@@ -86,6 +95,15 @@ export declare const VECTOR3_FORWARD: Vector3;
|
|
|
86
95
|
*/
|
|
87
96
|
export declare const VECTOR3_LEFT: Vector3;
|
|
88
97
|
|
|
98
|
+
/**
|
|
99
|
+
* negative
|
|
100
|
+
*
|
|
101
|
+
* A unit vector representing the value of -1 in all directions (-1,-1,-1)
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare const VECTOR3_NEGATIVE_ONE: Vector3;
|
|
106
|
+
|
|
89
107
|
/**
|
|
90
108
|
* north
|
|
91
109
|
*
|
|
@@ -77,6 +77,15 @@ export declare const VECTOR3_EAST: Vector3;
|
|
|
77
77
|
*/
|
|
78
78
|
export declare const VECTOR3_FORWARD: Vector3;
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* half
|
|
82
|
+
*
|
|
83
|
+
* A unit vector representing the value of 0.5 in all directions (0.5,0.5,0.5)
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare const VECTOR3_HALF: Vector3;
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* left
|
|
82
91
|
*
|
|
@@ -86,6 +95,15 @@ export declare const VECTOR3_FORWARD: Vector3;
|
|
|
86
95
|
*/
|
|
87
96
|
export declare const VECTOR3_LEFT: Vector3;
|
|
88
97
|
|
|
98
|
+
/**
|
|
99
|
+
* negative
|
|
100
|
+
*
|
|
101
|
+
* A unit vector representing the value of -1 in all directions (-1,-1,-1)
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare const VECTOR3_NEGATIVE_ONE: Vector3;
|
|
106
|
+
|
|
89
107
|
/**
|
|
90
108
|
* north
|
|
91
109
|
*
|
package/lib/types/math.d.ts
CHANGED
|
@@ -77,6 +77,15 @@ export declare const VECTOR3_EAST: Vector3;
|
|
|
77
77
|
*/
|
|
78
78
|
export declare const VECTOR3_FORWARD: Vector3;
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* half
|
|
82
|
+
*
|
|
83
|
+
* A unit vector representing the value of 0.5 in all directions (0.5,0.5,0.5)
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare const VECTOR3_HALF: Vector3;
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* left
|
|
82
91
|
*
|
|
@@ -86,6 +95,15 @@ export declare const VECTOR3_FORWARD: Vector3;
|
|
|
86
95
|
*/
|
|
87
96
|
export declare const VECTOR3_LEFT: Vector3;
|
|
88
97
|
|
|
98
|
+
/**
|
|
99
|
+
* negative
|
|
100
|
+
*
|
|
101
|
+
* A unit vector representing the value of -1 in all directions (-1,-1,-1)
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare const VECTOR3_NEGATIVE_ONE: Vector3;
|
|
106
|
+
|
|
89
107
|
/**
|
|
90
108
|
* north
|
|
91
109
|
*
|
|
@@ -313,4 +313,20 @@ export const VECTOR3_NORTH = { x: 0, y: 0, z: 1 };
|
|
|
313
313
|
* @public
|
|
314
314
|
*/
|
|
315
315
|
export const VECTOR3_SOUTH = { x: 0, y: 0, z: -1 };
|
|
316
|
+
/**
|
|
317
|
+
* half
|
|
318
|
+
*
|
|
319
|
+
* A unit vector representing the value of 0.5 in all directions (0.5,0.5,0.5)
|
|
320
|
+
*
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
export const VECTOR3_HALF = { x: 0.5, y: 0.5, z: 0.5 };
|
|
324
|
+
/**
|
|
325
|
+
* negative
|
|
326
|
+
*
|
|
327
|
+
* A unit vector representing the value of -1 in all directions (-1,-1,-1)
|
|
328
|
+
*
|
|
329
|
+
* @public
|
|
330
|
+
*/
|
|
331
|
+
export const VECTOR3_NEGATIVE_ONE = { x: -1, y: -1, z: -1 };
|
|
316
332
|
//# sourceMappingURL=coreHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coreHelpers.js","sourceRoot":"","sources":["../../src/vector3/coreHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACrB;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,EAAW,EAAE,EAAW;QAClC,OAAO,EAAE,CAAC,CAAC,KAAK,E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