@math.gl/core 4.0.1 → 4.1.0-alpha.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.
Files changed (55) hide show
  1. package/dist/classes/base/math-array.js +3 -0
  2. package/dist/classes/base/matrix.js +4 -0
  3. package/dist/classes/base/vector.js +4 -0
  4. package/dist/classes/euler.js +3 -1
  5. package/dist/classes/matrix3.d.ts +7 -1
  6. package/dist/classes/matrix3.js +7 -1
  7. package/dist/classes/matrix4.d.ts +7 -2
  8. package/dist/classes/matrix4.js +7 -2
  9. package/dist/classes/pose.js +3 -1
  10. package/dist/classes/quaternion.js +4 -0
  11. package/dist/classes/spherical-coordinates.js +4 -0
  12. package/dist/classes/vector2.d.ts +5 -3
  13. package/dist/classes/vector2.js +5 -3
  14. package/dist/classes/vector3.d.ts +5 -3
  15. package/dist/classes/vector3.js +6 -2
  16. package/dist/classes/vector4.d.ts +5 -3
  17. package/dist/classes/vector4.js +5 -3
  18. package/dist/gl-matrix/wip/index.js +3 -0
  19. package/dist/gl-matrix/wip/mat2.d.ts +1 -1
  20. package/dist/gl-matrix/wip/mat2.js +3 -0
  21. package/dist/gl-matrix/wip/mat2d.js +3 -0
  22. package/dist/gl-matrix/wip/quat2.js +3 -0
  23. package/dist/index.cjs.map +2 -2
  24. package/dist/index.d.ts +6 -1
  25. package/dist/index.js +3 -1
  26. package/dist/lib/assert.js +3 -0
  27. package/dist/lib/common.js +3 -1
  28. package/dist/lib/gl-matrix-extras.js +3 -0
  29. package/dist/lib/math-utils.js +3 -0
  30. package/dist/lib/validators.js +3 -0
  31. package/package.json +3 -3
  32. package/src/classes/base/math-array.ts +4 -1
  33. package/src/classes/base/matrix.ts +4 -1
  34. package/src/classes/base/vector.ts +4 -1
  35. package/src/classes/euler.ts +4 -1
  36. package/src/classes/matrix3.ts +11 -2
  37. package/src/classes/matrix4.ts +11 -3
  38. package/src/classes/pose.ts +4 -1
  39. package/src/classes/quaternion.ts +4 -1
  40. package/src/classes/spherical-coordinates.ts +4 -1
  41. package/src/classes/vector2.ts +11 -4
  42. package/src/classes/vector3.ts +10 -4
  43. package/src/classes/vector4.ts +9 -4
  44. package/src/gl-matrix/wip/index.js +4 -0
  45. package/src/gl-matrix/wip/mat2.js +4 -0
  46. package/src/gl-matrix/wip/mat2d.js +4 -0
  47. package/src/gl-matrix/wip/quat2.ts +4 -0
  48. package/src/index.ts +10 -2
  49. package/src/lib/assert.ts +4 -0
  50. package/src/lib/common.ts +3 -1
  51. package/src/lib/gl-matrix-extras.ts +4 -0
  52. package/src/lib/gl-matrix.d.ts +4 -0
  53. package/src/lib/math-utils.ts +4 -0
  54. package/src/lib/validators.ts +4 -19
  55. package/src/gl-matrix/wip/types.d.ts +0 -93
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { TypedArray, NumericArray } from '@math.gl/types';
1
+ export type { TypedArray, TypedArrayConstructor, NumberArray, NumericArray } from '@math.gl/types';
2
2
  export type { isTypedArray, isNumericArray } from '@math.gl/types';
3
3
  export { Vector2 } from "./classes/vector2.js";
4
4
  export { Vector3 } from "./classes/vector3.js";
@@ -6,6 +6,11 @@ export { Vector4 } from "./classes/vector4.js";
6
6
  export { Matrix3 } from "./classes/matrix3.js";
7
7
  export { Matrix4 } from "./classes/matrix4.js";
8
8
  export { Quaternion } from "./classes/quaternion.js";
9
+ export type { Vector2Like } from "./classes/vector2.js";
10
+ export type { Vector3Like } from "./classes/vector3.js";
11
+ export type { Vector4Like } from "./classes/vector4.js";
12
+ export type { Matrix3Like } from "./classes/matrix3.js";
13
+ export type { Matrix4Like } from "./classes/matrix4.js";
9
14
  export { SphericalCoordinates } from "./classes/spherical-coordinates.js";
10
15
  export { Pose } from "./classes/pose.js";
11
16
  export { Euler } from "./classes/euler.js";
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
- // luma.gl, MIT license
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
2
4
  // classes
3
5
  export { Vector2 } from "./classes/vector2.js";
4
6
  export { Vector3 } from "./classes/vector3.js";
@@ -1,3 +1,6 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  export function assert(condition, message) {
2
5
  if (!condition) {
3
6
  throw new Error(`math.gl assertion ${message}`);
@@ -1,4 +1,6 @@
1
- // math.gl, MIT license
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
2
4
  const RADIANS_TO_DEGREES = (1 / Math.PI) * 180;
3
5
  const DEGREES_TO_RADIANS = (1 / 180) * Math.PI;
4
6
  const DEFAULT_CONFIG = {
@@ -1,3 +1,6 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // vec2 additions
2
5
  export function vec2_transformMat4AsVector(out, a, m) {
3
6
  const x = a[0];
@@ -1,3 +1,6 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // NOTE: Added to make Cesium-derived test cases work
2
5
  // TODO: Determine if/how to keep
3
6
  export const EPSILON1 = 1e-1;
@@ -1,3 +1,6 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  import { config } from "./common.js";
2
5
  export function validateVector(v, length) {
3
6
  if (v.length !== length) {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
- "version": "4.0.1",
9
+ "version": "4.1.0-alpha.1",
10
10
  "keywords": [
11
11
  "webgl",
12
12
  "javascript",
@@ -45,7 +45,7 @@
45
45
  "./src/lib/common.js"
46
46
  ],
47
47
  "dependencies": {
48
- "@math.gl/types": "4.0.1"
48
+ "@math.gl/types": "4.1.0-alpha.1"
49
49
  },
50
- "gitHead": "33f369ba3a259f79acc3fa8181190c9da8841648"
50
+ "gitHead": "1a4dbbc6ab46271459d610411a7c644e45135c2c"
51
51
  }
@@ -1,4 +1,7 @@
1
- // math.gl, MIT License
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
2
5
  import {NumericArray} from '@math.gl/types';
3
6
  import {ConfigurationOptions, config, formatValue, equals, isArray} from '../../lib/common';
4
7
 
@@ -1,5 +1,8 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
3
6
  import {NumericArray} from '@math.gl/types';
4
7
  import {MathArray} from './math-array';
5
8
  import {checkNumber} from '../../lib/validators';
@@ -1,5 +1,8 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
3
6
  import {NumericArray} from '@math.gl/types';
4
7
  import {MathArray} from './math-array';
5
8
  import {checkNumber} from '../../lib/validators';
@@ -1,5 +1,8 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
3
6
  import {MathArray} from './base/math-array';
4
7
  import {Quaternion} from './quaternion';
5
8
  import {NumericArray} from '@math.gl/types';
@@ -1,7 +1,9 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
3
5
 
4
- import {NumericArray} from '@math.gl/types';
6
+ import {NumericArray, NumberArray9} from '@math.gl/types';
5
7
  import {Matrix} from './base/matrix';
6
8
  import {checkVector} from '../lib/validators';
7
9
 
@@ -34,6 +36,13 @@ enum INDICES {
34
36
 
35
37
  const IDENTITY_MATRIX = Object.freeze([1, 0, 0, 0, 1, 0, 0, 0, 1]);
36
38
 
39
+ /** Helper type that captures array length for a 3x3 matrix */
40
+ export type Matrix3Like = Matrix3 | NumberArray9;
41
+
42
+ /**
43
+ * A 3x3 matrix with common linear algebra operations
44
+ * Subclass of Array<number> meaning that it is highly compatible with other libraries
45
+ */
37
46
  export class Matrix3 extends Matrix {
38
47
  static get IDENTITY(): Readonly<Matrix3> {
39
48
  return getIdentityMatrix();
@@ -1,7 +1,9 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
3
5
 
4
- import {NumericArray} from '@math.gl/types';
6
+ import {NumericArray, NumberArray16} from '@math.gl/types';
5
7
  import {Matrix} from './base/matrix';
6
8
  import {checkVector} from '../lib/validators';
7
9
 
@@ -55,7 +57,13 @@ const DEFAULT_FAR = 500;
55
57
 
56
58
  const IDENTITY_MATRIX = Object.freeze([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
57
59
 
58
- /** 4x4 matrix */
60
+ /** Helper type that captures array length for a 4x4 matrix */
61
+ export type Matrix4Like = Matrix4 | NumberArray16;
62
+
63
+ /**
64
+ * A 4x4 matrix with common linear algebra operations
65
+ * Subclass of Array<number> meaning that it is highly compatible with other libraries
66
+ */
59
67
  export class Matrix4 extends Matrix {
60
68
  static get IDENTITY(): Readonly<Matrix4> {
61
69
  return getIdentityMatrix();
@@ -1,5 +1,8 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
3
6
  import {Matrix4} from './matrix4';
4
7
  import {Vector3} from './vector3';
5
8
  import {Euler} from './euler';
@@ -1,5 +1,8 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
3
6
  import {NumericArray} from '@math.gl/types';
4
7
  import {MathArray} from './base/math-array';
5
8
  import {checkNumber, checkVector} from '../lib/validators';
@@ -1,5 +1,8 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
3
6
  // Adaptation of THREE.js Spherical class, under MIT license
4
7
  import {NumericArray} from '@math.gl/types';
5
8
  import {Vector3} from './vector3';
@@ -1,5 +1,10 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
5
+
6
+ import {NumericArray, NumberArray2} from '@math.gl/types';
7
+
3
8
  import {Vector} from './base/vector';
4
9
  import {config, isArray} from '../lib/common';
5
10
  import {checkNumber} from '../lib/validators';
@@ -10,11 +15,13 @@ import {
10
15
  transformMat2 as vec2_transformMat2
11
16
  } from '../gl-matrix/vec2';
12
17
  import {vec2_transformMat4AsVector} from '../lib/gl-matrix-extras';
13
- import {NumericArray} from '@math.gl/types';
18
+
19
+ /** Helper type that captures array length for a 2 element vector */
20
+ export type Vector2Like = Vector2 | NumberArray2;
14
21
 
15
22
  /**
16
- * Two-element vector class.
17
- * Subclass of Array<number>
23
+ * Two-element vector class with common linear algebra operations.
24
+ * Subclass of Array<number> meaning that it is highly compatible with other libraries
18
25
  */
19
26
  export class Vector2 extends Vector {
20
27
  // Creates a new, empty vec2
@@ -1,6 +1,9 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
3
- import {NumericArray} from '@math.gl/types';
5
+
6
+ import {NumericArray, NumberArray3} from '@math.gl/types';
4
7
  import {Vector} from './base/vector';
5
8
  import {config, isArray} from '../lib/common';
6
9
  import {checkNumber} from '../lib/validators';
@@ -22,9 +25,12 @@ const ORIGIN = [0, 0, 0];
22
25
 
23
26
  let ZERO: Vector3;
24
27
 
28
+ /** Helper type that captures array length for a 3 element vector */
29
+ export type Vector3Like = Vector3 | NumberArray3;
30
+
25
31
  /**
26
- * Three-element vector class.
27
- * Subclass of Array<number>
32
+ * Three-element vector class with common linear algebra operations.
33
+ * Subclass of Array<number> meaning that it is highly compatible with other libraries
28
34
  */
29
35
  export class Vector3 extends Vector {
30
36
  static get ZERO(): Vector3 {
@@ -1,7 +1,9 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
1
4
  // Copyright (c) 2017 Uber Technologies, Inc.
2
- // MIT License
3
5
 
4
- import {NumericArray} from '@math.gl/types';
6
+ import {NumericArray, NumberArray4} from '@math.gl/types';
5
7
  /* eslint-disable camelcase */
6
8
  import {
7
9
  transformMat4 as vec4_transformMat4,
@@ -17,9 +19,12 @@ import type {Matrix4} from './matrix4';
17
19
 
18
20
  let ZERO: Vector4;
19
21
 
22
+ /** Helper type that captures array length for a 4 element vector */
23
+ export type Vector4Like = Vector4 | NumberArray4;
24
+
20
25
  /**
21
- * Four-element vector class.
22
- * Subclass of Array<number>
26
+ * Four-element vector class with common linear algebra operations.
27
+ * Subclass of Array<number> meaning that it is highly compatible with other libraries
23
28
  */
24
29
  export class Vector4 extends Vector {
25
30
  static get ZERO(): Vector4 {
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  // @eslint-disable
2
6
  // @ts-nocheck
3
7
 
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  // @ts-nocheck
2
6
  /* eslint-disable */
3
7
 
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  // @ts-nocheck
2
6
  /* eslint-disable */
3
7
 
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  // @ts-nocheck
2
6
  /* eslint-disable */
3
7
  import * as glMatrix from './common.js';
package/src/index.ts CHANGED
@@ -1,7 +1,9 @@
1
- // luma.gl, MIT license
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
2
4
 
3
5
  // types
4
- export type {TypedArray, NumericArray} from '@math.gl/types';
6
+ export type {TypedArray, TypedArrayConstructor, NumberArray, NumericArray} from '@math.gl/types';
5
7
 
6
8
  export type {isTypedArray, isNumericArray} from '@math.gl/types';
7
9
 
@@ -13,6 +15,12 @@ export {Matrix3} from './classes/matrix3';
13
15
  export {Matrix4} from './classes/matrix4';
14
16
  export {Quaternion} from './classes/quaternion';
15
17
 
18
+ export type {Vector2Like} from './classes/vector2';
19
+ export type {Vector3Like} from './classes/vector3';
20
+ export type {Vector4Like} from './classes/vector4';
21
+ export type {Matrix3Like} from './classes/matrix3';
22
+ export type {Matrix4Like} from './classes/matrix4';
23
+
16
24
  // experimental
17
25
  export {SphericalCoordinates} from './classes/spherical-coordinates';
18
26
  export {Pose} from './classes/pose';
package/src/lib/assert.ts CHANGED
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  export function assert(condition: unknown, message?: string): void {
2
6
  if (!condition) {
3
7
  throw new Error(`math.gl assertion ${message}`);
package/src/lib/common.ts CHANGED
@@ -1,4 +1,6 @@
1
- // math.gl, MIT license
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
2
4
 
3
5
  import type {NumericArray} from '@math.gl/types';
4
6
 
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  /* eslint-disable camelcase */
2
6
  import {NumericArray} from '@math.gl/types';
3
7
  // vec2 additions
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  type NumericArray =
2
6
  | Int8Array
3
7
  | Uint8Array
@@ -1,3 +1,7 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
1
5
  // NOTE: Added to make Cesium-derived test cases work
2
6
  // TODO: Determine if/how to keep
3
7
  export const EPSILON1 = 1e-1;
@@ -1,22 +1,7 @@
1
- // Copyright (c) 2017 Uber Technologies, Inc.
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a copy
4
- // of this software and associated documentation files (the "Software"), to deal
5
- // in the Software without restriction, including without limitation the rights
6
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- // copies of the Software, and to permit persons to whom the Software is
8
- // furnished to do so, subject to the following conditions:
9
- //
10
- // The above copyright notice and this permission notice shall be included in
11
- // all copies or substantial portions of the Software.
12
- //
13
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- // THE SOFTWARE.
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright (c) vis.gl contributors
4
+
20
5
  import {NumberArray} from '@math.gl/types';
21
6
  import {config} from './common';
22
7
 
@@ -1,93 +0,0 @@
1
- // @ts-nocheck
2
- /* eslint-disable */
3
-
4
- interface IndexedCollection extends Iterable<number> {
5
- readonly length: number;
6
- [index: number]: number;
7
- }
8
-
9
- // prettier-ignore
10
- declare type mat2 =
11
- | [number, number,
12
- number, number]
13
- | IndexedCollection;
14
-
15
- // prettier-ignore
16
- declare type mat2d =
17
- | [number, number,
18
- number, number,
19
- number, number]
20
- | IndexedCollection;
21
-
22
- // prettier-ignore
23
- declare type mat3 =
24
- | [number, number, number,
25
- number, number, number,
26
- number, number, number]
27
- | IndexedCollection;
28
-
29
- // prettier-ignore
30
- declare type mat4 =
31
- | [number, number, number, number,
32
- number, number, number, number,
33
- number, number, number, number,
34
- number, number, number, number]
35
- | IndexedCollection;
36
-
37
- declare type quat = [number, number, number, number] | IndexedCollection;
38
-
39
- // prettier-ignore
40
- declare type quat2 =
41
- | [number, number, number, number,
42
- number, number, number, number]
43
- | IndexedCollection;
44
-
45
- declare type vec2 = [number, number] | IndexedCollection;
46
- declare type vec3 = [number, number, number] | IndexedCollection;
47
- declare type vec4 = [number, number, number, number] | IndexedCollection;
48
-
49
- // prettier-ignore
50
- declare type ReadonlyMat2 =
51
- | readonly [
52
- number, number,
53
- number, number
54
- ]
55
- | IndexedCollection;
56
-
57
- // prettier-ignore
58
- declare type ReadonlyMat2d =
59
- | readonly [
60
- number, number,
61
- number, number,
62
- number, number
63
- ]
64
- | IndexedCollection;
65
-
66
- // prettier-ignore
67
- declare type ReadonlyMat3 =
68
- | readonly [
69
- number, number, number,
70
- number, number, number,
71
- number, number, number
72
- ]
73
- | IndexedCollection;
74
-
75
- // prettier-ignore
76
- declare type ReadonlyMat4 =
77
- | readonly [
78
- number, number, number, number,
79
- number, number, number, number,
80
- number, number, number, number,
81
- number, number, number, number
82
- ]
83
- | IndexedCollection;
84
-
85
- declare type ReadonlyQuat = readonly [number, number, number, number] | IndexedCollection;
86
-
87
- declare type ReadonlyQuat2 =
88
- | readonly [number, number, number, number, number, number, number, number]
89
- | IndexedCollection;
90
-
91
- declare type ReadonlyVec2 = readonly [number, number] | IndexedCollection;
92
- declare type ReadonlyVec3 = readonly [number, number, number] | IndexedCollection;
93
- declare type ReadonlyVec4 = readonly [number, number, number, number] | IndexedCollection;