@itwin/core-geometry 4.1.0-dev.2 → 4.1.0-dev.20

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 (166) hide show
  1. package/CHANGELOG.md +32 -1
  2. package/lib/cjs/curve/Arc3d.d.ts +70 -86
  3. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  4. package/lib/cjs/curve/Arc3d.js +109 -96
  5. package/lib/cjs/curve/Arc3d.js.map +1 -1
  6. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +61 -41
  7. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  8. package/lib/cjs/curve/CurveChainWithDistanceIndex.js +69 -46
  9. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  10. package/lib/cjs/curve/CurveCollection.d.ts +47 -30
  11. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  12. package/lib/cjs/curve/CurveCollection.js +63 -34
  13. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  14. package/lib/cjs/curve/CurveLocationDetail.d.ts +40 -41
  15. package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
  16. package/lib/cjs/curve/CurveLocationDetail.js +31 -35
  17. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  18. package/lib/cjs/curve/CurvePrimitive.d.ts +137 -92
  19. package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
  20. package/lib/cjs/curve/CurvePrimitive.js +114 -75
  21. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  22. package/lib/cjs/curve/GeometryQuery.d.ts +26 -20
  23. package/lib/cjs/curve/GeometryQuery.d.ts.map +1 -1
  24. package/lib/cjs/curve/GeometryQuery.js +11 -9
  25. package/lib/cjs/curve/GeometryQuery.js.map +1 -1
  26. package/lib/cjs/curve/LineSegment3d.d.ts +34 -25
  27. package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
  28. package/lib/cjs/curve/LineSegment3d.js +76 -38
  29. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  30. package/lib/cjs/curve/LineString3d.d.ts +70 -51
  31. package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
  32. package/lib/cjs/curve/LineString3d.js +120 -71
  33. package/lib/cjs/curve/LineString3d.js.map +1 -1
  34. package/lib/cjs/curve/Loop.d.ts +7 -5
  35. package/lib/cjs/curve/Loop.d.ts.map +1 -1
  36. package/lib/cjs/curve/Loop.js +18 -6
  37. package/lib/cjs/curve/Loop.js.map +1 -1
  38. package/lib/cjs/curve/ParityRegion.d.ts +7 -7
  39. package/lib/cjs/curve/ParityRegion.d.ts.map +1 -1
  40. package/lib/cjs/curve/ParityRegion.js +19 -11
  41. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  42. package/lib/cjs/curve/Path.d.ts +6 -6
  43. package/lib/cjs/curve/Path.d.ts.map +1 -1
  44. package/lib/cjs/curve/Path.js +15 -9
  45. package/lib/cjs/curve/Path.js.map +1 -1
  46. package/lib/cjs/curve/ProxyCurve.d.ts +4 -6
  47. package/lib/cjs/curve/ProxyCurve.d.ts.map +1 -1
  48. package/lib/cjs/curve/ProxyCurve.js +7 -7
  49. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  50. package/lib/cjs/curve/Query/StrokeCountMap.d.ts +14 -13
  51. package/lib/cjs/curve/Query/StrokeCountMap.d.ts.map +1 -1
  52. package/lib/cjs/curve/Query/StrokeCountMap.js +9 -8
  53. package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
  54. package/lib/cjs/curve/RegionOps.d.ts +70 -43
  55. package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
  56. package/lib/cjs/curve/RegionOps.js +71 -43
  57. package/lib/cjs/curve/RegionOps.js.map +1 -1
  58. package/lib/cjs/curve/StrokeOptions.d.ts +29 -21
  59. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  60. package/lib/cjs/curve/StrokeOptions.js +44 -22
  61. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  62. package/lib/cjs/curve/UnionRegion.d.ts +6 -5
  63. package/lib/cjs/curve/UnionRegion.d.ts.map +1 -1
  64. package/lib/cjs/curve/UnionRegion.js +17 -8
  65. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  66. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts +2 -1
  67. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  68. package/lib/cjs/curve/internalContexts/GapSearchContext.js +6 -2
  69. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  70. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  71. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  72. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  73. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  74. package/lib/cjs/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  75. package/lib/cjs/curve/internalContexts/SumLengthsContext.js +4 -1
  76. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  77. package/lib/cjs/geometry3d/Matrix3d.d.ts +2 -2
  78. package/lib/cjs/geometry3d/Matrix3d.js +2 -2
  79. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  80. package/lib/cjs/geometry3d/Range.d.ts +133 -93
  81. package/lib/cjs/geometry3d/Range.d.ts.map +1 -1
  82. package/lib/cjs/geometry3d/Range.js +296 -144
  83. package/lib/cjs/geometry3d/Range.js.map +1 -1
  84. package/lib/esm/curve/Arc3d.d.ts +70 -86
  85. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  86. package/lib/esm/curve/Arc3d.js +109 -96
  87. package/lib/esm/curve/Arc3d.js.map +1 -1
  88. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +61 -41
  89. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  90. package/lib/esm/curve/CurveChainWithDistanceIndex.js +69 -46
  91. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  92. package/lib/esm/curve/CurveCollection.d.ts +47 -30
  93. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  94. package/lib/esm/curve/CurveCollection.js +63 -34
  95. package/lib/esm/curve/CurveCollection.js.map +1 -1
  96. package/lib/esm/curve/CurveLocationDetail.d.ts +40 -41
  97. package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
  98. package/lib/esm/curve/CurveLocationDetail.js +31 -35
  99. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  100. package/lib/esm/curve/CurvePrimitive.d.ts +137 -92
  101. package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
  102. package/lib/esm/curve/CurvePrimitive.js +114 -75
  103. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  104. package/lib/esm/curve/GeometryQuery.d.ts +26 -20
  105. package/lib/esm/curve/GeometryQuery.d.ts.map +1 -1
  106. package/lib/esm/curve/GeometryQuery.js +11 -9
  107. package/lib/esm/curve/GeometryQuery.js.map +1 -1
  108. package/lib/esm/curve/LineSegment3d.d.ts +34 -25
  109. package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
  110. package/lib/esm/curve/LineSegment3d.js +76 -38
  111. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  112. package/lib/esm/curve/LineString3d.d.ts +70 -51
  113. package/lib/esm/curve/LineString3d.d.ts.map +1 -1
  114. package/lib/esm/curve/LineString3d.js +120 -71
  115. package/lib/esm/curve/LineString3d.js.map +1 -1
  116. package/lib/esm/curve/Loop.d.ts +7 -5
  117. package/lib/esm/curve/Loop.d.ts.map +1 -1
  118. package/lib/esm/curve/Loop.js +18 -6
  119. package/lib/esm/curve/Loop.js.map +1 -1
  120. package/lib/esm/curve/ParityRegion.d.ts +7 -7
  121. package/lib/esm/curve/ParityRegion.d.ts.map +1 -1
  122. package/lib/esm/curve/ParityRegion.js +19 -11
  123. package/lib/esm/curve/ParityRegion.js.map +1 -1
  124. package/lib/esm/curve/Path.d.ts +6 -6
  125. package/lib/esm/curve/Path.d.ts.map +1 -1
  126. package/lib/esm/curve/Path.js +15 -9
  127. package/lib/esm/curve/Path.js.map +1 -1
  128. package/lib/esm/curve/ProxyCurve.d.ts +4 -6
  129. package/lib/esm/curve/ProxyCurve.d.ts.map +1 -1
  130. package/lib/esm/curve/ProxyCurve.js +7 -7
  131. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  132. package/lib/esm/curve/Query/StrokeCountMap.d.ts +14 -13
  133. package/lib/esm/curve/Query/StrokeCountMap.d.ts.map +1 -1
  134. package/lib/esm/curve/Query/StrokeCountMap.js +9 -8
  135. package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
  136. package/lib/esm/curve/RegionOps.d.ts +70 -43
  137. package/lib/esm/curve/RegionOps.d.ts.map +1 -1
  138. package/lib/esm/curve/RegionOps.js +71 -43
  139. package/lib/esm/curve/RegionOps.js.map +1 -1
  140. package/lib/esm/curve/StrokeOptions.d.ts +29 -21
  141. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  142. package/lib/esm/curve/StrokeOptions.js +44 -22
  143. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  144. package/lib/esm/curve/UnionRegion.d.ts +6 -5
  145. package/lib/esm/curve/UnionRegion.d.ts.map +1 -1
  146. package/lib/esm/curve/UnionRegion.js +17 -8
  147. package/lib/esm/curve/UnionRegion.js.map +1 -1
  148. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts +2 -1
  149. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  150. package/lib/esm/curve/internalContexts/GapSearchContext.js +6 -2
  151. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  152. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  153. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  154. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  155. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  156. package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  157. package/lib/esm/curve/internalContexts/SumLengthsContext.js +4 -1
  158. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  159. package/lib/esm/geometry3d/Matrix3d.d.ts +2 -2
  160. package/lib/esm/geometry3d/Matrix3d.js +2 -2
  161. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  162. package/lib/esm/geometry3d/Range.d.ts +133 -93
  163. package/lib/esm/geometry3d/Range.d.ts.map +1 -1
  164. package/lib/esm/geometry3d/Range.js +296 -144
  165. package/lib/esm/geometry3d/Range.js.map +1 -1
  166. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"SumLengthsContext.js","sourceRoot":"","sources":["../../../../src/curve/internalContexts/SumLengthsContext.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,sDAA4D;AAE5D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,wCAAuB;IAE5D,gBAAwB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC;IAC5C,MAAM,CAAC,UAAU,CAAC,MAAuB;QAC9C,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACxC,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IACe,sBAAsB,CAAC,cAA8B,EAAE,cAAsB;QAC3F,IAAI,CAAC,IAAI,IAAI,cAAc,CAAC,WAAW,EAAE,CAAC;IAC5C,CAAC;CACF;AAXD,8CAWC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Curve\r\n */\r\nimport { CurveCollection } from \"../CurveCollection\";\r\nimport { CurvePrimitive } from \"../CurvePrimitive\";\r\nimport { RecursiveCurveProcessor } from \"../CurveProcessor\";\r\n\r\n/**\r\n * Algorithmic class: Sum lengths of curves\r\n * @internal\r\n */\r\nexport class SumLengthsContext extends RecursiveCurveProcessor {\r\n private _sum: number;\r\n private constructor() { super(); this._sum = 0.0; }\r\n public static sumLengths(target: CurveCollection): number {\r\n const context = new SumLengthsContext();\r\n target.announceToCurveProcessor(context);\r\n return context._sum;\r\n }\r\n public override announceCurvePrimitive(curvePrimitive: CurvePrimitive, _indexInParent: number): void {\r\n this._sum += curvePrimitive.curveLength();\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"SumLengthsContext.js","sourceRoot":"","sources":["../../../../src/curve/internalContexts/SumLengthsContext.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,sDAA4D;AAE5D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,wCAAuB;IAE5D;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IACM,MAAM,CAAC,UAAU,CAAC,MAAuB;QAC9C,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACxC,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IACe,sBAAsB,CAAC,cAA8B,EAAE,cAAsB;QAC3F,IAAI,CAAC,IAAI,IAAI,cAAc,CAAC,WAAW,EAAE,CAAC;IAC5C,CAAC;CACF;AAdD,8CAcC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Curve\r\n */\r\nimport { CurveCollection } from \"../CurveCollection\";\r\nimport { CurvePrimitive } from \"../CurvePrimitive\";\r\nimport { RecursiveCurveProcessor } from \"../CurveProcessor\";\r\n\r\n/**\r\n * Algorithmic class: Sum lengths of curves\r\n * @internal\r\n */\r\nexport class SumLengthsContext extends RecursiveCurveProcessor {\r\n private _sum: number;\r\n private constructor() {\r\n super();\r\n this._sum = 0.0;\r\n }\r\n public static sumLengths(target: CurveCollection): number {\r\n const context = new SumLengthsContext();\r\n target.announceToCurveProcessor(context);\r\n return context._sum;\r\n }\r\n public override announceCurvePrimitive(curvePrimitive: CurvePrimitive, _indexInParent: number): void {\r\n this._sum += curvePrimitive.curveLength();\r\n }\r\n}\r\n"]}
@@ -327,8 +327,8 @@ export declare class Matrix3d implements BeJSONFunctions {
327
327
  static createPerpendicularVectorFavorPlaneContainingZ(vectorA: Vector3d, result?: Vector3d): Vector3d;
328
328
  /**
329
329
  * Create a matrix from column vectors, shuffled into place per axisOrder
330
- * For example, if axisOrder = XYZ then it returns [vectorU, vectorV, vectorW]
331
- * Another example, if axisOrder = YZX then it returns [vectorW, vectorU, vectorV] because
330
+ * * For example, if axisOrder = XYZ then it returns [vectorU, vectorV, vectorW]
331
+ * * Another example, if axisOrder = YZX then it returns [vectorW, vectorU, vectorV] because
332
332
  * Y is at index 0 so vectorU goes to the column Y (column 2), Z is at index 1 so vectorV goes
333
333
  * to the column Z (column 3), and X is at index 2 so vectorW goes to the column X (column 1)
334
334
  */
@@ -617,8 +617,8 @@ class Matrix3d {
617
617
  }
618
618
  /**
619
619
  * Create a matrix from column vectors, shuffled into place per axisOrder
620
- * For example, if axisOrder = XYZ then it returns [vectorU, vectorV, vectorW]
621
- * Another example, if axisOrder = YZX then it returns [vectorW, vectorU, vectorV] because
620
+ * * For example, if axisOrder = XYZ then it returns [vectorU, vectorV, vectorW]
621
+ * * Another example, if axisOrder = YZX then it returns [vectorW, vectorU, vectorV] because
622
622
  * Y is at index 0 so vectorU goes to the column Y (column 2), Z is at index 1 so vectorV goes
623
623
  * to the column Z (column 3), and X is at index 2 so vectorW goes to the column X (column 1)
624
624
  */