@itwin/core-geometry 4.0.0-dev.22 → 4.0.0-dev.24

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 (123) hide show
  1. package/lib/cjs/Geometry.d.ts +23 -0
  2. package/lib/cjs/Geometry.d.ts.map +1 -1
  3. package/lib/cjs/Geometry.js +25 -1
  4. package/lib/cjs/Geometry.js.map +1 -1
  5. package/lib/cjs/geometry3d/BarycentricTriangle.d.ts +195 -8
  6. package/lib/cjs/geometry3d/BarycentricTriangle.d.ts.map +1 -1
  7. package/lib/cjs/geometry3d/BarycentricTriangle.js +459 -11
  8. package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
  9. package/lib/cjs/geometry3d/GrowableXYArray.d.ts +1 -1
  10. package/lib/cjs/geometry3d/GrowableXYArray.d.ts.map +1 -1
  11. package/lib/cjs/geometry3d/GrowableXYArray.js +1 -1
  12. package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
  13. package/lib/cjs/geometry3d/IndexedXYCollection.d.ts +22 -7
  14. package/lib/cjs/geometry3d/IndexedXYCollection.d.ts.map +1 -1
  15. package/lib/cjs/geometry3d/IndexedXYCollection.js +41 -5
  16. package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
  17. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +58 -4
  18. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  19. package/lib/cjs/geometry3d/IndexedXYZCollection.js +102 -4
  20. package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
  21. package/lib/cjs/geometry3d/Point2dArrayCarrier.d.ts +10 -0
  22. package/lib/cjs/geometry3d/Point2dArrayCarrier.d.ts.map +1 -1
  23. package/lib/cjs/geometry3d/Point2dArrayCarrier.js +14 -0
  24. package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
  25. package/lib/cjs/geometry3d/Point3dArrayCarrier.d.ts +0 -6
  26. package/lib/cjs/geometry3d/Point3dArrayCarrier.d.ts.map +1 -1
  27. package/lib/cjs/geometry3d/Point3dArrayCarrier.js +0 -6
  28. package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
  29. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +1 -1
  30. package/lib/cjs/geometry3d/Point3dVector3d.js +2 -2
  31. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  32. package/lib/cjs/geometry3d/PointHelpers.d.ts +14 -1
  33. package/lib/cjs/geometry3d/PointHelpers.d.ts.map +1 -1
  34. package/lib/cjs/geometry3d/PointHelpers.js +33 -1
  35. package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
  36. package/lib/cjs/geometry3d/PolygonOps.d.ts +120 -10
  37. package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -1
  38. package/lib/cjs/geometry3d/PolygonOps.js +412 -12
  39. package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
  40. package/lib/cjs/polyface/FacetLocationDetail.d.ts +264 -0
  41. package/lib/cjs/polyface/FacetLocationDetail.d.ts.map +1 -0
  42. package/lib/cjs/polyface/FacetLocationDetail.js +378 -0
  43. package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -0
  44. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts +2 -5
  45. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  46. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js +5 -2
  47. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  48. package/lib/cjs/polyface/PolyfaceBuilder.d.ts +20 -14
  49. package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -1
  50. package/lib/cjs/polyface/PolyfaceBuilder.js +21 -17
  51. package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
  52. package/lib/cjs/polyface/PolyfaceData.d.ts +1 -1
  53. package/lib/cjs/polyface/PolyfaceData.d.ts.map +1 -1
  54. package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
  55. package/lib/cjs/polyface/PolyfaceQuery.d.ts +22 -1
  56. package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
  57. package/lib/cjs/polyface/PolyfaceQuery.js +52 -2
  58. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  59. package/lib/cjs/solid/Sphere.d.ts +5 -5
  60. package/lib/cjs/solid/Sphere.js +5 -5
  61. package/lib/cjs/solid/Sphere.js.map +1 -1
  62. package/lib/esm/Geometry.d.ts +23 -0
  63. package/lib/esm/Geometry.d.ts.map +1 -1
  64. package/lib/esm/Geometry.js +24 -0
  65. package/lib/esm/Geometry.js.map +1 -1
  66. package/lib/esm/geometry3d/BarycentricTriangle.d.ts +195 -8
  67. package/lib/esm/geometry3d/BarycentricTriangle.d.ts.map +1 -1
  68. package/lib/esm/geometry3d/BarycentricTriangle.js +459 -12
  69. package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
  70. package/lib/esm/geometry3d/GrowableXYArray.d.ts +1 -1
  71. package/lib/esm/geometry3d/GrowableXYArray.d.ts.map +1 -1
  72. package/lib/esm/geometry3d/GrowableXYArray.js +1 -1
  73. package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
  74. package/lib/esm/geometry3d/IndexedXYCollection.d.ts +22 -7
  75. package/lib/esm/geometry3d/IndexedXYCollection.d.ts.map +1 -1
  76. package/lib/esm/geometry3d/IndexedXYCollection.js +41 -5
  77. package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
  78. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +58 -4
  79. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  80. package/lib/esm/geometry3d/IndexedXYZCollection.js +103 -5
  81. package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
  82. package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts +10 -0
  83. package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts.map +1 -1
  84. package/lib/esm/geometry3d/Point2dArrayCarrier.js +14 -0
  85. package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
  86. package/lib/esm/geometry3d/Point3dArrayCarrier.d.ts +0 -6
  87. package/lib/esm/geometry3d/Point3dArrayCarrier.d.ts.map +1 -1
  88. package/lib/esm/geometry3d/Point3dArrayCarrier.js +0 -6
  89. package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
  90. package/lib/esm/geometry3d/Point3dVector3d.d.ts +1 -1
  91. package/lib/esm/geometry3d/Point3dVector3d.js +2 -2
  92. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  93. package/lib/esm/geometry3d/PointHelpers.d.ts +14 -1
  94. package/lib/esm/geometry3d/PointHelpers.d.ts.map +1 -1
  95. package/lib/esm/geometry3d/PointHelpers.js +33 -1
  96. package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
  97. package/lib/esm/geometry3d/PolygonOps.d.ts +120 -10
  98. package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -1
  99. package/lib/esm/geometry3d/PolygonOps.js +411 -12
  100. package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
  101. package/lib/esm/polyface/FacetLocationDetail.d.ts +264 -0
  102. package/lib/esm/polyface/FacetLocationDetail.d.ts.map +1 -0
  103. package/lib/esm/polyface/FacetLocationDetail.js +371 -0
  104. package/lib/esm/polyface/FacetLocationDetail.js.map +1 -0
  105. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts +2 -5
  106. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  107. package/lib/esm/polyface/IndexedPolyfaceVisitor.js +5 -2
  108. package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  109. package/lib/esm/polyface/PolyfaceBuilder.d.ts +20 -14
  110. package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -1
  111. package/lib/esm/polyface/PolyfaceBuilder.js +21 -17
  112. package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
  113. package/lib/esm/polyface/PolyfaceData.d.ts +1 -1
  114. package/lib/esm/polyface/PolyfaceData.d.ts.map +1 -1
  115. package/lib/esm/polyface/PolyfaceData.js.map +1 -1
  116. package/lib/esm/polyface/PolyfaceQuery.d.ts +22 -1
  117. package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
  118. package/lib/esm/polyface/PolyfaceQuery.js +52 -2
  119. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  120. package/lib/esm/solid/Sphere.d.ts +5 -5
  121. package/lib/esm/solid/Sphere.js +5 -5
  122. package/lib/esm/solid/Sphere.js.map +1 -1
  123. package/package.json +4 -4
@@ -1,14 +1,67 @@
1
1
  /** @packageDocumentation
2
2
  * @module CartesianGeometry
3
3
  */
4
- import { Point3d } from "./Point3dVector3d";
4
+ import { PolygonLocation } from "../Geometry";
5
+ import { Point3d, Vector3d } from "./Point3dVector3d";
6
+ import { Ray3d } from "./Ray3d";
5
7
  /**
6
- * 3 points defining a triangle to be evaluated with Barycentric coordinates.
8
+ * Carries data about a location in the plane of a triangle.
9
+ * * Each instance carries both world and barycentric coordinates for the point, and provides query services on the latter.
10
+ * * No tolerance is used when querying barycentric coordinates (e.g., `isInsideOrOn`, `classify`). Use `snapLocalToEdge`
11
+ * to adjust the barycentric coordinates to a triangle edge if they lie within a parametric tolerance.
12
+ *
13
+ * Properties of the barycentric coordinates (b0, b1, b2) of a point p in the plane of a triangle T with vertices p0, p1, p2:
14
+ * * 1 = b0 + b1 + b2
15
+ * * p = b0 * p0 + b1 * p1 + b2 * p2
16
+ * * If T is spanned by the vectors U=p1-p0 and V=p2-p0, then the vector P=p-p0 can be written P = b1 * U + b2 * V.
17
+ * * The coordinates are all nonnegative if and only if p is inside or on T.
18
+ * * Exactly one coordinate is zero if and only if p lies on an (infinitely extended) edge of T.
19
+ * * Exactly two coordinates are zero if and only if p coincides with a vertex of T.
20
+ * @public
21
+ */
22
+ export declare class TriangleLocationDetail {
23
+ /** The Cartesian coordinates of the point p. */
24
+ world: Point3d;
25
+ /** The barycentric coordinates of p with respect to the triangle. Assumed to sum to one. */
26
+ local: Point3d;
27
+ /** Application-specific number */
28
+ a: number;
29
+ /** Index of the triangle vertex at the base of the edge closest to p. */
30
+ closestEdgeIndex: number;
31
+ /** The parameter along the closest edge of the projection of p. */
32
+ closestEdgeParam: number;
33
+ private constructor();
34
+ /** Invalidate this detail. */
35
+ invalidate(): void;
36
+ /** Create an invalid detail.
37
+ * @param result optional pre-allocated object to fill and return
38
+ */
39
+ static create(result?: TriangleLocationDetail): TriangleLocationDetail;
40
+ /** Set the instance contents from the other detail.
41
+ * @param other detail to clone
42
+ */
43
+ copyContentsFrom(other: TriangleLocationDetail): void;
44
+ /** Whether this detail is invalid. */
45
+ get isValid(): boolean;
46
+ /** Queries the barycentric coordinates to determine whether this instance specifies a location inside or on the triangle.
47
+ * @see classify
48
+ */
49
+ get isInsideOrOn(): boolean;
50
+ /** Queries this detail to classify the location of this instance with respect to the triangle.
51
+ * @returns location code
52
+ * @see isInsideOrOn
53
+ */
54
+ get classify(): PolygonLocation;
55
+ }
56
+ /**
57
+ * 3 points defining a triangle to be evaluated with barycentric coordinates.
7
58
  * @public
8
59
  */
9
60
  export declare class BarycentricTriangle {
10
61
  /** Array of 3 point coordinates for the triangle. */
11
62
  points: Point3d[];
63
+ /** Edge length squared cache, indexed by opposite vertex index */
64
+ protected edgeLength2: number[];
12
65
  /** Constructor.
13
66
  * * Point references are CAPTURED
14
67
  */
@@ -26,18 +79,129 @@ export declare class BarycentricTriangle {
26
79
  get aspectRatio(): number;
27
80
  /** Return the area of the triangle. */
28
81
  get area(): number;
82
+ /** Return the perimeter of the triangle */
83
+ get perimeter(): number;
29
84
  /** Sum the points with given scales.
30
- * * In normal use, the scales will add to 1 and the result point is in the plane of the triangle.
31
- * * If scales do not add to 1, the point is in the triangle scaled (by the scale sum) from the origin.
85
+ * * If the scales sum to 1, they are barycentric coordinates, and hence the result point is in the plane of the triangle.
86
+ * * If the scales do not sum to 1, the point is in the triangle scaled (by the scale sum) from the origin.
87
+ * @param b0 scale to apply to vertex 0
88
+ * @param b1 scale to apply to vertex 1
89
+ * @param b2 scale to apply to vertex 2
90
+ * @param result optional pre-allocated point to fill and return
91
+ * @return linear combination of the vertices of this triangle
92
+ * @see pointToFraction
93
+ */
94
+ fractionToPoint(b0: number, b1: number, b2: number, result?: Point3d): Point3d;
95
+ private static _workPoint?;
96
+ private static _workVector0?;
97
+ private static _workVector1?;
98
+ private static _workRay?;
99
+ private static _workMatrix?;
100
+ /** Compute the projection of the given point onto the plane of this triangle.
101
+ * @param point point p to project
102
+ * @param result optional pre-allocated object to fill and return
103
+ * @returns details d of the projection point P = `d.point`:
104
+ * * `d.isValid` returns true if and only if `this.normal()` is defined.
105
+ * * `d.classify` can be used to determine where P lies with respect to the triangle.
106
+ * * `d.a` is the signed projection distance: P = p + a * `this.normal()`.
107
+ * @see fractionToPoint
108
+ */
109
+ pointToFraction(point: Point3d, result?: TriangleLocationDetail): TriangleLocationDetail;
110
+ /** Convert from opposite-vertex to start-vertex edge indexing. */
111
+ static edgeOppositeVertexIndexToStartVertexIndex(edgeIndex: number): number;
112
+ /** Convert from start-vertex to opposite-vertex edge indexing. */
113
+ static edgeStartVertexIndexToOppositeVertexIndex(startVertexIndex: number): number;
114
+ /** Examine a point's barycentric coordinates to determine if it lies inside the triangle but not on an edge/vertex.
115
+ * * No parametric tolerance is used.
116
+ * * It is assumed b0 + b1 + b2 = 1.
117
+ * @returns whether the point with barycentric coordinates is strictly inside the triangle.
118
+ */
119
+ static isInsideTriangle(b0: number, b1: number, b2: number): boolean;
120
+ /** Examine a point's barycentric coordinates to determine if it lies inside the triangle or on an edge/vertex.
121
+ * * No parametric tolerance is used.
122
+ * * It is assumed b0 + b1 + b2 = 1.
123
+ * @returns whether the point with barycentric coordinates is inside or on the triangle.
32
124
  */
33
- fractionToPoint(a0: number, a1: number, a2: number, result?: Point3d): Point3d;
125
+ static isInsideOrOnTriangle(b0: number, b1: number, b2: number): boolean;
126
+ /** Examine a point's barycentric coordinates to determine if it lies "outside" an edge of the triangle.
127
+ * * No parametric tolerance is used.
128
+ * * It is assumed b0 + b1 + b2 = 1.
129
+ * @returns index of vertex/edge i for which b_i < 0 and b_j >= 0 and b_k >= 0, or -1
130
+ */
131
+ private static isInRegionBeyondEdge;
132
+ /** Examine a point's barycentric coordinates to determine if it lies "outside" a vertex of the triangle.
133
+ * * No parametric tolerance is used.
134
+ * * It is assumed b0 + b1 + b2 = 1.
135
+ * @returns index of vertex i for which and b_j < 0 and b_k < 0, or -1
136
+ */
137
+ private static isInRegionBeyondVertex;
138
+ /** Examine a point's barycentric coordinates to determine if it lies on a vertex of the triangle.
139
+ * * No parametric tolerance is used.
140
+ * * It is assumed b0 + b1 + b2 = 1.
141
+ * @returns index of vertex i for which b_i = 1 and b_j = b_k = 0, or -1
142
+ */
143
+ private static isOnVertex;
144
+ /** Examine a point's barycentric coordinates to determine if it lies on a bounded edge of the triangle.
145
+ * * No parametric tolerance is used.
146
+ * * It is assumed b0 + b1 + b2 = 1.
147
+ * @returns index of vertex/edge i for which b_i = 0 and b_j > 0 and b_k > 0, or -1
148
+ */
149
+ private static isOnBoundedEdge;
150
+ /** @returns edge/vertex index (0,1,2) for which the function has a minimum value */
151
+ private static indexOfMinimum;
152
+ /** Return the index of the closest triangle vertex to the point given by its barycentric coordinates. */
153
+ closestVertexIndex(b0: number, b1: number, b2: number): number;
154
+ /** Compute the projection of barycentric point p onto the (unbounded) edge e_k(v_i,v_j) of the triangle T(v_i,v_j,v_k).
155
+ * @param k vertex v_k is opposite the edge e_k
156
+ * @param b barycentric coordinates of point to project
157
+ * @returns parameter s along e_k, such that:
158
+ * * the projection point is q = v_i + s * (v_j - v_i)
159
+ * * the barycentric coords of the projection are q_ijk = (1 - s, s, 0)
160
+ */
161
+ private computeProjectionToEdge;
162
+ /** Compute the projection of a barycentric point p to the triangle T(v_0,v_1,v_2).
163
+ * @param b0 barycentric coordinate of p corresponding to v_0
164
+ * @param b1 barycentric coordinate of p corresponding to v_1
165
+ * @param b2 barycentric coordinate of p corresponding to v_2
166
+ * @returns closest edge start vertex index i and projection parameter u such that the projection q = v_i + u * (v_j - v_i).
167
+ */
168
+ closestPoint(b0: number, b1: number, b2: number): {
169
+ closestEdgeIndex: number;
170
+ closestEdgeParam: number;
171
+ };
172
+ /** Compute the intersection of a line (parameterized as a ray) with the plane of this triangle.
173
+ * @param ray infinite line to intersect, as a ray
174
+ * @param result optional pre-allocated object to fill and return
175
+ * @returns details d of the line-plane intersection `d.point`:
176
+ * * `d.isValid` returns true if and only if the line intersects the plane.
177
+ * * `d.classify` can be used to determine where the intersection lies with respect to the triangle.
178
+ * * `d.a` is the intersection parameter. If `d.a` >= 0, the ray intersects the plane of the triangle.
179
+ * @see pointToFraction
180
+ */
181
+ intersectRay3d(ray: Ray3d, result?: TriangleLocationDetail): TriangleLocationDetail;
182
+ /** Compute the intersection of a line (parameterized as a line segment) with the plane of this triangle.
183
+ * @param point0 start point of segment on line to intersect
184
+ * @param point1 end point of segment on line to intersect
185
+ * @param result optional pre-allocated object to fill and return
186
+ * @returns details d of the line-plane intersection `d.point`:
187
+ * * `d.isValid` returns true if and only if the line intersects the plane.
188
+ * * `d.classify` can be used to determine where the intersection lies with respect to the triangle.
189
+ * * `d.a` is the intersection parameter. If `d.a` is in [0,1], the segment intersects the plane of the triangle.
190
+ * @see intersectRay3d
191
+ */
192
+ intersectSegment(point0: Point3d, point1: Point3d, result?: TriangleLocationDetail): TriangleLocationDetail;
193
+ /** Adjust the location to an edge of the triangle if within either given tolerance.
194
+ * @param location details of a point in the plane of the triangle, `location.local` and `location.world` possibly updated to lie on a triangle edge
195
+ * @param distanceTolerance absolute distance tolerance (or zero to ignore)
196
+ * @param parameterTolerance barycentric coordinate fractional tolerance (or zero to ignore)
197
+ * @return whether the location was adjusted
198
+ */
199
+ snapLocationToEdge(location: TriangleLocationDetail, distanceTolerance?: number, parameterTolerance?: number): boolean;
34
200
  /** Copy all values from `other`
35
201
  */
36
202
  setFrom(other: BarycentricTriangle): void;
37
- /** copy contents of (not pointers to) the given points. */
203
+ /** Copy contents of (not pointers to) the given points. A vertex is zeroed if its corresponding input point is undefined. */
38
204
  set(point0: Point3d | undefined, point1: Point3d | undefined, point2: Point3d | undefined): void;
39
- private static _workVector0?;
40
- private static _workVector1?;
41
205
  /**
42
206
  * * For `this` and `other` BarycentricTriangles, compute cross products of vectors from point0 to point1 and from point0 to point2.
43
207
  * * return the dot product of those two
@@ -45,7 +209,30 @@ export declare class BarycentricTriangle {
45
209
  dotProductOfCrossProductsFromOrigin(other: BarycentricTriangle): number;
46
210
  /** Return the centroid of the 3 points. */
47
211
  centroid(result?: Point3d): Point3d;
212
+ /** Return the incenter of the triangle. */
213
+ incenter(result?: Point3d): Point3d;
214
+ /** Return the circumcenter of the triangle. */
215
+ circumcenter(result?: Point3d): Point3d;
216
+ /** Return the unit normal of the triangle.
217
+ * @param result optional pre-allocated vector to fill and return.
218
+ * @returns unit normal, or undefined if cross product length is too small.
219
+ */
220
+ normal(result?: Vector3d): Vector3d | undefined;
48
221
  /** test for point-by-point `isAlmostEqual` relationship. */
49
222
  isAlmostEqual(other: BarycentricTriangle): boolean;
223
+ /** Compute length of the triangle edge opposite the vertex with the given index.
224
+ * @see edgeStartVertexIndexToOppositeVertexIndex
225
+ */
226
+ edgeLength(oppositeVertexIndex: number): number;
227
+ /** Compute squared length of the triangle edge opposite the vertex with the given index.
228
+ * @see edgeStartVertexIndexToOppositeVertexIndex
229
+ */
230
+ edgeLengthSquared(oppositeVertexIndex: number): number;
231
+ /** Compute dot product of the edge vectors based at the vertex with the given index. */
232
+ dotProductOfEdgeVectorsAtVertex(baseVertexIndex: number): number;
233
+ /** Compute the squared distance between two points given by their barycentric coordinates.
234
+ * * It is assumed that a0 + a1 + a2 = b0 + b1 + b2 = 1.
235
+ */
236
+ distanceSquared(a0: number, a1: number, a2: number, b0: number, b1: number, b2: number): number;
50
237
  }
51
238
  //# sourceMappingURL=BarycentricTriangle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BarycentricTriangle.d.ts","sourceRoot":"","sources":["../../../src/geometry3d/BarycentricTriangle.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,OAAO,EAAY,MAAM,mBAAmB,CAAC;AAEtD;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,qDAAqD;IAC9C,MAAM,EAAE,OAAO,EAAE,CAAC;IACzB;;OAEG;IACH,SAAS,aAAa,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IAOvE;;;OAGG;WACW,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,mBAAmB;IAO5L,mEAAmE;WACrD,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,mBAAmB;IAM1H,oEAAoE;IAC7D,KAAK,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,mBAAmB;IAI/D,qDAAqD;IACrD,IAAW,WAAW,IAAI,MAAM,CAG/B;IACD,uCAAuC;IACvC,IAAW,IAAI,IAAI,MAAM,CAExB;IACD;;;OAGG;IACI,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAIrF;OACG;IACI,OAAO,CAAC,KAAK,EAAE,mBAAmB;IAKzC,2DAA2D;IACpD,GAAG,CAA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