@itwin/core-geometry 4.1.0-dev.6 → 4.1.0-dev.63

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 (310) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/lib/cjs/clipping/ClipPrimitive.d.ts.map +1 -1
  3. package/lib/cjs/clipping/ClipPrimitive.js +2 -0
  4. package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
  5. package/lib/cjs/core-geometry.d.ts +1 -0
  6. package/lib/cjs/core-geometry.d.ts.map +1 -1
  7. package/lib/cjs/core-geometry.js +4 -1
  8. package/lib/cjs/core-geometry.js.map +1 -1
  9. package/lib/cjs/curve/Arc3d.d.ts +1 -0
  10. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  11. package/lib/cjs/curve/Arc3d.js +1 -0
  12. package/lib/cjs/curve/Arc3d.js.map +1 -1
  13. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +61 -41
  14. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  15. package/lib/cjs/curve/CurveChainWithDistanceIndex.js +69 -46
  16. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  17. package/lib/cjs/curve/CurveCollection.d.ts +36 -26
  18. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  19. package/lib/cjs/curve/CurveCollection.js +46 -39
  20. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  21. package/lib/cjs/curve/CurveCurve.d.ts.map +1 -1
  22. package/lib/cjs/curve/CurveCurve.js.map +1 -1
  23. package/lib/cjs/curve/CurveFactory.d.ts +67 -3
  24. package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
  25. package/lib/cjs/curve/CurveFactory.js +75 -7
  26. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  27. package/lib/cjs/curve/CurveLocationDetail.d.ts +6 -6
  28. package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
  29. package/lib/cjs/curve/CurveLocationDetail.js +9 -7
  30. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  31. package/lib/cjs/curve/CurvePrimitive.d.ts +4 -3
  32. package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
  33. package/lib/cjs/curve/CurvePrimitive.js +4 -3
  34. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  35. package/lib/cjs/curve/LineSegment3d.d.ts +6 -4
  36. package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
  37. package/lib/cjs/curve/LineSegment3d.js +4 -4
  38. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  39. package/lib/cjs/curve/LineString3d.d.ts +1 -1
  40. package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
  41. package/lib/cjs/curve/LineString3d.js +1 -1
  42. package/lib/cjs/curve/LineString3d.js.map +1 -1
  43. package/lib/cjs/curve/Loop.d.ts +7 -5
  44. package/lib/cjs/curve/Loop.d.ts.map +1 -1
  45. package/lib/cjs/curve/Loop.js +18 -6
  46. package/lib/cjs/curve/Loop.js.map +1 -1
  47. package/lib/cjs/curve/ParityRegion.d.ts +7 -7
  48. package/lib/cjs/curve/ParityRegion.d.ts.map +1 -1
  49. package/lib/cjs/curve/ParityRegion.js +19 -11
  50. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  51. package/lib/cjs/curve/Path.d.ts +6 -6
  52. package/lib/cjs/curve/Path.d.ts.map +1 -1
  53. package/lib/cjs/curve/Path.js +15 -9
  54. package/lib/cjs/curve/Path.js.map +1 -1
  55. package/lib/cjs/curve/ProxyCurve.d.ts +4 -6
  56. package/lib/cjs/curve/ProxyCurve.d.ts.map +1 -1
  57. package/lib/cjs/curve/ProxyCurve.js +7 -7
  58. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  59. package/lib/cjs/curve/RegionOps.d.ts +69 -47
  60. package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
  61. package/lib/cjs/curve/RegionOps.js +70 -47
  62. package/lib/cjs/curve/RegionOps.js.map +1 -1
  63. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  64. package/lib/cjs/curve/StrokeOptions.js +6 -2
  65. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  66. package/lib/cjs/curve/UnionRegion.d.ts +6 -5
  67. package/lib/cjs/curve/UnionRegion.d.ts.map +1 -1
  68. package/lib/cjs/curve/UnionRegion.js +17 -8
  69. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  70. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts +2 -1
  71. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  72. package/lib/cjs/curve/internalContexts/GapSearchContext.js +6 -2
  73. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  74. package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts +4 -0
  75. package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
  76. package/lib/cjs/curve/internalContexts/MultiChainCollector.js +5 -2
  77. package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
  78. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  79. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  80. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  81. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  82. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts +56 -34
  83. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
  84. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +153 -87
  85. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  86. package/lib/cjs/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  87. package/lib/cjs/curve/internalContexts/SumLengthsContext.js +4 -1
  88. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  89. package/lib/cjs/geometry3d/Angle.d.ts +9 -0
  90. package/lib/cjs/geometry3d/Angle.d.ts.map +1 -1
  91. package/lib/cjs/geometry3d/Angle.js +13 -0
  92. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  93. package/lib/cjs/geometry3d/BilinearPatch.d.ts +43 -48
  94. package/lib/cjs/geometry3d/BilinearPatch.d.ts.map +1 -1
  95. package/lib/cjs/geometry3d/BilinearPatch.js +51 -55
  96. package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
  97. package/lib/cjs/geometry3d/Ellipsoid.d.ts +1 -1
  98. package/lib/cjs/geometry3d/Ellipsoid.js +1 -1
  99. package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
  100. package/lib/cjs/geometry3d/FrameBuilder.d.ts.map +1 -1
  101. package/lib/cjs/geometry3d/FrameBuilder.js +13 -11
  102. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  103. package/lib/cjs/geometry3d/GeometryHandler.d.ts +5 -5
  104. package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
  105. package/lib/cjs/geometry3d/Matrix3d.d.ts +18 -0
  106. package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
  107. package/lib/cjs/geometry3d/Matrix3d.js +27 -0
  108. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  109. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
  110. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
  111. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js +35 -32
  112. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  113. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +8 -0
  114. package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
  115. package/lib/cjs/geometry3d/Point3dVector3d.js +13 -0
  116. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  117. package/lib/cjs/geometry3d/PolylineOps.d.ts +16 -1
  118. package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
  119. package/lib/cjs/geometry3d/PolylineOps.js +55 -0
  120. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  121. package/lib/cjs/geometry3d/Range.d.ts +134 -94
  122. package/lib/cjs/geometry3d/Range.d.ts.map +1 -1
  123. package/lib/cjs/geometry3d/Range.js +297 -145
  124. package/lib/cjs/geometry3d/Range.js.map +1 -1
  125. package/lib/cjs/geometry3d/Ray3d.d.ts.map +1 -1
  126. package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
  127. package/lib/cjs/geometry3d/Transform.d.ts +7 -0
  128. package/lib/cjs/geometry3d/Transform.d.ts.map +1 -1
  129. package/lib/cjs/geometry3d/Transform.js +12 -0
  130. package/lib/cjs/geometry3d/Transform.js.map +1 -1
  131. package/lib/cjs/polyface/PolyfaceQuery.d.ts +64 -6
  132. package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
  133. package/lib/cjs/polyface/PolyfaceQuery.js +104 -19
  134. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  135. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts +11 -0
  136. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
  137. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js +79 -1
  138. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  139. package/lib/cjs/serialization/GeometrySamples.d.ts +11 -0
  140. package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
  141. package/lib/cjs/serialization/GeometrySamples.js +30 -0
  142. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  143. package/lib/cjs/solid/LinearSweep.d.ts +2 -1
  144. package/lib/cjs/solid/LinearSweep.d.ts.map +1 -1
  145. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  146. package/lib/cjs/solid/RotationalSweep.d.ts +2 -1
  147. package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -1
  148. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  149. package/lib/cjs/solid/RuledSweep.d.ts +2 -1
  150. package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
  151. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  152. package/lib/cjs/solid/SweepContour.d.ts +2 -2
  153. package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
  154. package/lib/cjs/solid/SweepContour.js +9 -0
  155. package/lib/cjs/solid/SweepContour.js.map +1 -1
  156. package/lib/esm/clipping/ClipPrimitive.d.ts.map +1 -1
  157. package/lib/esm/clipping/ClipPrimitive.js +2 -0
  158. package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
  159. package/lib/esm/core-geometry.d.ts +1 -0
  160. package/lib/esm/core-geometry.d.ts.map +1 -1
  161. package/lib/esm/core-geometry.js +2 -0
  162. package/lib/esm/core-geometry.js.map +1 -1
  163. package/lib/esm/curve/Arc3d.d.ts +1 -0
  164. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  165. package/lib/esm/curve/Arc3d.js +1 -0
  166. package/lib/esm/curve/Arc3d.js.map +1 -1
  167. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +61 -41
  168. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  169. package/lib/esm/curve/CurveChainWithDistanceIndex.js +69 -46
  170. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  171. package/lib/esm/curve/CurveCollection.d.ts +36 -26
  172. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  173. package/lib/esm/curve/CurveCollection.js +46 -39
  174. package/lib/esm/curve/CurveCollection.js.map +1 -1
  175. package/lib/esm/curve/CurveCurve.d.ts.map +1 -1
  176. package/lib/esm/curve/CurveCurve.js.map +1 -1
  177. package/lib/esm/curve/CurveFactory.d.ts +67 -3
  178. package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
  179. package/lib/esm/curve/CurveFactory.js +74 -6
  180. package/lib/esm/curve/CurveFactory.js.map +1 -1
  181. package/lib/esm/curve/CurveLocationDetail.d.ts +6 -6
  182. package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
  183. package/lib/esm/curve/CurveLocationDetail.js +9 -7
  184. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  185. package/lib/esm/curve/CurvePrimitive.d.ts +4 -3
  186. package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
  187. package/lib/esm/curve/CurvePrimitive.js +4 -3
  188. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  189. package/lib/esm/curve/LineSegment3d.d.ts +6 -4
  190. package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
  191. package/lib/esm/curve/LineSegment3d.js +4 -4
  192. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  193. package/lib/esm/curve/LineString3d.d.ts +1 -1
  194. package/lib/esm/curve/LineString3d.d.ts.map +1 -1
  195. package/lib/esm/curve/LineString3d.js +1 -1
  196. package/lib/esm/curve/LineString3d.js.map +1 -1
  197. package/lib/esm/curve/Loop.d.ts +7 -5
  198. package/lib/esm/curve/Loop.d.ts.map +1 -1
  199. package/lib/esm/curve/Loop.js +18 -6
  200. package/lib/esm/curve/Loop.js.map +1 -1
  201. package/lib/esm/curve/ParityRegion.d.ts +7 -7
  202. package/lib/esm/curve/ParityRegion.d.ts.map +1 -1
  203. package/lib/esm/curve/ParityRegion.js +19 -11
  204. package/lib/esm/curve/ParityRegion.js.map +1 -1
  205. package/lib/esm/curve/Path.d.ts +6 -6
  206. package/lib/esm/curve/Path.d.ts.map +1 -1
  207. package/lib/esm/curve/Path.js +15 -9
  208. package/lib/esm/curve/Path.js.map +1 -1
  209. package/lib/esm/curve/ProxyCurve.d.ts +4 -6
  210. package/lib/esm/curve/ProxyCurve.d.ts.map +1 -1
  211. package/lib/esm/curve/ProxyCurve.js +7 -7
  212. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  213. package/lib/esm/curve/RegionOps.d.ts +69 -47
  214. package/lib/esm/curve/RegionOps.d.ts.map +1 -1
  215. package/lib/esm/curve/RegionOps.js +70 -47
  216. package/lib/esm/curve/RegionOps.js.map +1 -1
  217. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  218. package/lib/esm/curve/StrokeOptions.js +6 -2
  219. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  220. package/lib/esm/curve/UnionRegion.d.ts +6 -5
  221. package/lib/esm/curve/UnionRegion.d.ts.map +1 -1
  222. package/lib/esm/curve/UnionRegion.js +17 -8
  223. package/lib/esm/curve/UnionRegion.js.map +1 -1
  224. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts +2 -1
  225. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  226. package/lib/esm/curve/internalContexts/GapSearchContext.js +6 -2
  227. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  228. package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts +4 -0
  229. package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
  230. package/lib/esm/curve/internalContexts/MultiChainCollector.js +5 -2
  231. package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
  232. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  233. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  234. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  235. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  236. package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts +56 -34
  237. package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
  238. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +153 -87
  239. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  240. package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  241. package/lib/esm/curve/internalContexts/SumLengthsContext.js +4 -1
  242. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  243. package/lib/esm/geometry3d/Angle.d.ts +9 -0
  244. package/lib/esm/geometry3d/Angle.d.ts.map +1 -1
  245. package/lib/esm/geometry3d/Angle.js +13 -0
  246. package/lib/esm/geometry3d/Angle.js.map +1 -1
  247. package/lib/esm/geometry3d/BilinearPatch.d.ts +43 -48
  248. package/lib/esm/geometry3d/BilinearPatch.d.ts.map +1 -1
  249. package/lib/esm/geometry3d/BilinearPatch.js +51 -55
  250. package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
  251. package/lib/esm/geometry3d/Ellipsoid.d.ts +1 -1
  252. package/lib/esm/geometry3d/Ellipsoid.js +1 -1
  253. package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
  254. package/lib/esm/geometry3d/FrameBuilder.d.ts.map +1 -1
  255. package/lib/esm/geometry3d/FrameBuilder.js +13 -11
  256. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  257. package/lib/esm/geometry3d/GeometryHandler.d.ts +5 -5
  258. package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
  259. package/lib/esm/geometry3d/Matrix3d.d.ts +18 -0
  260. package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
  261. package/lib/esm/geometry3d/Matrix3d.js +27 -0
  262. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  263. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
  264. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
  265. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js +35 -32
  266. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  267. package/lib/esm/geometry3d/Point3dVector3d.d.ts +8 -0
  268. package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
  269. package/lib/esm/geometry3d/Point3dVector3d.js +13 -0
  270. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  271. package/lib/esm/geometry3d/PolylineOps.d.ts +16 -1
  272. package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
  273. package/lib/esm/geometry3d/PolylineOps.js +56 -1
  274. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  275. package/lib/esm/geometry3d/Range.d.ts +134 -94
  276. package/lib/esm/geometry3d/Range.d.ts.map +1 -1
  277. package/lib/esm/geometry3d/Range.js +297 -145
  278. package/lib/esm/geometry3d/Range.js.map +1 -1
  279. package/lib/esm/geometry3d/Ray3d.d.ts.map +1 -1
  280. package/lib/esm/geometry3d/Ray3d.js.map +1 -1
  281. package/lib/esm/geometry3d/Transform.d.ts +7 -0
  282. package/lib/esm/geometry3d/Transform.d.ts.map +1 -1
  283. package/lib/esm/geometry3d/Transform.js +12 -0
  284. package/lib/esm/geometry3d/Transform.js.map +1 -1
  285. package/lib/esm/polyface/PolyfaceQuery.d.ts +64 -6
  286. package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
  287. package/lib/esm/polyface/PolyfaceQuery.js +103 -19
  288. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  289. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts +11 -0
  290. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
  291. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js +78 -1
  292. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  293. package/lib/esm/serialization/GeometrySamples.d.ts +11 -0
  294. package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
  295. package/lib/esm/serialization/GeometrySamples.js +30 -0
  296. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  297. package/lib/esm/solid/LinearSweep.d.ts +2 -1
  298. package/lib/esm/solid/LinearSweep.d.ts.map +1 -1
  299. package/lib/esm/solid/LinearSweep.js.map +1 -1
  300. package/lib/esm/solid/RotationalSweep.d.ts +2 -1
  301. package/lib/esm/solid/RotationalSweep.d.ts.map +1 -1
  302. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  303. package/lib/esm/solid/RuledSweep.d.ts +2 -1
  304. package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
  305. package/lib/esm/solid/RuledSweep.js.map +1 -1
  306. package/lib/esm/solid/SweepContour.d.ts +2 -2
  307. package/lib/esm/solid/SweepContour.d.ts.map +1 -1
  308. package/lib/esm/solid/SweepContour.js +9 -0
  309. package/lib/esm/solid/SweepContour.js.map +1 -1
  310. package/package.json +5 -5
@@ -15,25 +15,28 @@ import { XYAndZ } from "./XYZProps";
15
15
  * * are NOT required to be unit vectors.
16
16
  * * are NOT required to be perpendicular vectors.
17
17
  * * The skewed, non-uniform scaling of the grid directions is the primary focus of this class.
18
- * * Queries of altitude, velocity, normalX, normalY, and normalZ use the NORMALIZED cross product of vectorU and vectorV as plane normal.
18
+ * * Queries of altitude, velocity, normalX, normalY, and normalZ use the NORMALIZED cross product of vectorU
19
+ * and vectorV as plane normal.
19
20
  * * Hence these are cartesian distances.
20
21
  * * If numerous calls to these are expected, the repeated normalization may be a performance issue.
21
- * * Using a [[Plane3dByOriginAndUnitNormal]] or the rigid transform returned by [[toRigidFrame]] would provide better performance.
22
+ * * Using a [[Plane3dByOriginAndUnitNormal]] or the rigid transform returned by [[toRigidFrame]] would provide
23
+ * better performance.
22
24
  * @public
23
25
  */
24
26
  export declare class Plane3dByOriginAndVectors extends Plane3d implements BeJSONFunctions {
25
- /** origin of plane grid */
27
+ /** Origin of plane grid */
26
28
  origin: Point3d;
27
29
  /** u direction in plane grid */
28
30
  vectorU: Vector3d;
29
31
  /** v direction in plane grid */
30
32
  vectorV: Vector3d;
31
33
  private constructor();
32
- /** create a new plane from origin and 2 in-plane vectors. */
34
+ /** Create a new plane from origin and 2 in-plane vectors. */
33
35
  static createOriginAndVectors(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
34
- /** clone to a new plane. */
36
+ /** Clone to a new plane. */
35
37
  clone(result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
36
- /** create a new Plane3dByOriginAndVectors from a variety of plane types.
38
+ /**
39
+ * Create a new Plane3dByOriginAndVectors from a variety of plane types.
37
40
  * * The input is NOT captured.
38
41
  */
39
42
  static createFrom(source: Plane3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors | undefined;
@@ -52,13 +55,15 @@ export declare class Plane3dByOriginAndVectors extends Plane3d implements BeJSON
52
55
  static createCapture(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
53
56
  /** Set all origin and both vectors from direct numeric parameters */
54
57
  setOriginAndVectorsXYZ(x0: number, y0: number, z0: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number): Plane3dByOriginAndVectors;
55
- /** Set all origin and both vectors from coordinates in given origin and vectors.
58
+ /**
59
+ * Set all origin and both vectors from coordinates in given origin and vectors.
56
60
  * * Note that coordinates are copied out of the parameters -- the given parameters are NOT retained by reference.
57
61
  */
58
62
  setOriginAndVectors(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d): Plane3dByOriginAndVectors;
59
63
  /** Create a new plane from direct numeric parameters */
60
64
  static createOriginAndVectorsXYZ(x0: number, y0: number, z0: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
61
- /** Define a plane by three points in the plane.
65
+ /**
66
+ * Define a plane by three points in the plane.
62
67
  * @param origin origin for the parameterization.
63
68
  * @param targetU target point for the vectorU starting at the origin.
64
69
  * @param targetV target point for the vectorV originating at the origin.
@@ -67,13 +72,15 @@ export declare class Plane3dByOriginAndVectors extends Plane3d implements BeJSON
67
72
  static createOriginAndTargets(origin: Point3d, targetU: Point3d, targetV: Point3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
68
73
  /** Create a plane with origin at 000, unit vectorU in x direction, and unit vectorV in the y direction. */
69
74
  static createXYPlane(result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
70
- /** create a plane from data presented as Float64Arrays.
75
+ /**
76
+ * Create a plane from data presented as Float64Arrays.
71
77
  * @param origin x,y,z of origin.
72
78
  * @param vectorU x,y,z of vectorU
73
79
  * @param vectorV x,y,z of vectorV
74
80
  */
75
81
  static createOriginAndVectorsArrays(origin: Float64Array, vectorU: Float64Array, vectorV: Float64Array, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors;
76
- /** create a plane from data presented as Float64Array with weights
82
+ /**
83
+ * Create a plane from data presented as Float64Array with weights
77
84
  * @param origin x,y,z,w of origin.
78
85
  * @param vectorU x,y,z,w of vectorU
79
86
  * @param vectorV x,y,z,w of vectorV
@@ -97,17 +104,16 @@ export declare class Plane3dByOriginAndVectors extends Plane3d implements BeJSON
97
104
  * @return {*} [origin,normal]
98
105
  */
99
106
  toJSON(): any;
100
- /** create a new plane. See `setFromJSON` for layout example. */
107
+ /** Create a new plane. See `setFromJSON` for layout example. */
101
108
  static fromJSON(json?: any): Plane3dByOriginAndVectors;
102
109
  /** Test origin and vectors for isAlmostEqual with `other` */
103
110
  isAlmostEqual(other: Plane3dByOriginAndVectors): boolean;
104
- /** Normalize both `vectorU` and `vectorV` in place. This does NOT make them perpendicular.
111
+ /**
112
+ * Normalize both `vectorU` and `vectorV` in place. This does NOT make them perpendicular.
105
113
  * * Return true if both succeeded.
106
114
  */
107
115
  normalizeInPlace(): boolean;
108
- /**
109
- * Return (if possible) a unit normal to the plane.
110
- */
116
+ /** Return (if possible) a unit normal to the plane */
111
117
  getUnitNormal(result?: Vector3d): Vector3d | undefined;
112
118
  /**
113
119
  * Return (if possible) a unit normal to the plane.
@@ -119,9 +125,7 @@ export declare class Plane3dByOriginAndVectors extends Plane3d implements BeJSON
119
125
  */
120
126
  getAnyPointOnPlane(result?: Point3d): Point3d;
121
127
  private static _workVector;
122
- /**
123
- * Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane.
124
- */
128
+ /** Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane */
125
129
  unitNormalRay(result?: Ray3d): Ray3d | undefined;
126
130
  /**
127
131
  * Create a rigid frame (i.e. frenet frame) with
@@ -132,35 +136,35 @@ export declare class Plane3dByOriginAndVectors extends Plane3d implements BeJSON
132
136
  * @param result optional result
133
137
  */
134
138
  toRigidFrame(result?: Transform): Transform | undefined;
135
- /**
136
- * Apply the transform to the origin and vectors in place.
137
- */
139
+ /** Apply the transform to the origin and vectors in place */
138
140
  transformInPlace(transform: Transform): void;
139
141
  /**
140
142
  * Return x component of the (normalized!) {vectorU CROSS vectorV}.
141
143
  * Return 0 if the cross product is zero.
142
- * */
144
+ */
143
145
  normalX(): number;
144
146
  /**
145
- * Return y component of the (normalized!) {vectorU CROSS vectorV}.
146
- * Return 0 if the cross product is zero.
147
- * */
147
+ * Return y component of the (normalized!) {vectorU CROSS vectorV}.
148
+ * Return 0 if the cross product is zero.
149
+ */
148
150
  normalY(): number;
149
151
  /**
150
152
  * Return z component of the (normalized!) {vectorU CROSS vectorV}.
151
153
  * Return 0 if the cross product is zero.
152
- * */
154
+ */
153
155
  normalZ(): number;
154
- /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
156
+ /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
155
157
  altitude(xyz: XYAndZ): number;
156
- /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
158
+ /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
157
159
  altitudeXYZ(x: number, y: number, z: number): number;
158
- /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
160
+ /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
159
161
  velocity(xyzVector: XYAndZ): number;
160
- /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
162
+ /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
161
163
  velocityXYZ(x: number, y: number, z: number): number;
162
- /** Return triple product of homogeneous difference {(xyzw - w * origin)} with vectorU and vectorV.
163
- * * In the usual manner of homogeneous calculations, this is proportional to true cartesian distance from the plane but is not a physical distance.
164
+ /**
165
+ * Return triple product of homogeneous difference {(xyzw - w * origin)} with vectorU and vectorV.
166
+ * * In the usual manner of homogeneous calculations, this is proportional to true cartesian distance from the
167
+ * plane but is not a physical distance.
164
168
  */
165
169
  weightedAltitude(xyzw: Point4d): number;
166
170
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Plane3dByOriginAndVectors.d.ts","sourceRoot":"","sources":["../../../src/geometry3d/Plane3dByOriginAndVectors.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAAa,eAAe,EAAY,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGpC;;;;;;;;;;;;GAYG;AACH,qBAAa,yBAA0B,SAAQ,OAAQ,YAAW,eAAe;IAC/E,2BAA2B;IACpB,MAAM,EAAE,OAAO,CAAC;IACvB,gCAAgC;IACzB,OAAO,EAAE,QAAQ,CAAC;IACzB,gCAAgC;IACzB,OAAO,EAAE,QAAQ,CAAC;IACzB,OAAO;IAMP,6DAA6D;WAC/C,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,yBAAyB,GAAG,yBAAyB;IAS1J,4BAA4B;IACrB,KAAK,CAAC,MAAM,CAA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AQ3D;;;;OAIG;IACI,gBAAgB,CAAC,IAAI,EAAE,OAAO;IAOrC;;;;OAIG;IACI,mBAAmB,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;CAuB3E"}
@@ -18,10 +18,12 @@ import { Matrix3d } from "./Matrix3d";
18
18
  * * are NOT required to be unit vectors.
19
19
  * * are NOT required to be perpendicular vectors.
20
20
  * * The skewed, non-uniform scaling of the grid directions is the primary focus of this class.
21
- * * Queries of altitude, velocity, normalX, normalY, and normalZ use the NORMALIZED cross product of vectorU and vectorV as plane normal.
21
+ * * Queries of altitude, velocity, normalX, normalY, and normalZ use the NORMALIZED cross product of vectorU
22
+ * and vectorV as plane normal.
22
23
  * * Hence these are cartesian distances.
23
24
  * * If numerous calls to these are expected, the repeated normalization may be a performance issue.
24
- * * Using a [[Plane3dByOriginAndUnitNormal]] or the rigid transform returned by [[toRigidFrame]] would provide better performance.
25
+ * * Using a [[Plane3dByOriginAndUnitNormal]] or the rigid transform returned by [[toRigidFrame]] would provide
26
+ * better performance.
25
27
  * @public
26
28
  */
27
29
  export class Plane3dByOriginAndVectors extends Plane3d {
@@ -31,7 +33,7 @@ export class Plane3dByOriginAndVectors extends Plane3d {
31
33
  this.vectorU = vectorU;
32
34
  this.vectorV = vectorV;
33
35
  }
34
- /** create a new plane from origin and 2 in-plane vectors. */
36
+ /** Create a new plane from origin and 2 in-plane vectors. */
35
37
  static createOriginAndVectors(origin, vectorU, vectorV, result) {
36
38
  if (result) {
37
39
  result.origin.setFrom(origin);
@@ -41,13 +43,14 @@ export class Plane3dByOriginAndVectors extends Plane3d {
41
43
  }
42
44
  return new Plane3dByOriginAndVectors(origin.clone(), vectorU.clone(), vectorV.clone());
43
45
  }
44
- /** clone to a new plane. */
46
+ /** Clone to a new plane. */
45
47
  clone(result) {
46
48
  if (result !== undefined)
47
49
  result.setOriginAndVectors(this.origin, this.vectorU, this.vectorV);
48
50
  return new Plane3dByOriginAndVectors(this.origin.clone(), this.vectorU.clone(), this.vectorV.clone());
49
51
  }
50
- /** create a new Plane3dByOriginAndVectors from a variety of plane types.
52
+ /**
53
+ * Create a new Plane3dByOriginAndVectors from a variety of plane types.
51
54
  * * The input is NOT captured.
52
55
  */
53
56
  static createFrom(source, result) {
@@ -106,7 +109,8 @@ export class Plane3dByOriginAndVectors extends Plane3d {
106
109
  this.vectorV.set(vx, vy, vz);
107
110
  return this;
108
111
  }
109
- /** Set all origin and both vectors from coordinates in given origin and vectors.
112
+ /**
113
+ * Set all origin and both vectors from coordinates in given origin and vectors.
110
114
  * * Note that coordinates are copied out of the parameters -- the given parameters are NOT retained by reference.
111
115
  */
112
116
  setOriginAndVectors(origin, vectorU, vectorV) {
@@ -121,7 +125,8 @@ export class Plane3dByOriginAndVectors extends Plane3d {
121
125
  return result.setOriginAndVectorsXYZ(x0, y0, z0, ux, uy, uz, vx, vy, vz);
122
126
  return new Plane3dByOriginAndVectors(Point3d.create(x0, y0, z0), Vector3d.create(ux, uy, uz), Vector3d.create(vx, vy, vz));
123
127
  }
124
- /** Define a plane by three points in the plane.
128
+ /**
129
+ * Define a plane by three points in the plane.
125
130
  * @param origin origin for the parameterization.
126
131
  * @param targetU target point for the vectorU starting at the origin.
127
132
  * @param targetV target point for the vectorV originating at the origin.
@@ -134,7 +139,8 @@ export class Plane3dByOriginAndVectors extends Plane3d {
134
139
  static createXYPlane(result) {
135
140
  return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(0, 0, 0, 1, 0, 0, 0, 1, 0, result);
136
141
  }
137
- /** create a plane from data presented as Float64Arrays.
142
+ /**
143
+ * Create a plane from data presented as Float64Arrays.
138
144
  * @param origin x,y,z of origin.
139
145
  * @param vectorU x,y,z of vectorU
140
146
  * @param vectorV x,y,z of vectorV
@@ -142,7 +148,8 @@ export class Plane3dByOriginAndVectors extends Plane3d {
142
148
  static createOriginAndVectorsArrays(origin, vectorU, vectorV, result) {
143
149
  return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(origin[0], origin[1], origin[2], vectorU[0], vectorU[1], vectorU[2], vectorV[0], vectorV[1], vectorV[2], result);
144
150
  }
145
- /** create a plane from data presented as Float64Array with weights
151
+ /**
152
+ * Create a plane from data presented as Float64Array with weights
146
153
  * @param origin x,y,z,w of origin.
147
154
  * @param vectorU x,y,z,w of vectorU
148
155
  * @param vectorV x,y,z,w of vectorV
@@ -206,7 +213,7 @@ export class Plane3dByOriginAndVectors extends Plane3d {
206
213
  vectorV: this.vectorV.toJSON(),
207
214
  };
208
215
  }
209
- /** create a new plane. See `setFromJSON` for layout example. */
216
+ /** Create a new plane. See `setFromJSON` for layout example. */
210
217
  static fromJSON(json) {
211
218
  const result = Plane3dByOriginAndVectors.createXYPlane();
212
219
  result.setFromJSON(json);
@@ -218,7 +225,8 @@ export class Plane3dByOriginAndVectors extends Plane3d {
218
225
  && this.vectorU.isAlmostEqual(other.vectorU)
219
226
  && this.vectorV.isAlmostEqual(other.vectorV);
220
227
  }
221
- /** Normalize both `vectorU` and `vectorV` in place. This does NOT make them perpendicular.
228
+ /**
229
+ * Normalize both `vectorU` and `vectorV` in place. This does NOT make them perpendicular.
222
230
  * * Return true if both succeeded.
223
231
  */
224
232
  normalizeInPlace() {
@@ -226,9 +234,7 @@ export class Plane3dByOriginAndVectors extends Plane3d {
226
234
  const okV = this.vectorV.normalizeInPlace();
227
235
  return okU && okV;
228
236
  }
229
- /**
230
- * Return (if possible) a unit normal to the plane.
231
- */
237
+ /** Return (if possible) a unit normal to the plane */
232
238
  getUnitNormal(result) {
233
239
  return this.vectorU.unitCrossProduct(this.vectorV, result);
234
240
  }
@@ -245,9 +251,7 @@ export class Plane3dByOriginAndVectors extends Plane3d {
245
251
  getAnyPointOnPlane(result) {
246
252
  return this.origin.clone(result);
247
253
  }
248
- /**
249
- * Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane.
250
- */
254
+ /** Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane */
251
255
  unitNormalRay(result) {
252
256
  if (!Plane3dByOriginAndVectors._workVector)
253
257
  Plane3dByOriginAndVectors._workVector = Vector3d.create();
@@ -267,27 +271,24 @@ export class Plane3dByOriginAndVectors extends Plane3d {
267
271
  toRigidFrame(result) {
268
272
  return Transform.createRigidFromOriginAndColumns(this.origin, this.vectorU, this.vectorV, AxisOrder.XYZ, result);
269
273
  }
270
- /**
271
- * Apply the transform to the origin and vectors in place.
272
- */
274
+ /** Apply the transform to the origin and vectors in place */
273
275
  transformInPlace(transform) {
274
276
  transform.multiplyPoint3d(this.origin, this.origin);
275
277
  transform.multiplyVector(this.vectorU, this.vectorU);
276
278
  transform.multiplyVector(this.vectorV, this.vectorV);
277
279
  }
278
- // Implement PlaneAltitudeEvaluator methods . . .
279
280
  /**
280
281
  * Return x component of the (normalized!) {vectorU CROSS vectorV}.
281
282
  * Return 0 if the cross product is zero.
282
- * */
283
+ */
283
284
  normalX() {
284
285
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
285
286
  return unitNormal !== undefined ? unitNormal.x : 0.0;
286
287
  }
287
288
  /**
288
- * Return y component of the (normalized!) {vectorU CROSS vectorV}.
289
- * Return 0 if the cross product is zero.
290
- * */
289
+ * Return y component of the (normalized!) {vectorU CROSS vectorV}.
290
+ * Return 0 if the cross product is zero.
291
+ */
291
292
  normalY() {
292
293
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
293
294
  return unitNormal !== undefined ? unitNormal.y : 0.0;
@@ -295,41 +296,43 @@ export class Plane3dByOriginAndVectors extends Plane3d {
295
296
  /**
296
297
  * Return z component of the (normalized!) {vectorU CROSS vectorV}.
297
298
  * Return 0 if the cross product is zero.
298
- * */
299
+ */
299
300
  normalZ() {
300
301
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
301
302
  return unitNormal !== undefined ? unitNormal.z : 0.0;
302
303
  }
303
- /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
304
+ /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
304
305
  altitude(xyz) {
305
306
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
306
307
  if (unitNormal === undefined)
307
308
  return 0.0;
308
309
  return Geometry.dotProductXYZXYZ((xyz.x - this.origin.x), (xyz.y - this.origin.y), (xyz.z - this.origin.z), unitNormal.x, unitNormal.y, unitNormal.z);
309
310
  }
310
- /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
311
+ /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */
311
312
  altitudeXYZ(x, y, z) {
312
313
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
313
314
  if (unitNormal === undefined)
314
315
  return 0.0;
315
316
  return Geometry.dotProductXYZXYZ((x - this.origin.x), (y - this.origin.y), (z - this.origin.z), unitNormal.x, unitNormal.y, unitNormal.z);
316
317
  }
317
- /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
318
+ /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
318
319
  velocity(xyzVector) {
319
320
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
320
321
  if (unitNormal === undefined)
321
322
  return 0.0;
322
323
  return Geometry.dotProductXYZXYZ(xyzVector.x, xyzVector.y, xyzVector.z, unitNormal.x, unitNormal.y, unitNormal.z);
323
324
  }
324
- /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
325
+ /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */
325
326
  velocityXYZ(x, y, z) {
326
327
  const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);
327
328
  if (unitNormal === undefined)
328
329
  return 0.0;
329
330
  return Geometry.dotProductXYZXYZ(x, y, z, unitNormal.x, unitNormal.y, unitNormal.z);
330
331
  }
331
- /** Return triple product of homogeneous difference {(xyzw - w * origin)} with vectorU and vectorV.
332
- * * In the usual manner of homogeneous calculations, this is proportional to true cartesian distance from the plane but is not a physical distance.
332
+ /**
333
+ * Return triple product of homogeneous difference {(xyzw - w * origin)} with vectorU and vectorV.
334
+ * * In the usual manner of homogeneous calculations, this is proportional to true cartesian distance from the
335
+ * plane but is not a physical distance.
333
336
  */
334
337
  weightedAltitude(xyzw) {
335
338
  const w = xyzw.w;
@@ -1 +1 @@
1
- {"version":3,"file":"Plane3dByOriginAndVectors.js","sourceRoot":"","sources":["../../../src/geometry3d/Plane3dByOriginAndVectors.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AACH,OAAO,EAAE,SAAS,EAAmB,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,yBAA0B,SAAQ,OAAO;IAOpD,YAAoB,MAAe,EAAE,OAAiB,EAAE,OAAiB;QACvE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IACD,6DAA6D;IACtD,MAAM,CAAC,sBAAsB,CAAC,MAAe,EAAE,OAAiB,EAAE,OAAiB,EAAE,MAAkC;QAC5H,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAChC,OAAO,MAAM,CAAC;SACf;QACD,OAAO,IA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,MAAM,CAAC,GAAG,QAAQ,CAAC,2BAA2B,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;YAClE,IAAI,CAAC,KAAK,SAAS;gBACjB,OAAO,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;SACzD;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CACF","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 CartesianGeometry\r\n */\r\nimport { AxisOrder, BeJSONFunctions, Geometry } from \"../Geometry\";\r\nimport { Plane3d } from \"./Plane3d\";\r\nimport { Point4d } from \"../geometry4d/Point4d\";\r\nimport { Point3d, Vector3d } from \"./Point3dVector3d\";\r\nimport { Ray3d } from \"./Ray3d\";\r\nimport { Transform } from \"./Transform\";\r\nimport { XYAndZ } from \"./XYZProps\";\r\nimport { Matrix3d } from \"./Matrix3d\";\r\n\r\n/**\r\n * A Plane3dByOriginAndVectors is an origin and a pair of vectors.\r\n * This defines a plane with a (possibly skewed) uv coordinate grid\r\n * * The grid directions (`vectorU` and `vectorV`)\r\n * * are NOT required to be unit vectors.\r\n * * are NOT required to be perpendicular vectors.\r\n * * The skewed, non-uniform scaling of the grid directions is the primary focus of this class.\r\n * * Queries of altitude, velocity, normalX, normalY, and normalZ use the NORMALIZED cross product of vectorU and vectorV as plane normal.\r\n * * Hence these are cartesian distances.\r\n * * If numerous calls to these are expected, the repeated normalization may be a performance issue.\r\n * * Using a [[Plane3dByOriginAndUnitNormal]] or the rigid transform returned by [[toRigidFrame]] would provide better performance.\r\n * @public\r\n */\r\nexport class Plane3dByOriginAndVectors extends Plane3d implements BeJSONFunctions {\r\n /** origin of plane grid */\r\n public origin: Point3d;\r\n /** u direction in plane grid */\r\n public vectorU: Vector3d;\r\n /** v direction in plane grid */\r\n public vectorV: Vector3d;\r\n private constructor(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d) {\r\n super();\r\n this.origin = origin;\r\n this.vectorU = vectorU;\r\n this.vectorV = vectorV;\r\n }\r\n /** create a new plane from origin and 2 in-plane vectors. */\r\n public static createOriginAndVectors(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n if (result) {\r\n result.origin.setFrom(origin);\r\n result.vectorU.setFrom(vectorU);\r\n result.vectorV.setFrom(vectorV);\r\n return result;\r\n }\r\n return new Plane3dByOriginAndVectors(origin.clone(), vectorU.clone(), vectorV.clone());\r\n }\r\n /** clone to a new plane. */\r\n public clone(result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n if (result !== undefined)\r\n result.setOriginAndVectors(this.origin, this.vectorU, this.vectorV);\r\n return new Plane3dByOriginAndVectors(this.origin.clone(), this.vectorU.clone(), this.vectorV.clone());\r\n }\r\n /** create a new Plane3dByOriginAndVectors from a variety of plane types.\r\n * * The input is NOT captured.\r\n */\r\n public static createFrom(source: Plane3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors | undefined {\r\n if (source instanceof Plane3dByOriginAndVectors)\r\n return source.clone(result);\r\n const normal = source.getUnitNormal();\r\n if (normal === undefined)\r\n return undefined;\r\n const origin = source.getAnyPointOnPlane();\r\n const vectorU = Matrix3d.createPerpendicularVectorFavorXYPlane(normal);\r\n if (vectorU.tryNormalizeInPlace()) {\r\n const vectorV = normal.unitCrossProduct(vectorU);\r\n if (vectorV !== undefined)\r\n return new Plane3dByOriginAndVectors(origin, vectorU, vectorV);\r\n }\r\n return undefined;\r\n }\r\n\r\n /**\r\n * Return a Plane3dByOriginAndVectors, with\r\n * * origin is the translation (aka origin) from the Transform\r\n * * vectorU is the X column of the transform\r\n * * vectorV is the Y column of the transform.\r\n * @param transform source transform\r\n * @param xLength optional length to impose on vectorU.\r\n * @param yLength optional length to impose on vectorV.\r\n * @param result optional preexisting result\r\n */\r\n public static createFromTransformColumnsXYAndLengths(transform: Transform,\r\n xLength: number | undefined, yLength: number | undefined,\r\n result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n if (result) {\r\n result.origin.setFrom(transform.getOrigin());\r\n transform.matrix.columnX(result.vectorU);\r\n transform.matrix.columnY(result.vectorV);\r\n } else {\r\n result = new Plane3dByOriginAndVectors(\r\n transform.getOrigin(),\r\n transform.matrix.columnX(),\r\n transform.matrix.columnY());\r\n }\r\n if (xLength !== undefined)\r\n result.vectorU.scaleToLength(xLength, result.vectorU);\r\n if (yLength !== undefined)\r\n result.vectorV.scaleToLength(yLength, result.vectorV);\r\n return result;\r\n }\r\n /** Capture origin and directions in a new plane. */\r\n public static createCapture(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n if (!result)\r\n return new Plane3dByOriginAndVectors(origin, vectorU, vectorV);\r\n result.origin = origin;\r\n result.vectorU = vectorU;\r\n result.vectorV = vectorV;\r\n return result;\r\n }\r\n\r\n /** Set all origin and both vectors from direct numeric parameters */\r\n public setOriginAndVectorsXYZ(x0: number, y0: number, z0: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number): Plane3dByOriginAndVectors {\r\n this.origin.set(x0, y0, z0);\r\n this.vectorU.set(ux, uy, uz);\r\n this.vectorV.set(vx, vy, vz);\r\n return this;\r\n }\r\n /** Set all origin and both vectors from coordinates in given origin and vectors.\r\n * * Note that coordinates are copied out of the parameters -- the given parameters are NOT retained by reference.\r\n */\r\n public setOriginAndVectors(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d): Plane3dByOriginAndVectors {\r\n this.origin.setFrom(origin);\r\n this.vectorU.setFrom(vectorU);\r\n this.vectorV.setFrom(vectorV);\r\n return this;\r\n }\r\n /** Create a new plane from direct numeric parameters */\r\n public static createOriginAndVectorsXYZ(x0: number, y0: number, z0: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n if (result)\r\n return result.setOriginAndVectorsXYZ(x0, y0, z0, ux, uy, uz, vx, vy, vz);\r\n return new Plane3dByOriginAndVectors(Point3d.create(x0, y0, z0), Vector3d.create(ux, uy, uz), Vector3d.create(vx, vy, vz));\r\n }\r\n /** Define a plane by three points in the plane.\r\n * @param origin origin for the parameterization.\r\n * @param targetU target point for the vectorU starting at the origin.\r\n * @param targetV target point for the vectorV originating at the origin.\r\n * @param result optional result.\r\n */\r\n public static createOriginAndTargets(origin: Point3d, targetU: Point3d, targetV: Point3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(origin.x, origin.y, origin.z, targetU.x - origin.x, targetU.y - origin.y, targetU.z - origin.z, targetV.x - origin.x, targetV.y - origin.y, targetV.z - origin.z, result);\r\n }\r\n /** Create a plane with origin at 000, unit vectorU in x direction, and unit vectorV in the y direction. */\r\n public static createXYPlane(result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(0, 0, 0, 1, 0, 0, 0, 1, 0, result);\r\n }\r\n /** create a plane from data presented as Float64Arrays.\r\n * @param origin x,y,z of origin.\r\n * @param vectorU x,y,z of vectorU\r\n * @param vectorV x,y,z of vectorV\r\n */\r\n public static createOriginAndVectorsArrays(origin: Float64Array, vectorU: Float64Array, vectorV: Float64Array, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(origin[0], origin[1], origin[2], vectorU[0], vectorU[1], vectorU[2], vectorV[0], vectorV[1], vectorV[2], result);\r\n }\r\n /** create a plane from data presented as Float64Array with weights\r\n * @param origin x,y,z,w of origin.\r\n * @param vectorU x,y,z,w of vectorU\r\n * @param vectorV x,y,z,w of vectorV\r\n */\r\n public static createOriginAndVectorsWeightedArrays(originW: Float64Array, vectorUw: Float64Array, vectorVw: Float64Array, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n const w = originW[3];\r\n result = Plane3dByOriginAndVectors.createXYPlane(result);\r\n if (Geometry.isSmallMetricDistance(w))\r\n return result;\r\n const dw = 1.0 / w;\r\n const au = vectorUw[3] * dw * dw;\r\n const av = vectorVw[3] * dw * dw;\r\n // for homogeneous function X, with w its weight:\r\n // (X/w) is the cartesian point.\r\n // (X/w)' = (X' w - X w')/(w*w)\r\n // = X'/w - (X/w)(w'/w)\r\n // = X'/w - X w'/w^2)\r\n // The w parts of the formal xyzw sums are identically 0.\r\n // Here the X' and its w' are taken from each vectorUw and vectorVw\r\n result.origin.set(originW[0] * dw, originW[1] * dw, originW[2] * dw);\r\n Vector3d.createAdd2ScaledXYZ(vectorUw[0], vectorUw[1], vectorUw[2], dw, originW[0], originW[1], originW[2], -au, result.vectorU);\r\n Vector3d.createAdd2ScaledXYZ(vectorVw[0], vectorVw[1], vectorVw[2], dw, originW[0], originW[1], originW[2], -av, result.vectorV);\r\n return result;\r\n }\r\n /**\r\n * Evaluate a point a grid coordinates on the plane.\r\n * * The computed point is `origin + vectorU * u + vectorV * v`\r\n * @param u coordinate along vectorU\r\n * @param v coordinate along vectorV\r\n * @param result optional result destination.\r\n * @returns Return the computed coordinate.\r\n */\r\n public fractionToPoint(u: number, v: number, result?: Point3d): Point3d {\r\n return this.origin.plus2Scaled(this.vectorU, u, this.vectorV, v, result);\r\n }\r\n /** Return the vector from the plane origin to parametric coordinate (u.v) */\r\n public fractionToVector(u: number, v: number, result?: Vector3d): Vector3d {\r\n return Vector3d.createAdd2Scaled(this.vectorU, u, this.vectorV, v, result);\r\n }\r\n /** Set coordinates from a json object such as `{origin: [1,2,3], vectorU:[4,5,6], vectorV[3,2,1]}` */\r\n public setFromJSON(json?: any) {\r\n if (!json || !json.origin || !json.vectorV) {\r\n this.origin.set(0, 0, 0);\r\n this.vectorU.set(1, 0, 0);\r\n this.vectorV.set(0, 1, 0);\r\n } else {\r\n this.origin.setFromJSON(json.origin);\r\n this.vectorU.setFromJSON(json.vectorU);\r\n this.vectorV.setFromJSON(json.vectorV);\r\n }\r\n }\r\n /**\r\n * Convert an Angle to a JSON object.\r\n * @return {*} [origin,normal]\r\n */\r\n public toJSON(): any {\r\n return {\r\n origin: this.origin.toJSON(),\r\n vectorU: this.vectorU.toJSON(),\r\n vectorV: this.vectorV.toJSON(),\r\n };\r\n }\r\n /** create a new plane. See `setFromJSON` for layout example. */\r\n public static fromJSON(json?: any): Plane3dByOriginAndVectors {\r\n const result = Plane3dByOriginAndVectors.createXYPlane();\r\n result.setFromJSON(json);\r\n return result;\r\n }\r\n /** Test origin and vectors for isAlmostEqual with `other` */\r\n public isAlmostEqual(other: Plane3dByOriginAndVectors): boolean {\r\n return this.origin.isAlmostEqual(other.origin)\r\n && this.vectorU.isAlmostEqual(other.vectorU)\r\n && this.vectorV.isAlmostEqual(other.vectorV);\r\n }\r\n /** Normalize both `vectorU` and `vectorV` in place. This does NOT make them perpendicular.\r\n * * Return true if both succeeded.\r\n */\r\n public normalizeInPlace(): boolean {\r\n const okU = this.vectorU.normalizeInPlace();\r\n const okV = this.vectorV.normalizeInPlace();\r\n return okU && okV;\r\n }\r\n /**\r\n * Return (if possible) a unit normal to the plane.\r\n */\r\n public override getUnitNormal(result?: Vector3d): Vector3d | undefined {\r\n return this.vectorU.unitCrossProduct(this.vectorV, result);\r\n }\r\n /**\r\n * Return (if possible) a unit normal to the plane.\r\n * * This method is the same as getUnitNormal, which was created later as part of the abstract base class Plane3d.\r\n */\r\n public unitNormal(result?: Vector3d): Vector3d | undefined {\r\n return this.vectorU.unitCrossProduct(this.vectorV, result);\r\n }\r\n\r\n /**\r\n * Return some point on the plane.\r\n */\r\n public override getAnyPointOnPlane(result?: Point3d): Point3d {\r\n return this.origin.clone(result);\r\n }\r\n private static _workVector: Vector3d;\r\n /**\r\n * Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane.\r\n */\r\n public unitNormalRay(result?: Ray3d): Ray3d | undefined {\r\n if (!Plane3dByOriginAndVectors._workVector)\r\n Plane3dByOriginAndVectors._workVector = Vector3d.create();\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV, Plane3dByOriginAndVectors._workVector);\r\n if (unitNormal === undefined)\r\n return undefined;\r\n return Ray3d.create(this.origin, unitNormal, result);\r\n }\r\n\r\n /**\r\n * Create a rigid frame (i.e. frenet frame) with\r\n * * origin at the plane origin\r\n * * x axis along the (normalized) vectorU\r\n * * y axis normalized vectorU to vectorV plane, and perpendicular to x axis\r\n * * z axis perpendicular to both.\r\n * @param result optional result\r\n */\r\n public toRigidFrame(result?: Transform): Transform | undefined {\r\n return Transform.createRigidFromOriginAndColumns(this.origin, this.vectorU, this.vectorV, AxisOrder.XYZ, result);\r\n }\r\n\r\n /**\r\n * Apply the transform to the origin and vectors in place.\r\n */\r\n public transformInPlace(transform: Transform) {\r\n transform.multiplyPoint3d(this.origin, this.origin);\r\n transform.multiplyVector(this.vectorU, this.vectorU);\r\n transform.multiplyVector(this.vectorV, this.vectorV);\r\n }\r\n // Implement PlaneAltitudeEvaluator methods . . .\r\n /**\r\n * Return x component of the (normalized!) {vectorU CROSS vectorV}.\r\n * Return 0 if the cross product is zero.\r\n * */\r\n public normalX(): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n return unitNormal !== undefined ? unitNormal.x : 0.0;\r\n }\r\n /**\r\n* Return y component of the (normalized!) {vectorU CROSS vectorV}.\r\n* Return 0 if the cross product is zero.\r\n* */\r\n public normalY(): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n return unitNormal !== undefined ? unitNormal.y : 0.0;\r\n }\r\n /**\r\n * Return z component of the (normalized!) {vectorU CROSS vectorV}.\r\n * Return 0 if the cross product is zero.\r\n * */\r\n public normalZ(): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n return unitNormal !== undefined ? unitNormal.z : 0.0;\r\n }\r\n /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */\r\n public altitude(xyz: XYAndZ): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n (xyz.x - this.origin.x), (xyz.y - this.origin.y), (xyz.z - this.origin.z),\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */\r\n public altitudeXYZ(x: number, y: number, z: number): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n (x - this.origin.x), (y - this.origin.y), (z - this.origin.z),\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */\r\n public velocity(xyzVector: XYAndZ): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n xyzVector.x, xyzVector.y, xyzVector.z,\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */\r\n public velocityXYZ(x: number, y: number, z: number): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n x, y, z,\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return triple product of homogeneous difference {(xyzw - w * origin)} with vectorU and vectorV.\r\n * * In the usual manner of homogeneous calculations, this is proportional to true cartesian distance from the plane but is not a physical distance.\r\n */\r\n public weightedAltitude(xyzw: Point4d) {\r\n const w = xyzw.w;\r\n return Geometry.tripleProduct(\r\n (xyzw.x - this.origin.x * w), (xyzw.y - this.origin.y * w), (xyzw.z - this.origin.z * w),\r\n this.vectorU.x, this.vectorU.y, this.vectorU.z,\r\n this.vectorV.x, this.vectorV.y, this.vectorV.z);\r\n }\r\n /**\r\n * Return the projection of spacePoint onto the plane.\r\n * If the plane is degenerate to a ray, project to the ray.\r\n * If the plane is degenerate to its origin, return the point\r\n */\r\n public projectPointToPlane(spacePoint: Point3d, result?: Point3d): Point3d {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal !== undefined) {\r\n const w = unitNormal.dotProductStartEnd(this.origin, spacePoint);\r\n return spacePoint.plusScaled(unitNormal, -w, result);\r\n }\r\n // uh oh. vectorU and vectorV are colinear or zero.\r\n // project to ray defined by the longer one, or just to origin.\r\n const dotUU = this.vectorU.magnitudeSquared();\r\n const dotVV = this.vectorV.magnitudeSquared();\r\n if (dotUU >= dotVV) {\r\n const dotUW = this.vectorU.dotProductStartEnd(this.origin, spacePoint);\r\n const f = Geometry.conditionalDivideCoordinate(dotUW, dotUU, 0.0);\r\n if (f !== undefined)\r\n return spacePoint.plusScaled(this.vectorU, f, result);\r\n } else {\r\n const dotVW = this.vectorV.dotProductStartEnd(this.origin, spacePoint);\r\n const f = Geometry.conditionalDivideCoordinate(dotVW, dotVV, 0.0);\r\n if (f !== undefined)\r\n return spacePoint.plusScaled(this.vectorV, f, result);\r\n }\r\n return this.origin.clone(result);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Plane3dByOriginAndVectors.js","sourceRoot":"","sources":["../../../src/geometry3d/Plane3dByOriginAndVectors.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AACH,OAAO,EAAE,SAAS,EAAmB,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE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C,GAAG,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACjE,OAAO,UAAU,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;SACtD;QACD,qDAAqD;QACrD,+DAA+D;QAC/D,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,KAAK,IAAI,KAAK,EAAE;YAClB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACvE,MAAM,CAAC,GAAG,QAAQ,CAAC,2BAA2B,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;YAClE,IAAI,CAAC,KAAK,SAAS;gBACjB,OAAO,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;SACzD;aAAM;YACL,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACvE,MAAM,CAAC,GAAG,QAAQ,CAAC,2BAA2B,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;YAClE,IAAI,CAAC,KAAK,SAAS;gBACjB,OAAO,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;SACzD;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CACF","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 CartesianGeometry\r\n */\r\nimport { AxisOrder, BeJSONFunctions, Geometry } from \"../Geometry\";\r\nimport { Plane3d } from \"./Plane3d\";\r\nimport { Point4d } from \"../geometry4d/Point4d\";\r\nimport { Point3d, Vector3d } from \"./Point3dVector3d\";\r\nimport { Ray3d } from \"./Ray3d\";\r\nimport { Transform } from \"./Transform\";\r\nimport { XYAndZ } from \"./XYZProps\";\r\nimport { Matrix3d } from \"./Matrix3d\";\r\n\r\n/**\r\n * A Plane3dByOriginAndVectors is an origin and a pair of vectors.\r\n * This defines a plane with a (possibly skewed) uv coordinate grid\r\n * * The grid directions (`vectorU` and `vectorV`)\r\n * * are NOT required to be unit vectors.\r\n * * are NOT required to be perpendicular vectors.\r\n * * The skewed, non-uniform scaling of the grid directions is the primary focus of this class.\r\n * * Queries of altitude, velocity, normalX, normalY, and normalZ use the NORMALIZED cross product of vectorU\r\n * and vectorV as plane normal.\r\n * * Hence these are cartesian distances.\r\n * * If numerous calls to these are expected, the repeated normalization may be a performance issue.\r\n * * Using a [[Plane3dByOriginAndUnitNormal]] or the rigid transform returned by [[toRigidFrame]] would provide\r\n * better performance.\r\n * @public\r\n */\r\nexport class Plane3dByOriginAndVectors extends Plane3d implements BeJSONFunctions {\r\n /** Origin of plane grid */\r\n public origin: Point3d;\r\n /** u direction in plane grid */\r\n public vectorU: Vector3d;\r\n /** v direction in plane grid */\r\n public vectorV: Vector3d;\r\n private constructor(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d) {\r\n super();\r\n this.origin = origin;\r\n this.vectorU = vectorU;\r\n this.vectorV = vectorV;\r\n }\r\n /** Create a new plane from origin and 2 in-plane vectors. */\r\n public static createOriginAndVectors(\r\n origin: Point3d, vectorU: Vector3d, vectorV: Vector3d, result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n if (result) {\r\n result.origin.setFrom(origin);\r\n result.vectorU.setFrom(vectorU);\r\n result.vectorV.setFrom(vectorV);\r\n return result;\r\n }\r\n return new Plane3dByOriginAndVectors(origin.clone(), vectorU.clone(), vectorV.clone());\r\n }\r\n /** Clone to a new plane. */\r\n public clone(result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n if (result !== undefined)\r\n result.setOriginAndVectors(this.origin, this.vectorU, this.vectorV);\r\n return new Plane3dByOriginAndVectors(this.origin.clone(), this.vectorU.clone(), this.vectorV.clone());\r\n }\r\n /**\r\n * Create a new Plane3dByOriginAndVectors from a variety of plane types.\r\n * * The input is NOT captured.\r\n */\r\n public static createFrom(source: Plane3d, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors | undefined {\r\n if (source instanceof Plane3dByOriginAndVectors)\r\n return source.clone(result);\r\n const normal = source.getUnitNormal();\r\n if (normal === undefined)\r\n return undefined;\r\n const origin = source.getAnyPointOnPlane();\r\n const vectorU = Matrix3d.createPerpendicularVectorFavorXYPlane(normal);\r\n if (vectorU.tryNormalizeInPlace()) {\r\n const vectorV = normal.unitCrossProduct(vectorU);\r\n if (vectorV !== undefined)\r\n return new Plane3dByOriginAndVectors(origin, vectorU, vectorV);\r\n }\r\n return undefined;\r\n }\r\n\r\n /**\r\n * Return a Plane3dByOriginAndVectors, with\r\n * * origin is the translation (aka origin) from the Transform\r\n * * vectorU is the X column of the transform\r\n * * vectorV is the Y column of the transform.\r\n * @param transform source transform\r\n * @param xLength optional length to impose on vectorU.\r\n * @param yLength optional length to impose on vectorV.\r\n * @param result optional preexisting result\r\n */\r\n public static createFromTransformColumnsXYAndLengths(\r\n transform: Transform, xLength: number | undefined, yLength: number | undefined, result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n if (result) {\r\n result.origin.setFrom(transform.getOrigin());\r\n transform.matrix.columnX(result.vectorU);\r\n transform.matrix.columnY(result.vectorV);\r\n } else {\r\n result = new Plane3dByOriginAndVectors(\r\n transform.getOrigin(),\r\n transform.matrix.columnX(),\r\n transform.matrix.columnY());\r\n }\r\n if (xLength !== undefined)\r\n result.vectorU.scaleToLength(xLength, result.vectorU);\r\n if (yLength !== undefined)\r\n result.vectorV.scaleToLength(yLength, result.vectorV);\r\n return result;\r\n }\r\n /** Capture origin and directions in a new plane. */\r\n public static createCapture(\r\n origin: Point3d, vectorU: Vector3d, vectorV: Vector3d, result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n if (!result)\r\n return new Plane3dByOriginAndVectors(origin, vectorU, vectorV);\r\n result.origin = origin;\r\n result.vectorU = vectorU;\r\n result.vectorV = vectorV;\r\n return result;\r\n }\r\n\r\n /** Set all origin and both vectors from direct numeric parameters */\r\n public setOriginAndVectorsXYZ(\r\n x0: number, y0: number, z0: number, ux: number, uy: number, uz: number, vx: number, vy: number, vz: number\r\n ): Plane3dByOriginAndVectors {\r\n this.origin.set(x0, y0, z0);\r\n this.vectorU.set(ux, uy, uz);\r\n this.vectorV.set(vx, vy, vz);\r\n return this;\r\n }\r\n /**\r\n * Set all origin and both vectors from coordinates in given origin and vectors.\r\n * * Note that coordinates are copied out of the parameters -- the given parameters are NOT retained by reference.\r\n */\r\n public setOriginAndVectors(origin: Point3d, vectorU: Vector3d, vectorV: Vector3d): Plane3dByOriginAndVectors {\r\n this.origin.setFrom(origin);\r\n this.vectorU.setFrom(vectorU);\r\n this.vectorV.setFrom(vectorV);\r\n return this;\r\n }\r\n /** Create a new plane from direct numeric parameters */\r\n public static createOriginAndVectorsXYZ(\r\n x0: number, y0: number, z0: number,\r\n ux: number, uy: number, uz: number,\r\n vx: number, vy: number, vz: number,\r\n result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n if (result)\r\n return result.setOriginAndVectorsXYZ(x0, y0, z0, ux, uy, uz, vx, vy, vz);\r\n return new Plane3dByOriginAndVectors(\r\n Point3d.create(x0, y0, z0), Vector3d.create(ux, uy, uz), Vector3d.create(vx, vy, vz)\r\n );\r\n }\r\n /**\r\n * Define a plane by three points in the plane.\r\n * @param origin origin for the parameterization.\r\n * @param targetU target point for the vectorU starting at the origin.\r\n * @param targetV target point for the vectorV originating at the origin.\r\n * @param result optional result.\r\n */\r\n public static createOriginAndTargets(\r\n origin: Point3d, targetU: Point3d, targetV: Point3d, result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(\r\n origin.x, origin.y, origin.z,\r\n targetU.x - origin.x, targetU.y - origin.y, targetU.z - origin.z,\r\n targetV.x - origin.x, targetV.y - origin.y, targetV.z - origin.z,\r\n result\r\n );\r\n }\r\n /** Create a plane with origin at 000, unit vectorU in x direction, and unit vectorV in the y direction. */\r\n public static createXYPlane(result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors {\r\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(0, 0, 0, 1, 0, 0, 0, 1, 0, result);\r\n }\r\n /**\r\n * Create a plane from data presented as Float64Arrays.\r\n * @param origin x,y,z of origin.\r\n * @param vectorU x,y,z of vectorU\r\n * @param vectorV x,y,z of vectorV\r\n */\r\n public static createOriginAndVectorsArrays(\r\n origin: Float64Array, vectorU: Float64Array, vectorV: Float64Array, result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(\r\n origin[0], origin[1], origin[2],\r\n vectorU[0], vectorU[1], vectorU[2],\r\n vectorV[0], vectorV[1], vectorV[2],\r\n result\r\n );\r\n }\r\n /**\r\n * Create a plane from data presented as Float64Array with weights\r\n * @param origin x,y,z,w of origin.\r\n * @param vectorU x,y,z,w of vectorU\r\n * @param vectorV x,y,z,w of vectorV\r\n */\r\n public static createOriginAndVectorsWeightedArrays(\r\n originW: Float64Array, vectorUw: Float64Array, vectorVw: Float64Array, result?: Plane3dByOriginAndVectors\r\n ): Plane3dByOriginAndVectors {\r\n const w = originW[3];\r\n result = Plane3dByOriginAndVectors.createXYPlane(result);\r\n if (Geometry.isSmallMetricDistance(w))\r\n return result;\r\n const dw = 1.0 / w;\r\n const au = vectorUw[3] * dw * dw;\r\n const av = vectorVw[3] * dw * dw;\r\n // for homogeneous function X, with w its weight:\r\n // (X/w) is the cartesian point.\r\n // (X/w)' = (X' w - X w')/(w*w)\r\n // = X'/w - (X/w)(w'/w)\r\n // = X'/w - X w'/w^2)\r\n // The w parts of the formal xyzw sums are identically 0.\r\n // Here the X' and its w' are taken from each vectorUw and vectorVw\r\n result.origin.set(originW[0] * dw, originW[1] * dw, originW[2] * dw);\r\n Vector3d.createAdd2ScaledXYZ(\r\n vectorUw[0], vectorUw[1], vectorUw[2], dw, originW[0], originW[1], originW[2], -au, result.vectorU\r\n );\r\n Vector3d.createAdd2ScaledXYZ(\r\n vectorVw[0], vectorVw[1], vectorVw[2], dw, originW[0], originW[1], originW[2], -av, result.vectorV\r\n );\r\n return result;\r\n }\r\n /**\r\n * Evaluate a point a grid coordinates on the plane.\r\n * * The computed point is `origin + vectorU * u + vectorV * v`\r\n * @param u coordinate along vectorU\r\n * @param v coordinate along vectorV\r\n * @param result optional result destination.\r\n * @returns Return the computed coordinate.\r\n */\r\n public fractionToPoint(u: number, v: number, result?: Point3d): Point3d {\r\n return this.origin.plus2Scaled(this.vectorU, u, this.vectorV, v, result);\r\n }\r\n /** Return the vector from the plane origin to parametric coordinate (u.v) */\r\n public fractionToVector(u: number, v: number, result?: Vector3d): Vector3d {\r\n return Vector3d.createAdd2Scaled(this.vectorU, u, this.vectorV, v, result);\r\n }\r\n /** Set coordinates from a json object such as `{origin: [1,2,3], vectorU:[4,5,6], vectorV[3,2,1]}` */\r\n public setFromJSON(json?: any) {\r\n if (!json || !json.origin || !json.vectorV) {\r\n this.origin.set(0, 0, 0);\r\n this.vectorU.set(1, 0, 0);\r\n this.vectorV.set(0, 1, 0);\r\n } else {\r\n this.origin.setFromJSON(json.origin);\r\n this.vectorU.setFromJSON(json.vectorU);\r\n this.vectorV.setFromJSON(json.vectorV);\r\n }\r\n }\r\n /**\r\n * Convert an Angle to a JSON object.\r\n * @return {*} [origin,normal]\r\n */\r\n public toJSON(): any {\r\n return {\r\n origin: this.origin.toJSON(),\r\n vectorU: this.vectorU.toJSON(),\r\n vectorV: this.vectorV.toJSON(),\r\n };\r\n }\r\n /** Create a new plane. See `setFromJSON` for layout example. */\r\n public static fromJSON(json?: any): Plane3dByOriginAndVectors {\r\n const result = Plane3dByOriginAndVectors.createXYPlane();\r\n result.setFromJSON(json);\r\n return result;\r\n }\r\n /** Test origin and vectors for isAlmostEqual with `other` */\r\n public isAlmostEqual(other: Plane3dByOriginAndVectors): boolean {\r\n return this.origin.isAlmostEqual(other.origin)\r\n && this.vectorU.isAlmostEqual(other.vectorU)\r\n && this.vectorV.isAlmostEqual(other.vectorV);\r\n }\r\n /**\r\n * Normalize both `vectorU` and `vectorV` in place. This does NOT make them perpendicular.\r\n * * Return true if both succeeded.\r\n */\r\n public normalizeInPlace(): boolean {\r\n const okU = this.vectorU.normalizeInPlace();\r\n const okV = this.vectorV.normalizeInPlace();\r\n return okU && okV;\r\n }\r\n /** Return (if possible) a unit normal to the plane */\r\n public override getUnitNormal(result?: Vector3d): Vector3d | undefined {\r\n return this.vectorU.unitCrossProduct(this.vectorV, result);\r\n }\r\n /**\r\n * Return (if possible) a unit normal to the plane.\r\n * * This method is the same as getUnitNormal, which was created later as part of the abstract base class Plane3d.\r\n */\r\n public unitNormal(result?: Vector3d): Vector3d | undefined {\r\n return this.vectorU.unitCrossProduct(this.vectorV, result);\r\n }\r\n /**\r\n * Return some point on the plane.\r\n */\r\n public override getAnyPointOnPlane(result?: Point3d): Point3d {\r\n return this.origin.clone(result);\r\n }\r\n private static _workVector: Vector3d;\r\n /** Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane */\r\n public unitNormalRay(result?: Ray3d): Ray3d | undefined {\r\n if (!Plane3dByOriginAndVectors._workVector)\r\n Plane3dByOriginAndVectors._workVector = Vector3d.create();\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV, Plane3dByOriginAndVectors._workVector);\r\n if (unitNormal === undefined)\r\n return undefined;\r\n return Ray3d.create(this.origin, unitNormal, result);\r\n }\r\n /**\r\n * Create a rigid frame (i.e. frenet frame) with\r\n * * origin at the plane origin\r\n * * x axis along the (normalized) vectorU\r\n * * y axis normalized vectorU to vectorV plane, and perpendicular to x axis\r\n * * z axis perpendicular to both.\r\n * @param result optional result\r\n */\r\n public toRigidFrame(result?: Transform): Transform | undefined {\r\n return Transform.createRigidFromOriginAndColumns(this.origin, this.vectorU, this.vectorV, AxisOrder.XYZ, result);\r\n }\r\n /** Apply the transform to the origin and vectors in place */\r\n public transformInPlace(transform: Transform) {\r\n transform.multiplyPoint3d(this.origin, this.origin);\r\n transform.multiplyVector(this.vectorU, this.vectorU);\r\n transform.multiplyVector(this.vectorV, this.vectorV);\r\n }\r\n /**\r\n * Return x component of the (normalized!) {vectorU CROSS vectorV}.\r\n * Return 0 if the cross product is zero.\r\n */\r\n public normalX(): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n return unitNormal !== undefined ? unitNormal.x : 0.0;\r\n }\r\n /**\r\n * Return y component of the (normalized!) {vectorU CROSS vectorV}.\r\n * Return 0 if the cross product is zero.\r\n */\r\n public normalY(): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n return unitNormal !== undefined ? unitNormal.y : 0.0;\r\n }\r\n /**\r\n * Return z component of the (normalized!) {vectorU CROSS vectorV}.\r\n * Return 0 if the cross product is zero.\r\n */\r\n public normalZ(): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n return unitNormal !== undefined ? unitNormal.z : 0.0;\r\n }\r\n /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */\r\n public altitude(xyz: XYAndZ): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n (xyz.x - this.origin.x), (xyz.y - this.origin.y), (xyz.z - this.origin.z),\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return signed cartesian altitude perpendicular to the plane. This uses the normalized cross product as normal. */\r\n public altitudeXYZ(x: number, y: number, z: number): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n (x - this.origin.x), (y - this.origin.y), (z - this.origin.z),\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */\r\n public velocity(xyzVector: XYAndZ): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n xyzVector.x, xyzVector.y, xyzVector.z,\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /** Return signed projection of the input vector to the plane normal. This uses the normalized cross product as normal. */\r\n public velocityXYZ(x: number, y: number, z: number): number {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal === undefined)\r\n return 0.0;\r\n return Geometry.dotProductXYZXYZ(\r\n x, y, z,\r\n unitNormal.x, unitNormal.y, unitNormal.z);\r\n }\r\n /**\r\n * Return triple product of homogeneous difference {(xyzw - w * origin)} with vectorU and vectorV.\r\n * * In the usual manner of homogeneous calculations, this is proportional to true cartesian distance from the\r\n * plane but is not a physical distance.\r\n */\r\n public weightedAltitude(xyzw: Point4d) {\r\n const w = xyzw.w;\r\n return Geometry.tripleProduct(\r\n (xyzw.x - this.origin.x * w), (xyzw.y - this.origin.y * w), (xyzw.z - this.origin.z * w),\r\n this.vectorU.x, this.vectorU.y, this.vectorU.z,\r\n this.vectorV.x, this.vectorV.y, this.vectorV.z);\r\n }\r\n /**\r\n * Return the projection of spacePoint onto the plane.\r\n * If the plane is degenerate to a ray, project to the ray.\r\n * If the plane is degenerate to its origin, return the point\r\n */\r\n public projectPointToPlane(spacePoint: Point3d, result?: Point3d): Point3d {\r\n const unitNormal = this.vectorU.unitCrossProduct(this.vectorV);\r\n if (unitNormal !== undefined) {\r\n const w = unitNormal.dotProductStartEnd(this.origin, spacePoint);\r\n return spacePoint.plusScaled(unitNormal, -w, result);\r\n }\r\n // uh oh. vectorU and vectorV are colinear or zero.\r\n // project to ray defined by the longer one, or just to origin.\r\n const dotUU = this.vectorU.magnitudeSquared();\r\n const dotVV = this.vectorV.magnitudeSquared();\r\n if (dotUU >= dotVV) {\r\n const dotUW = this.vectorU.dotProductStartEnd(this.origin, spacePoint);\r\n const f = Geometry.conditionalDivideCoordinate(dotUW, dotUU, 0.0);\r\n if (f !== undefined)\r\n return spacePoint.plusScaled(this.vectorU, f, result);\r\n } else {\r\n const dotVW = this.vectorV.dotProductStartEnd(this.origin, spacePoint);\r\n const f = Geometry.conditionalDivideCoordinate(dotVW, dotVV, 0.0);\r\n if (f !== undefined)\r\n return spacePoint.plusScaled(this.vectorV, f, result);\r\n }\r\n return this.origin.clone(result);\r\n }\r\n}\r\n"]}
@@ -464,6 +464,14 @@ export declare class Vector3d extends XYZ {
464
464
  * @returns undefined if and only if normalization fails
465
465
  */
466
466
  static createNormalized(x?: number, y?: number, z?: number, result?: Vector3d): Vector3d | undefined;
467
+ /**
468
+ * Create a normalized vector from startPoint to endPoint
469
+ * @param startPoint start point of vector
470
+ * @param endPoint end point of vector
471
+ * @param result optional result
472
+ * @returns undefined if and only if normalization fails.
473
+ */
474
+ static createNormalizedStartEnd(startPoint: XYAndZ, endPoint: XYAndZ, result?: Vector3d): Vector3d | undefined;
467
475
  /**
468
476
  * Return fractional projection of this vector on the target vector.
469
477
  * * It's returning the signed projection magnitude divided by the target magnitude.
@@ -1 +1 @@
1
- {"version":3,"file":"Point3dVector3d.d.ts","sourceRoot":"","sources":["../../../src/geometry3d/Point3dVector3d.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH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