acmi-parser 1.1.0 → 1.2.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.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/dist/acmi-parser.cjs +3 -2
  3. package/dist/acmi-parser.js +6093 -4191
  4. package/dist/types/acmi/acmiData.d.ts +41 -0
  5. package/dist/types/acmi/entity.d.ts +26 -0
  6. package/dist/types/acmi/frame.d.ts +17 -0
  7. package/dist/types/acmi/globalProperties.d.ts +30 -0
  8. package/dist/types/acmi/header.d.ts +7 -0
  9. package/dist/types/acmi/timeSpan.d.ts +12 -0
  10. package/dist/types/acmi/transform.d.ts +22 -0
  11. package/dist/types/index.d.ts +14 -0
  12. package/dist/types/math3d/core/classes/base/math-array.d.ts +66 -0
  13. package/dist/types/math3d/core/classes/base/matrix.d.ts +13 -0
  14. package/dist/types/math3d/core/classes/base/vector.d.ts +43 -0
  15. package/dist/types/math3d/core/classes/euler.d.ts +78 -0
  16. package/dist/types/math3d/core/classes/matrix3.d.ts +62 -0
  17. package/dist/types/math3d/core/classes/matrix4.d.ts +232 -0
  18. package/dist/types/math3d/core/classes/pose.d.ts +39 -0
  19. package/dist/types/math3d/core/classes/quaternion.d.ts +64 -0
  20. package/dist/types/math3d/core/classes/spherical-coordinates.d.ts +59 -0
  21. package/dist/types/math3d/core/classes/vector2.d.ts +54 -0
  22. package/dist/types/math3d/core/classes/vector3.d.ts +59 -0
  23. package/dist/types/math3d/core/classes/vector4.d.ts +40 -0
  24. package/dist/types/math3d/core/gl-matrix/common.d.ts +37 -0
  25. package/dist/types/math3d/core/gl-matrix/mat3.d.ts +286 -0
  26. package/dist/types/math3d/core/gl-matrix/mat4.d.ts +549 -0
  27. package/dist/types/math3d/core/gl-matrix/quat.d.ts +358 -0
  28. package/dist/types/math3d/core/gl-matrix/vec2.d.ts +362 -0
  29. package/dist/types/math3d/core/gl-matrix/vec3.d.ts +405 -0
  30. package/dist/types/math3d/core/gl-matrix/vec4.d.ts +329 -0
  31. package/dist/types/math3d/core/index.d.ts +29 -0
  32. package/dist/types/math3d/core/lib/assert.d.ts +1 -0
  33. package/dist/types/math3d/core/lib/common.d.ts +99 -0
  34. package/dist/types/math3d/core/lib/gl-matrix-extras.d.ts +6 -0
  35. package/dist/types/math3d/core/lib/math-utils.d.ts +24 -0
  36. package/dist/types/math3d/core/lib/validators.d.ts +5 -0
  37. package/dist/types/math3d/geoid/geoid.d.ts +73 -0
  38. package/dist/types/math3d/geoid/index.d.ts +2 -0
  39. package/dist/types/math3d/geoid/parse-pgm.d.ts +11 -0
  40. package/dist/types/math3d/geospatial/constants.d.ts +11 -0
  41. package/dist/types/math3d/geospatial/ellipsoid/ellipsoid.d.ts +69 -0
  42. package/dist/types/math3d/geospatial/ellipsoid/helpers/ellipsoid-transform.d.ts +4 -0
  43. package/dist/types/math3d/geospatial/ellipsoid/helpers/scale-to-geodetic-surface.d.ts +2 -0
  44. package/dist/types/math3d/geospatial/index.d.ts +2 -0
  45. package/dist/types/math3d/geospatial/type-utils.d.ts +23 -0
  46. package/dist/types/math3d/index.d.ts +4 -0
  47. package/dist/types/math3d/types/array-types.d.ts +14 -0
  48. package/dist/types/math3d/types/bigint.d.ts +20 -0
  49. package/dist/types/math3d/types/index.d.ts +2 -0
  50. package/dist/types/math3d/types/is-array.d.ts +13 -0
  51. package/dist/types/parser.d.ts +90 -0
  52. package/dist/types/trajectory/stateVector.d.ts +30 -0
  53. package/dist/types/trajectory/trajectory.d.ts +40 -0
  54. package/dist/types/trajectory/trajectorySample.d.ts +11 -0
  55. package/package.json +20 -15
  56. package/dist/types/acmi-parser.d.ts +0 -422
@@ -0,0 +1,405 @@
1
+ /**
2
+ * 3 Dimensional Vector
3
+ * @module vec3
4
+ */
5
+ /**
6
+ * Creates a new, empty vec3
7
+ *
8
+ * @returns {vec3} a new 3D vector
9
+ */
10
+ export declare function create(): any[] | Float32Array<ArrayBuffer>;
11
+ /**
12
+ * Creates a new vec3 initialized with values from an existing vector
13
+ *
14
+ * @param {ReadonlyVec3} a vector to clone
15
+ * @returns {vec3} a new 3D vector
16
+ */
17
+ export declare function clone(a: any): any[] | Float32Array<ArrayBuffer>;
18
+ /**
19
+ * Calculates the length of a vec3
20
+ *
21
+ * @param {ReadonlyVec3} a vector to calculate length of
22
+ * @returns {Number} length of a
23
+ */
24
+ export declare function length(a: any): number;
25
+ /**
26
+ * Creates a new vec3 initialized with the given values
27
+ *
28
+ * @param {Number} x X component
29
+ * @param {Number} y Y component
30
+ * @param {Number} z Z component
31
+ * @returns {vec3} a new 3D vector
32
+ */
33
+ export declare function fromValues(x: any, y: any, z: any): any[] | Float32Array<ArrayBuffer>;
34
+ /**
35
+ * Copy the values from one vec3 to another
36
+ *
37
+ * @param {vec3} out the receiving vector
38
+ * @param {ReadonlyVec3} a the source vector
39
+ * @returns {vec3} out
40
+ */
41
+ export declare function copy(out: any, a: any): any;
42
+ /**
43
+ * Set the components of a vec3 to the given values
44
+ *
45
+ * @param {vec3} out the receiving vector
46
+ * @param {Number} x X component
47
+ * @param {Number} y Y component
48
+ * @param {Number} z Z component
49
+ * @returns {vec3} out
50
+ */
51
+ export declare function set(out: any, x: any, y: any, z: any): any;
52
+ /**
53
+ * Adds two vec3's
54
+ *
55
+ * @param {vec3} out the receiving vector
56
+ * @param {ReadonlyVec3} a the first operand
57
+ * @param {ReadonlyVec3} b the second operand
58
+ * @returns {vec3} out
59
+ */
60
+ export declare function add(out: any, a: any, b: any): any;
61
+ /**
62
+ * Subtracts vector b from vector a
63
+ *
64
+ * @param {vec3} out the receiving vector
65
+ * @param {ReadonlyVec3} a the first operand
66
+ * @param {ReadonlyVec3} b the second operand
67
+ * @returns {vec3} out
68
+ */
69
+ export declare function subtract(out: any, a: any, b: any): any;
70
+ /**
71
+ * Multiplies two vec3's
72
+ *
73
+ * @param {vec3} out the receiving vector
74
+ * @param {ReadonlyVec3} a the first operand
75
+ * @param {ReadonlyVec3} b the second operand
76
+ * @returns {vec3} out
77
+ */
78
+ export declare function multiply(out: any, a: any, b: any): any;
79
+ /**
80
+ * Divides two vec3's
81
+ *
82
+ * @param {vec3} out the receiving vector
83
+ * @param {ReadonlyVec3} a the first operand
84
+ * @param {ReadonlyVec3} b the second operand
85
+ * @returns {vec3} out
86
+ */
87
+ export declare function divide(out: any, a: any, b: any): any;
88
+ /**
89
+ * Math.ceil the components of a vec3
90
+ *
91
+ * @param {vec3} out the receiving vector
92
+ * @param {ReadonlyVec3} a vector to ceil
93
+ * @returns {vec3} out
94
+ */
95
+ export declare function ceil(out: any, a: any): any;
96
+ /**
97
+ * Math.floor the components of a vec3
98
+ *
99
+ * @param {vec3} out the receiving vector
100
+ * @param {ReadonlyVec3} a vector to floor
101
+ * @returns {vec3} out
102
+ */
103
+ export declare function floor(out: any, a: any): any;
104
+ /**
105
+ * Returns the minimum of two vec3's
106
+ *
107
+ * @param {vec3} out the receiving vector
108
+ * @param {ReadonlyVec3} a the first operand
109
+ * @param {ReadonlyVec3} b the second operand
110
+ * @returns {vec3} out
111
+ */
112
+ export declare function min(out: any, a: any, b: any): any;
113
+ /**
114
+ * Returns the maximum of two vec3's
115
+ *
116
+ * @param {vec3} out the receiving vector
117
+ * @param {ReadonlyVec3} a the first operand
118
+ * @param {ReadonlyVec3} b the second operand
119
+ * @returns {vec3} out
120
+ */
121
+ export declare function max(out: any, a: any, b: any): any;
122
+ /**
123
+ * symmetric round the components of a vec3
124
+ *
125
+ * @param {vec3} out the receiving vector
126
+ * @param {ReadonlyVec3} a vector to round
127
+ * @returns {vec3} out
128
+ */
129
+ export declare function round(out: any, a: any): any;
130
+ /**
131
+ * Scales a vec3 by a scalar number
132
+ *
133
+ * @param {vec3} out the receiving vector
134
+ * @param {ReadonlyVec3} a the vector to scale
135
+ * @param {Number} b amount to scale the vector by
136
+ * @returns {vec3} out
137
+ */
138
+ export declare function scale(out: any, a: any, b: any): any;
139
+ /**
140
+ * Adds two vec3's after scaling the second operand by a scalar value
141
+ *
142
+ * @param {vec3} out the receiving vector
143
+ * @param {ReadonlyVec3} a the first operand
144
+ * @param {ReadonlyVec3} b the second operand
145
+ * @param {Number} scale the amount to scale b by before adding
146
+ * @returns {vec3} out
147
+ */
148
+ export declare function scaleAndAdd(out: any, a: any, b: any, scale: any): any;
149
+ /**
150
+ * Calculates the euclidian distance between two vec3's
151
+ *
152
+ * @param {ReadonlyVec3} a the first operand
153
+ * @param {ReadonlyVec3} b the second operand
154
+ * @returns {Number} distance between a and b
155
+ */
156
+ export declare function distance(a: any, b: any): number;
157
+ /**
158
+ * Calculates the squared euclidian distance between two vec3's
159
+ *
160
+ * @param {ReadonlyVec3} a the first operand
161
+ * @param {ReadonlyVec3} b the second operand
162
+ * @returns {Number} squared distance between a and b
163
+ */
164
+ export declare function squaredDistance(a: any, b: any): number;
165
+ /**
166
+ * Calculates the squared length of a vec3
167
+ *
168
+ * @param {ReadonlyVec3} a vector to calculate squared length of
169
+ * @returns {Number} squared length of a
170
+ */
171
+ export declare function squaredLength(a: any): number;
172
+ /**
173
+ * Negates the components of a vec3
174
+ *
175
+ * @param {vec3} out the receiving vector
176
+ * @param {ReadonlyVec3} a vector to negate
177
+ * @returns {vec3} out
178
+ */
179
+ export declare function negate(out: any, a: any): any;
180
+ /**
181
+ * Returns the inverse of the components of a vec3
182
+ *
183
+ * @param {vec3} out the receiving vector
184
+ * @param {ReadonlyVec3} a vector to invert
185
+ * @returns {vec3} out
186
+ */
187
+ export declare function inverse(out: any, a: any): any;
188
+ /**
189
+ * Normalize a vec3
190
+ *
191
+ * @param {vec3} out the receiving vector
192
+ * @param {ReadonlyVec3} a vector to normalize
193
+ * @returns {vec3} out
194
+ */
195
+ export declare function normalize(out: any, a: any): any;
196
+ /**
197
+ * Calculates the dot product of two vec3's
198
+ *
199
+ * @param {ReadonlyVec3} a the first operand
200
+ * @param {ReadonlyVec3} b the second operand
201
+ * @returns {Number} dot product of a and b
202
+ */
203
+ export declare function dot(a: any, b: any): number;
204
+ /**
205
+ * Computes the cross product of two vec3's
206
+ *
207
+ * @param {vec3} out the receiving vector
208
+ * @param {ReadonlyVec3} a the first operand
209
+ * @param {ReadonlyVec3} b the second operand
210
+ * @returns {vec3} out
211
+ */
212
+ export declare function cross(out: any, a: any, b: any): any;
213
+ /**
214
+ * Performs a linear interpolation between two vec3's
215
+ *
216
+ * @param {vec3} out the receiving vector
217
+ * @param {ReadonlyVec3} a the first operand
218
+ * @param {ReadonlyVec3} b the second operand
219
+ * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
220
+ * @returns {vec3} out
221
+ */
222
+ export declare function lerp(out: any, a: any, b: any, t: any): any;
223
+ /**
224
+ * Performs a spherical linear interpolation between two vec3's
225
+ *
226
+ * @param {vec3} out the receiving vector
227
+ * @param {ReadonlyVec3} a the first operand
228
+ * @param {ReadonlyVec3} b the second operand
229
+ * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
230
+ * @returns {vec3} out
231
+ */
232
+ export declare function slerp(out: any, a: any, b: any, t: any): any;
233
+ /**
234
+ * Performs a hermite interpolation with two control points
235
+ *
236
+ * @param {vec3} out the receiving vector
237
+ * @param {ReadonlyVec3} a the first operand
238
+ * @param {ReadonlyVec3} b the second operand
239
+ * @param {ReadonlyVec3} c the third operand
240
+ * @param {ReadonlyVec3} d the fourth operand
241
+ * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
242
+ * @returns {vec3} out
243
+ */
244
+ export declare function hermite(out: any, a: any, b: any, c: any, d: any, t: any): any;
245
+ /**
246
+ * Performs a bezier interpolation with two control points
247
+ *
248
+ * @param {vec3} out the receiving vector
249
+ * @param {ReadonlyVec3} a the first operand
250
+ * @param {ReadonlyVec3} b the second operand
251
+ * @param {ReadonlyVec3} c the third operand
252
+ * @param {ReadonlyVec3} d the fourth operand
253
+ * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
254
+ * @returns {vec3} out
255
+ */
256
+ export declare function bezier(out: any, a: any, b: any, c: any, d: any, t: any): any;
257
+ /**
258
+ * Generates a random vector with the given scale
259
+ *
260
+ * @param {vec3} out the receiving vector
261
+ * @param {Number} [scale] Length of the resulting vector. If omitted, a unit vector will be returned
262
+ * @returns {vec3} out
263
+ */
264
+ export declare function random(out: any, scale: any): any;
265
+ /**
266
+ * Transforms the vec3 with a mat4.
267
+ * 4th vector component is implicitly '1'
268
+ *
269
+ * @param {vec3} out the receiving vector
270
+ * @param {ReadonlyVec3} a the vector to transform
271
+ * @param {ReadonlyMat4} m matrix to transform with
272
+ * @returns {vec3} out
273
+ */
274
+ export declare function transformMat4(out: any, a: any, m: any): any;
275
+ /**
276
+ * Transforms the vec3 with a mat3.
277
+ *
278
+ * @param {vec3} out the receiving vector
279
+ * @param {ReadonlyVec3} a the vector to transform
280
+ * @param {ReadonlyMat3} m the 3x3 matrix to transform with
281
+ * @returns {vec3} out
282
+ */
283
+ export declare function transformMat3(out: any, a: any, m: any): any;
284
+ /**
285
+ * Transforms the vec3 with a quat
286
+ * Can also be used for dual quaternions. (Multiply it with the real part)
287
+ *
288
+ * @param {vec3} out the receiving vector
289
+ * @param {ReadonlyVec3} a the vector to transform
290
+ * @param {ReadonlyQuat} q quaternion to transform with
291
+ * @returns {vec3} out
292
+ */
293
+ export declare function transformQuat(out: any, a: any, q: any): any;
294
+ /**
295
+ * Rotate a 3D vector around the x-axis
296
+ * @param {vec3} out The receiving vec3
297
+ * @param {ReadonlyVec3} a The vec3 point to rotate
298
+ * @param {ReadonlyVec3} b The origin of the rotation
299
+ * @param {Number} rad The angle of rotation in radians
300
+ * @returns {vec3} out
301
+ */
302
+ export declare function rotateX(out: any, a: any, b: any, rad: any): any;
303
+ /**
304
+ * Rotate a 3D vector around the y-axis
305
+ * @param {vec3} out The receiving vec3
306
+ * @param {ReadonlyVec3} a The vec3 point to rotate
307
+ * @param {ReadonlyVec3} b The origin of the rotation
308
+ * @param {Number} rad The angle of rotation in radians
309
+ * @returns {vec3} out
310
+ */
311
+ export declare function rotateY(out: any, a: any, b: any, rad: any): any;
312
+ /**
313
+ * Rotate a 3D vector around the z-axis
314
+ * @param {vec3} out The receiving vec3
315
+ * @param {ReadonlyVec3} a The vec3 point to rotate
316
+ * @param {ReadonlyVec3} b The origin of the rotation
317
+ * @param {Number} rad The angle of rotation in radians
318
+ * @returns {vec3} out
319
+ */
320
+ export declare function rotateZ(out: any, a: any, b: any, rad: any): any;
321
+ /**
322
+ * Get the angle between two 3D vectors
323
+ * @param {ReadonlyVec3} a The first operand
324
+ * @param {ReadonlyVec3} b The second operand
325
+ * @returns {Number} The angle in radians
326
+ */
327
+ export declare function angle(a: any, b: any): number;
328
+ /**
329
+ * Set the components of a vec3 to zero
330
+ *
331
+ * @param {vec3} out the receiving vector
332
+ * @returns {vec3} out
333
+ */
334
+ export declare function zero(out: any): any;
335
+ /**
336
+ * Returns a string representation of a vector
337
+ *
338
+ * @param {ReadonlyVec3} a vector to represent as a string
339
+ * @returns {String} string representation of the vector
340
+ */
341
+ export declare function str(a: any): string;
342
+ /**
343
+ * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
344
+ *
345
+ * @param {ReadonlyVec3} a The first vector.
346
+ * @param {ReadonlyVec3} b The second vector.
347
+ * @returns {Boolean} True if the vectors are equal, false otherwise.
348
+ */
349
+ export declare function exactEquals(a: any, b: any): boolean;
350
+ /**
351
+ * Returns whether or not the vectors have approximately the same elements in the same position.
352
+ *
353
+ * @param {ReadonlyVec3} a The first vector.
354
+ * @param {ReadonlyVec3} b The second vector.
355
+ * @returns {Boolean} True if the vectors are equal, false otherwise.
356
+ */
357
+ export declare function equals(a: any, b: any): boolean;
358
+ /**
359
+ * Alias for {@link vec3.subtract}
360
+ * @function
361
+ */
362
+ export declare const sub: typeof subtract;
363
+ /**
364
+ * Alias for {@link vec3.multiply}
365
+ * @function
366
+ */
367
+ export declare const mul: typeof multiply;
368
+ /**
369
+ * Alias for {@link vec3.divide}
370
+ * @function
371
+ */
372
+ export declare const div: typeof divide;
373
+ /**
374
+ * Alias for {@link vec3.distance}
375
+ * @function
376
+ */
377
+ export declare const dist: typeof distance;
378
+ /**
379
+ * Alias for {@link vec3.squaredDistance}
380
+ * @function
381
+ */
382
+ export declare const sqrDist: typeof squaredDistance;
383
+ /**
384
+ * Alias for {@link vec3.length}
385
+ * @function
386
+ */
387
+ export declare const len: typeof length;
388
+ /**
389
+ * Alias for {@link vec3.squaredLength}
390
+ * @function
391
+ */
392
+ export declare const sqrLen: typeof squaredLength;
393
+ /**
394
+ * Perform some operation over an array of vec3s.
395
+ *
396
+ * @param {Array} a the array of vectors to iterate over
397
+ * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
398
+ * @param {Number} offset Number of elements to skip at the beginning of the array
399
+ * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
400
+ * @param {Function} fn Function to call for each vector in the array
401
+ * @param {Object} [arg] additional argument to pass to fn
402
+ * @returns {Array} a
403
+ * @function
404
+ */
405
+ export declare const forEach: (a: any, stride: any, offset: any, count: any, fn: any, arg: any) => any;