@vertexvis/geometry 0.24.5-canary.4 → 1.0.0-testing.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 (62) hide show
  1. package/dist/angle.d.ts +35 -35
  2. package/dist/boundingBox.d.ts +49 -49
  3. package/dist/boundingSphere.d.ts +14 -14
  4. package/dist/bundle.cjs.js +2148 -2148
  5. package/dist/bundle.cjs.js.map +1 -1
  6. package/dist/bundle.esm.js +2148 -2148
  7. package/dist/bundle.esm.js.map +1 -1
  8. package/dist/cdn/bundle.esm.js +2149 -2183
  9. package/dist/cdn/bundle.esm.js.map +1 -1
  10. package/dist/cdn/bundle.esm.min.js +1 -15
  11. package/dist/cdn/bundle.esm.min.js.map +1 -1
  12. package/dist/dimensions.d.ts +94 -94
  13. package/dist/euler.d.ts +57 -57
  14. package/dist/index.d.ts +21 -21
  15. package/dist/line3.d.ts +48 -48
  16. package/dist/math.d.ts +20 -20
  17. package/dist/matrix.d.ts +73 -73
  18. package/dist/matrix2.d.ts +29 -29
  19. package/dist/matrix4.d.ts +285 -285
  20. package/dist/plane.d.ts +51 -51
  21. package/dist/point.d.ts +80 -80
  22. package/dist/quaternion.d.ts +65 -65
  23. package/dist/ray.d.ts +52 -52
  24. package/dist/rectangle.d.ts +125 -125
  25. package/dist/vector3.d.ts +226 -226
  26. package/dist/vector4.d.ts +23 -23
  27. package/package.json +10 -10
  28. package/dist/cdn/__tests__/angle.test.d.ts +0 -1
  29. package/dist/cdn/__tests__/boundingBox.test.d.ts +0 -1
  30. package/dist/cdn/__tests__/boundingSphere.test.d.ts +0 -1
  31. package/dist/cdn/__tests__/dimensions.test.d.ts +0 -1
  32. package/dist/cdn/__tests__/euler.test.d.ts +0 -1
  33. package/dist/cdn/__tests__/line3.test.d.ts +0 -1
  34. package/dist/cdn/__tests__/math.spec.d.ts +0 -1
  35. package/dist/cdn/__tests__/matrix.test.d.ts +0 -1
  36. package/dist/cdn/__tests__/matrix2.test.d.ts +0 -1
  37. package/dist/cdn/__tests__/matrix4.test.d.ts +0 -1
  38. package/dist/cdn/__tests__/plane.test.d.ts +0 -1
  39. package/dist/cdn/__tests__/point.test.d.ts +0 -1
  40. package/dist/cdn/__tests__/quaternion.test.d.ts +0 -1
  41. package/dist/cdn/__tests__/ray.test.d.ts +0 -1
  42. package/dist/cdn/__tests__/rectangle.test.d.ts +0 -1
  43. package/dist/cdn/__tests__/vector3.test.d.ts +0 -1
  44. package/dist/cdn/__tests__/vector4.test.d.ts +0 -1
  45. package/dist/cdn/angle.d.ts +0 -35
  46. package/dist/cdn/boundingBox.d.ts +0 -49
  47. package/dist/cdn/boundingSphere.d.ts +0 -14
  48. package/dist/cdn/dimensions.d.ts +0 -94
  49. package/dist/cdn/euler.d.ts +0 -57
  50. package/dist/cdn/index.d.ts +0 -21
  51. package/dist/cdn/line3.d.ts +0 -48
  52. package/dist/cdn/math.d.ts +0 -20
  53. package/dist/cdn/matrix.d.ts +0 -73
  54. package/dist/cdn/matrix2.d.ts +0 -29
  55. package/dist/cdn/matrix4.d.ts +0 -285
  56. package/dist/cdn/plane.d.ts +0 -51
  57. package/dist/cdn/point.d.ts +0 -80
  58. package/dist/cdn/quaternion.d.ts +0 -65
  59. package/dist/cdn/ray.d.ts +0 -52
  60. package/dist/cdn/rectangle.d.ts +0 -125
  61. package/dist/cdn/vector3.d.ts +0 -226
  62. package/dist/cdn/vector4.d.ts +0 -23
package/dist/angle.d.ts CHANGED
@@ -1,35 +1,35 @@
1
- import * as Point from './point';
2
- export declare type Angle = number;
3
- /**
4
- * Returns an `Angle` between two points, in radians.
5
- *
6
- * @param a The starting point.
7
- * @param b The ending point.
8
- * @returns An angle in radians.
9
- */
10
- export declare function fromPoints(a: Point.Point, b: Point.Point): Angle;
11
- /**
12
- * Returns an `Angle` between two points, in degrees.
13
- *
14
- * An angle of 0 represents an upward vector, and increases in a clockwise
15
- * direction.
16
- *
17
- * @deprecated Use {@link fromPoints} instead.
18
- */
19
- export declare function fromPointsInDegrees(a: Point.Point, b: Point.Point): Angle;
20
- /**
21
- * Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
22
- */
23
- export declare function normalize(degrees: Angle): Angle;
24
- /**
25
- * Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
26
- */
27
- export declare function normalizeRadians(radians: Angle): Angle;
28
- /**
29
- * Converts the given radians to degrees.
30
- */
31
- export declare function toDegrees(radians: Angle): Angle;
32
- /**
33
- * Converts the given degrees to radians.
34
- */
35
- export declare function toRadians(degrees: Angle): Angle;
1
+ import * as Point from './point';
2
+ export type Angle = number;
3
+ /**
4
+ * Returns an `Angle` between two points, in radians.
5
+ *
6
+ * @param a The starting point.
7
+ * @param b The ending point.
8
+ * @returns An angle in radians.
9
+ */
10
+ export declare function fromPoints(a: Point.Point, b: Point.Point): Angle;
11
+ /**
12
+ * Returns an `Angle` between two points, in degrees.
13
+ *
14
+ * An angle of 0 represents an upward vector, and increases in a clockwise
15
+ * direction.
16
+ *
17
+ * @deprecated Use {@link fromPoints} instead.
18
+ */
19
+ export declare function fromPointsInDegrees(a: Point.Point, b: Point.Point): Angle;
20
+ /**
21
+ * Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
22
+ */
23
+ export declare function normalize(degrees: Angle): Angle;
24
+ /**
25
+ * Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
26
+ */
27
+ export declare function normalizeRadians(radians: Angle): Angle;
28
+ /**
29
+ * Converts the given radians to degrees.
30
+ */
31
+ export declare function toDegrees(radians: Angle): Angle;
32
+ /**
33
+ * Converts the given degrees to radians.
34
+ */
35
+ export declare function toRadians(degrees: Angle): Angle;
@@ -1,49 +1,49 @@
1
- import * as Vector3 from './vector3';
2
- /**
3
- * A `BoundingBox` describes a bounding volume as an axis-aligned box.
4
- */
5
- export interface BoundingBox {
6
- min: Vector3.Vector3;
7
- max: Vector3.Vector3;
8
- }
9
- /**
10
- * Returns a `BoundingBox` with the given min and max points.
11
- */
12
- export declare const create: (min: Vector3.Vector3, max: Vector3.Vector3) => BoundingBox;
13
- /**
14
- * Construct a minimal bounding box for a set of vectors, such that all vectors
15
- * are contained by the bounding box.
16
- */
17
- export declare const fromVectors: (vectors: Vector3.Vector3[]) => BoundingBox | undefined;
18
- /**
19
- * Returns the center point of the given `BoundingBox`.
20
- */
21
- export declare const center: (boundingBox: BoundingBox) => Vector3.Vector3;
22
- /**
23
- * Returns the diagonal vector between the `min` and `max` vectors of the
24
- * given `BoundingBox`.
25
- */
26
- export declare const diagonal: (boundingBox: BoundingBox) => Vector3.Vector3;
27
- /**
28
- * Returns a floating-point spatial error tolerance based on the extents of the box.
29
- */
30
- export declare const epsilon: (boundingBox: BoundingBox) => number;
31
- /**
32
- * Combine two or more bounding boxes into a new minimal bounding box that
33
- * contains both.
34
- */
35
- export declare function union(a: BoundingBox): BoundingBox;
36
- export declare function union(a: BoundingBox, b: BoundingBox): BoundingBox;
37
- export declare function union(a: BoundingBox, b: BoundingBox, c: BoundingBox): BoundingBox;
38
- export declare function union(a: BoundingBox, b: BoundingBox, c: BoundingBox, d: BoundingBox): BoundingBox;
39
- export declare function union(...boxes: BoundingBox[]): BoundingBox | undefined;
40
- /**
41
- * Returns the distance between the min and max for the provided
42
- * bounding box for each axis.
43
- */
44
- export declare const lengths: (box: BoundingBox) => Vector3.Vector3;
45
- /**
46
- * Checks if each component of the given bounding box is populated with a numeric
47
- * component. A component is invalid if it contains a non-finite or NaN value.
48
- */
49
- export declare function isValid(boundingBox: BoundingBox): boolean;
1
+ import * as Vector3 from './vector3';
2
+ /**
3
+ * A `BoundingBox` describes a bounding volume as an axis-aligned box.
4
+ */
5
+ export interface BoundingBox {
6
+ min: Vector3.Vector3;
7
+ max: Vector3.Vector3;
8
+ }
9
+ /**
10
+ * Returns a `BoundingBox` with the given min and max points.
11
+ */
12
+ export declare const create: (min: Vector3.Vector3, max: Vector3.Vector3) => BoundingBox;
13
+ /**
14
+ * Construct a minimal bounding box for a set of vectors, such that all vectors
15
+ * are contained by the bounding box.
16
+ */
17
+ export declare const fromVectors: (vectors: Vector3.Vector3[]) => BoundingBox | undefined;
18
+ /**
19
+ * Returns the center point of the given `BoundingBox`.
20
+ */
21
+ export declare const center: (boundingBox: BoundingBox) => Vector3.Vector3;
22
+ /**
23
+ * Returns the diagonal vector between the `min` and `max` vectors of the
24
+ * given `BoundingBox`.
25
+ */
26
+ export declare const diagonal: (boundingBox: BoundingBox) => Vector3.Vector3;
27
+ /**
28
+ * Returns a floating-point spatial error tolerance based on the extents of the box.
29
+ */
30
+ export declare const epsilon: (boundingBox: BoundingBox) => number;
31
+ /**
32
+ * Combine two or more bounding boxes into a new minimal bounding box that
33
+ * contains both.
34
+ */
35
+ export declare function union(a: BoundingBox): BoundingBox;
36
+ export declare function union(a: BoundingBox, b: BoundingBox): BoundingBox;
37
+ export declare function union(a: BoundingBox, b: BoundingBox, c: BoundingBox): BoundingBox;
38
+ export declare function union(a: BoundingBox, b: BoundingBox, c: BoundingBox, d: BoundingBox): BoundingBox;
39
+ export declare function union(...boxes: BoundingBox[]): BoundingBox | undefined;
40
+ /**
41
+ * Returns the distance between the min and max for the provided
42
+ * bounding box for each axis.
43
+ */
44
+ export declare const lengths: (box: BoundingBox) => Vector3.Vector3;
45
+ /**
46
+ * Checks if each component of the given bounding box is populated with a numeric
47
+ * component. A component is invalid if it contains a non-finite or NaN value.
48
+ */
49
+ export declare function isValid(boundingBox: BoundingBox): boolean;
@@ -1,14 +1,14 @@
1
- import * as BoundingBox from './boundingBox';
2
- import * as Vector3 from './vector3';
3
- /**
4
- * A `BoundingSphere` describes a bounding volume as a sphere.
5
- */
6
- export interface BoundingSphere {
7
- center: Vector3.Vector3;
8
- radius: number;
9
- epsilon: number;
10
- }
11
- /**
12
- * Returns a `BoundingSphere` that encompasses the provided `BoundingBox`.
13
- */
14
- export declare const create: (boundingBox: BoundingBox.BoundingBox) => BoundingSphere;
1
+ import * as BoundingBox from './boundingBox';
2
+ import * as Vector3 from './vector3';
3
+ /**
4
+ * A `BoundingSphere` describes a bounding volume as a sphere.
5
+ */
6
+ export interface BoundingSphere {
7
+ center: Vector3.Vector3;
8
+ radius: number;
9
+ epsilon: number;
10
+ }
11
+ /**
12
+ * Returns a `BoundingSphere` that encompasses the provided `BoundingBox`.
13
+ */
14
+ export declare const create: (boundingBox: BoundingBox.BoundingBox) => BoundingSphere;