@itwin/core-geometry 3.0.0-dev.76 → 3.0.0-dev.80
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.
- package/CHANGELOG.md +1049 -0
- package/lib/{Constant.d.ts → cjs/Constant.d.ts} +0 -0
- package/lib/cjs/Constant.d.ts.map +1 -0
- package/lib/{Constant.js → cjs/Constant.js} +0 -0
- package/lib/cjs/Constant.js.map +1 -0
- package/lib/{Geometry.d.ts → cjs/Geometry.d.ts} +0 -0
- package/lib/cjs/Geometry.d.ts.map +1 -0
- package/lib/{Geometry.js → cjs/Geometry.js} +0 -0
- package/lib/cjs/Geometry.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/AkimaCurve3d.d.ts +0 -0
- package/lib/cjs/bspline/AkimaCurve3d.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/AkimaCurve3d.js +0 -0
- package/lib/cjs/bspline/AkimaCurve3d.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSpline1dNd.d.ts +0 -0
- package/lib/cjs/bspline/BSpline1dNd.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSpline1dNd.js +0 -0
- package/lib/cjs/bspline/BSpline1dNd.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineCurve.d.ts +0 -0
- package/lib/cjs/bspline/BSplineCurve.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineCurve.js +0 -0
- package/lib/cjs/bspline/BSplineCurve.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineCurve3dH.d.ts +0 -0
- package/lib/cjs/bspline/BSplineCurve3dH.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineCurve3dH.js +0 -0
- package/lib/cjs/bspline/BSplineCurve3dH.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineCurveOps.d.ts +0 -0
- package/lib/cjs/bspline/BSplineCurveOps.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineCurveOps.js +0 -0
- package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -0
- package/lib/cjs/bspline/BSplineSurface.d.ts +491 -0
- package/lib/cjs/bspline/BSplineSurface.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BSplineSurface.js +0 -0
- package/lib/cjs/bspline/BSplineSurface.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/Bezier1dNd.d.ts +0 -0
- package/lib/cjs/bspline/Bezier1dNd.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/Bezier1dNd.js +0 -0
- package/lib/cjs/bspline/Bezier1dNd.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BezierCurve3d.d.ts +0 -0
- package/lib/cjs/bspline/BezierCurve3d.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BezierCurve3d.js +0 -0
- package/lib/cjs/bspline/BezierCurve3d.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BezierCurve3dH.d.ts +0 -0
- package/lib/cjs/bspline/BezierCurve3dH.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BezierCurve3dH.js +0 -0
- package/lib/cjs/bspline/BezierCurve3dH.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/BezierCurveBase.d.ts +0 -0
- package/lib/cjs/bspline/BezierCurveBase.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/BezierCurveBase.js +0 -0
- package/lib/cjs/bspline/BezierCurveBase.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/InterpolationCurve3d.d.ts +0 -0
- package/lib/cjs/bspline/InterpolationCurve3d.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/InterpolationCurve3d.js +0 -0
- package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/KnotVector.d.ts +0 -0
- package/lib/cjs/bspline/KnotVector.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/KnotVector.js +0 -0
- package/lib/cjs/bspline/KnotVector.js.map +1 -0
- package/lib/{bspline → cjs/bspline}/SurfaceLocationDetail.d.ts +0 -0
- package/lib/cjs/bspline/SurfaceLocationDetail.d.ts.map +1 -0
- package/lib/{bspline → cjs/bspline}/SurfaceLocationDetail.js +0 -0
- package/lib/cjs/bspline/SurfaceLocationDetail.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/AlternatingConvexClipTree.d.ts +0 -0
- package/lib/cjs/clipping/AlternatingConvexClipTree.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/AlternatingConvexClipTree.js +0 -0
- package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/BooleanClipFactory.d.ts +0 -0
- package/lib/cjs/clipping/BooleanClipFactory.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/BooleanClipFactory.js +0 -0
- package/lib/cjs/clipping/BooleanClipFactory.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/BooleanClipNode.d.ts +0 -0
- package/lib/cjs/clipping/BooleanClipNode.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/BooleanClipNode.js +0 -0
- package/lib/cjs/clipping/BooleanClipNode.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipPlane.d.ts +0 -0
- package/lib/cjs/clipping/ClipPlane.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipPlane.js +0 -0
- package/lib/cjs/clipping/ClipPlane.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipPrimitive.d.ts +0 -0
- package/lib/cjs/clipping/ClipPrimitive.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipPrimitive.js +0 -0
- package/lib/cjs/clipping/ClipPrimitive.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipUtils.d.ts +0 -0
- package/lib/cjs/clipping/ClipUtils.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipUtils.js +0 -0
- package/lib/cjs/clipping/ClipUtils.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipVector.d.ts +0 -0
- package/lib/cjs/clipping/ClipVector.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/ClipVector.js +0 -0
- package/lib/cjs/clipping/ClipVector.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/ConvexClipPlaneSet.d.ts +0 -0
- package/lib/cjs/clipping/ConvexClipPlaneSet.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/ConvexClipPlaneSet.js +0 -0
- package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/UnionOfConvexClipPlaneSets.d.ts +0 -0
- package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/UnionOfConvexClipPlaneSets.js +0 -0
- package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -0
- package/lib/{clipping → cjs/clipping}/internalContexts/LineStringOffsetClipperContext.d.ts +0 -0
- package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.d.ts.map +1 -0
- package/lib/{clipping → cjs/clipping}/internalContexts/LineStringOffsetClipperContext.js +0 -0
- package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -0
- package/lib/{core-geometry.d.ts → cjs/core-geometry.d.ts} +0 -0
- package/lib/cjs/core-geometry.d.ts.map +1 -0
- package/lib/{core-geometry.js → cjs/core-geometry.js} +0 -0
- package/lib/cjs/core-geometry.js.map +1 -0
- package/lib/{curve → cjs/curve}/Arc3d.d.ts +0 -0
- package/lib/cjs/curve/Arc3d.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Arc3d.js +0 -0
- package/lib/cjs/curve/Arc3d.js.map +1 -0
- package/lib/{curve → cjs/curve}/ChainCollectorContext.d.ts +0 -0
- package/lib/cjs/curve/ChainCollectorContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/ChainCollectorContext.js +0 -0
- package/lib/cjs/curve/ChainCollectorContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/ConstructCurveBetweenCurves.d.ts +0 -0
- package/lib/cjs/curve/ConstructCurveBetweenCurves.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/ConstructCurveBetweenCurves.js +0 -0
- package/lib/cjs/curve/ConstructCurveBetweenCurves.js.map +1 -0
- package/lib/{curve → cjs/curve}/CoordinateXYZ.d.ts +0 -0
- package/lib/cjs/curve/CoordinateXYZ.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CoordinateXYZ.js +0 -0
- package/lib/cjs/curve/CoordinateXYZ.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveChain.d.ts +0 -0
- package/lib/cjs/curve/CurveChain.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveChain.js +0 -0
- package/lib/cjs/curve/CurveChain.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveChainWithDistanceIndex.d.ts +0 -0
- package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveChainWithDistanceIndex.js +0 -0
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCollection.d.ts +0 -0
- package/lib/cjs/curve/CurveCollection.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCollection.js +0 -0
- package/lib/cjs/curve/CurveCollection.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurve.d.ts +0 -0
- package/lib/cjs/curve/CurveCurve.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurve.js +0 -0
- package/lib/cjs/curve/CurveCurve.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurveCloseApproachXY.d.ts +0 -0
- package/lib/cjs/curve/CurveCurveCloseApproachXY.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurveCloseApproachXY.js +0 -0
- package/lib/cjs/curve/CurveCurveCloseApproachXY.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurveIntersectXY.d.ts +0 -0
- package/lib/cjs/curve/CurveCurveIntersectXY.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurveIntersectXY.js +0 -0
- package/lib/cjs/curve/CurveCurveIntersectXY.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurveIntersectXYZ.d.ts +0 -0
- package/lib/cjs/curve/CurveCurveIntersectXYZ.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveCurveIntersectXYZ.js +0 -0
- package/lib/cjs/curve/CurveCurveIntersectXYZ.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveExtendMode.d.ts +0 -0
- package/lib/cjs/curve/CurveExtendMode.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveExtendMode.js +0 -0
- package/lib/cjs/curve/CurveExtendMode.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveFactory.d.ts +0 -0
- package/lib/cjs/curve/CurveFactory.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveFactory.js +0 -0
- package/lib/cjs/curve/CurveFactory.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveLocationDetail.d.ts +0 -0
- package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveLocationDetail.js +0 -0
- package/lib/cjs/curve/CurveLocationDetail.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurvePrimitive.d.ts +0 -0
- package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurvePrimitive.js +0 -0
- package/lib/cjs/curve/CurvePrimitive.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveProcessor.d.ts +0 -0
- package/lib/cjs/curve/CurveProcessor.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveProcessor.js +0 -0
- package/lib/cjs/curve/CurveProcessor.js.map +1 -0
- package/lib/{curve → cjs/curve}/CurveWireMomentsXYZ.d.ts +0 -0
- package/lib/cjs/curve/CurveWireMomentsXYZ.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/CurveWireMomentsXYZ.js +0 -0
- package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -0
- package/lib/{curve → cjs/curve}/GeometryQuery.d.ts +0 -0
- package/lib/cjs/curve/GeometryQuery.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/GeometryQuery.js +0 -0
- package/lib/cjs/curve/GeometryQuery.js.map +1 -0
- package/lib/{curve → cjs/curve}/LineSegment3d.d.ts +0 -0
- package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/LineSegment3d.js +0 -0
- package/lib/cjs/curve/LineSegment3d.js.map +1 -0
- package/lib/{curve → cjs/curve}/LineString3d.d.ts +0 -0
- package/lib/cjs/curve/LineString3d.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/LineString3d.js +0 -0
- package/lib/cjs/curve/LineString3d.js.map +1 -0
- package/lib/{curve → cjs/curve}/Loop.d.ts +0 -0
- package/lib/cjs/curve/Loop.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Loop.js +0 -0
- package/lib/cjs/curve/Loop.js.map +1 -0
- package/lib/{curve → cjs/curve}/ParityRegion.d.ts +0 -0
- package/lib/cjs/curve/ParityRegion.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/ParityRegion.js +0 -0
- package/lib/cjs/curve/ParityRegion.js.map +1 -0
- package/lib/{curve → cjs/curve}/Path.d.ts +0 -0
- package/lib/cjs/curve/Path.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Path.js +0 -0
- package/lib/cjs/curve/Path.js.map +1 -0
- package/lib/{curve → cjs/curve}/PointString3d.d.ts +0 -0
- package/lib/cjs/curve/PointString3d.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/PointString3d.js +0 -0
- package/lib/cjs/curve/PointString3d.js.map +1 -0
- package/lib/{curve → cjs/curve}/ProxyCurve.d.ts +0 -0
- package/lib/cjs/curve/ProxyCurve.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/ProxyCurve.js +0 -0
- package/lib/cjs/curve/ProxyCurve.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/ConsolidateAdjacentPrimitivesContext.d.ts +0 -0
- package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/ConsolidateAdjacentPrimitivesContext.js +0 -0
- package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/CurveSplitContext.d.ts +0 -0
- package/lib/cjs/curve/Query/CurveSplitContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/CurveSplitContext.js +0 -0
- package/lib/cjs/curve/Query/CurveSplitContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/CylindricalRange.d.ts +0 -0
- package/lib/cjs/curve/Query/CylindricalRange.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/CylindricalRange.js +0 -0
- package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/InOutTests.d.ts +0 -0
- package/lib/cjs/curve/Query/InOutTests.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/InOutTests.js +0 -0
- package/lib/cjs/curve/Query/InOutTests.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/PlanarSubdivision.d.ts +0 -0
- package/lib/cjs/curve/Query/PlanarSubdivision.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/PlanarSubdivision.js +0 -0
- package/lib/cjs/curve/Query/PlanarSubdivision.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/StrokeCountChain.d.ts +0 -0
- package/lib/cjs/curve/Query/StrokeCountChain.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/StrokeCountChain.js +0 -0
- package/lib/cjs/curve/Query/StrokeCountChain.js.map +1 -0
- package/lib/{curve → cjs/curve}/Query/StrokeCountMap.d.ts +0 -0
- package/lib/cjs/curve/Query/StrokeCountMap.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/Query/StrokeCountMap.js +0 -0
- package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -0
- package/lib/{curve → cjs/curve}/RegionMomentsXY.d.ts +0 -0
- package/lib/cjs/curve/RegionMomentsXY.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/RegionMomentsXY.js +0 -0
- package/lib/cjs/curve/RegionMomentsXY.js.map +1 -0
- package/lib/{curve → cjs/curve}/RegionOps.d.ts +0 -0
- package/lib/cjs/curve/RegionOps.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/RegionOps.js +0 -0
- package/lib/cjs/curve/RegionOps.js.map +1 -0
- package/lib/{curve → cjs/curve}/RegionOpsClassificationSweeps.d.ts +0 -0
- package/lib/cjs/curve/RegionOpsClassificationSweeps.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/RegionOpsClassificationSweeps.js +0 -0
- package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -0
- package/lib/{curve → cjs/curve}/StrokeOptions.d.ts +0 -0
- package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/StrokeOptions.js +0 -0
- package/lib/cjs/curve/StrokeOptions.js.map +1 -0
- package/lib/{curve → cjs/curve}/UnionRegion.d.ts +0 -0
- package/lib/cjs/curve/UnionRegion.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/UnionRegion.js +0 -0
- package/lib/cjs/curve/UnionRegion.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/CloneCurvesContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/CloneCurvesContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/CloneCurvesContext.js +0 -0
- package/lib/cjs/curve/internalContexts/CloneCurvesContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/CloneWithExpandedLineStrings.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/CloneWithExpandedLineStrings.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/CloneWithExpandedLineStrings.js +0 -0
- package/lib/cjs/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/CountLinearPartsSearchContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/CountLinearPartsSearchContext.js +0 -0
- package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/GapSearchContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/GapSearchContext.js +0 -0
- package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/MultiChainCollector.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/MultiChainCollector.js +0 -0
- package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/PlaneAltitudeRangeContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/PlaneAltitudeRangeContext.js +0 -0
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/PolygonOffsetContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/PolygonOffsetContext.js +0 -0
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/SumLengthsContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/SumLengthsContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/SumLengthsContext.js +0 -0
- package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/TransformInPlaceContext.d.ts +0 -0
- package/lib/cjs/curve/internalContexts/TransformInPlaceContext.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/internalContexts/TransformInPlaceContext.js +0 -0
- package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/AustralianRailCorpXYEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/AustralianRailCorpXYEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/ClothoidSeries.d.ts +0 -0
- package/lib/cjs/curve/spiral/ClothoidSeries.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/ClothoidSeries.js +0 -0
- package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/CubicEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/CubicEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/CubicEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/CzechSpiralEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/CzechSpiralEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/DirectHalfCosineSpiralEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/DirectHalfCosineSpiralEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -0
- package/lib/cjs/curve/spiral/DirectSpiral3d.d.ts +265 -0
- package/lib/cjs/curve/spiral/DirectSpiral3d.d.ts.map +1 -0
- package/lib/cjs/curve/spiral/DirectSpiral3d.js +473 -0
- package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -0
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.d.ts +158 -0
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.d.ts.map +1 -0
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js +364 -0
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/MXCubicAlongArcSpiralEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/MXCubicAlongArcSpiralEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/NormalizedTransition.d.ts +0 -0
- package/lib/cjs/curve/spiral/NormalizedTransition.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/NormalizedTransition.js +0 -0
- package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/PolishCubicSpiralEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/PolishCubicSpiralEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/TransitionConditionalProperties.d.ts +0 -0
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/TransitionConditionalProperties.js +0 -0
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/TransitionSpiral3d.d.ts +0 -0
- package/lib/cjs/curve/spiral/TransitionSpiral3d.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/TransitionSpiral3d.js +0 -0
- package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/XYCurveEvaluator.d.ts +0 -0
- package/lib/cjs/curve/spiral/XYCurveEvaluator.d.ts.map +1 -0
- package/lib/{curve → cjs/curve}/spiral/XYCurveEvaluator.js +0 -0
- package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Angle.d.ts +0 -0
- package/lib/cjs/geometry3d/Angle.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Angle.js +0 -0
- package/lib/cjs/geometry3d/Angle.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/AngleSweep.d.ts +0 -0
- package/lib/cjs/geometry3d/AngleSweep.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/AngleSweep.js +0 -0
- package/lib/cjs/geometry3d/AngleSweep.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/BarycentricTriangle.d.ts +0 -0
- package/lib/cjs/geometry3d/BarycentricTriangle.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/BarycentricTriangle.js +0 -0
- package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/BilinearPatch.d.ts +0 -0
- package/lib/cjs/geometry3d/BilinearPatch.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/BilinearPatch.js +0 -0
- package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/CoincidentGeometryOps.d.ts +0 -0
- package/lib/cjs/geometry3d/CoincidentGeometryOps.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/CoincidentGeometryOps.js +0 -0
- package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Ellipsoid.d.ts +0 -0
- package/lib/cjs/geometry3d/Ellipsoid.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Ellipsoid.js +0 -0
- package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/FrameBuilder.d.ts +0 -0
- package/lib/cjs/geometry3d/FrameBuilder.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/FrameBuilder.js +0 -0
- package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/FrustumAnimation.d.ts +0 -0
- package/lib/cjs/geometry3d/FrustumAnimation.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/FrustumAnimation.js +0 -0
- package/lib/cjs/geometry3d/FrustumAnimation.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GeometryHandler.d.ts +0 -0
- package/lib/cjs/geometry3d/GeometryHandler.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GeometryHandler.js +0 -0
- package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableBlockedArray.d.ts +0 -0
- package/lib/cjs/geometry3d/GrowableBlockedArray.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableBlockedArray.js +0 -0
- package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableFloat64Array.d.ts +0 -0
- package/lib/cjs/geometry3d/GrowableFloat64Array.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableFloat64Array.js +0 -0
- package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableXYArray.d.ts +0 -0
- package/lib/cjs/geometry3d/GrowableXYArray.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableXYArray.js +0 -0
- package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableXYZArray.d.ts +0 -0
- package/lib/cjs/geometry3d/GrowableXYZArray.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/GrowableXYZArray.js +0 -0
- package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/IndexedCollectionInterval.d.ts +0 -0
- package/lib/cjs/geometry3d/IndexedCollectionInterval.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/IndexedCollectionInterval.js +0 -0
- package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/IndexedXYCollection.d.ts +0 -0
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/IndexedXYCollection.js +0 -0
- package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/IndexedXYZCollection.d.ts +0 -0
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/IndexedXYZCollection.js +0 -0
- package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/LongitudeLatitudeAltitude.d.ts +0 -0
- package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/LongitudeLatitudeAltitude.js +0 -0
- package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Matrix3d.d.ts +0 -0
- package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Matrix3d.js +0 -0
- package/lib/cjs/geometry3d/Matrix3d.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/OrderedRotationAngles.d.ts +0 -0
- package/lib/cjs/geometry3d/OrderedRotationAngles.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/OrderedRotationAngles.js +0 -0
- package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Plane3dByOriginAndUnitNormal.d.ts +0 -0
- package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Plane3dByOriginAndUnitNormal.js +0 -0
- package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Plane3dByOriginAndVectors.d.ts +0 -0
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Plane3dByOriginAndVectors.js +0 -0
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point2dArrayCarrier.d.ts +0 -0
- package/lib/cjs/geometry3d/Point2dArrayCarrier.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point2dArrayCarrier.js +0 -0
- package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point2dVector2d.d.ts +0 -0
- package/lib/cjs/geometry3d/Point2dVector2d.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point2dVector2d.js +0 -0
- package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point3dArrayCarrier.d.ts +0 -0
- package/lib/cjs/geometry3d/Point3dArrayCarrier.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point3dArrayCarrier.js +0 -0
- package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point3dVector3d.d.ts +0 -0
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Point3dVector3d.js +0 -0
- package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PointHelpers.d.ts +0 -0
- package/lib/cjs/geometry3d/PointHelpers.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PointHelpers.js +0 -0
- package/lib/cjs/geometry3d/PointHelpers.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PointStreaming.d.ts +0 -0
- package/lib/cjs/geometry3d/PointStreaming.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PointStreaming.js +0 -0
- package/lib/cjs/geometry3d/PointStreaming.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PolygonOps.d.ts +0 -0
- package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PolygonOps.js +0 -0
- package/lib/cjs/geometry3d/PolygonOps.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PolylineCompressionByEdgeOffset.d.ts +0 -0
- package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PolylineCompressionByEdgeOffset.js +0 -0
- package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PolylineOps.d.ts +0 -0
- package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/PolylineOps.js +0 -0
- package/lib/cjs/geometry3d/PolylineOps.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Range.d.ts +0 -0
- package/lib/cjs/geometry3d/Range.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Range.js +0 -0
- package/lib/cjs/geometry3d/Range.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Ray3d.d.ts +0 -0
- package/lib/cjs/geometry3d/Ray3d.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Ray3d.js +0 -0
- package/lib/cjs/geometry3d/Ray3d.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/ReusableObjectCache.d.ts +0 -0
- package/lib/cjs/geometry3d/ReusableObjectCache.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/ReusableObjectCache.js +0 -0
- package/lib/cjs/geometry3d/ReusableObjectCache.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Segment1d.d.ts +0 -0
- package/lib/cjs/geometry3d/Segment1d.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Segment1d.js +0 -0
- package/lib/cjs/geometry3d/Segment1d.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/SortablePolygon.d.ts +0 -0
- package/lib/cjs/geometry3d/SortablePolygon.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/SortablePolygon.js +0 -0
- package/lib/cjs/geometry3d/SortablePolygon.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Transform.d.ts +0 -0
- package/lib/cjs/geometry3d/Transform.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/Transform.js +0 -0
- package/lib/cjs/geometry3d/Transform.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/UVSurfaceOps.d.ts +0 -0
- package/lib/cjs/geometry3d/UVSurfaceOps.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/UVSurfaceOps.js +0 -0
- package/lib/cjs/geometry3d/UVSurfaceOps.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/XYZProps.d.ts +0 -0
- package/lib/cjs/geometry3d/XYZProps.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/XYZProps.js +0 -0
- package/lib/cjs/geometry3d/XYZProps.js.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/YawPitchRollAngles.d.ts +0 -0
- package/lib/cjs/geometry3d/YawPitchRollAngles.d.ts.map +1 -0
- package/lib/{geometry3d → cjs/geometry3d}/YawPitchRollAngles.js +0 -0
- package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/Map4d.d.ts +0 -0
- package/lib/cjs/geometry4d/Map4d.d.ts.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/Map4d.js +0 -0
- package/lib/cjs/geometry4d/Map4d.js.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/Matrix4d.d.ts +0 -0
- package/lib/cjs/geometry4d/Matrix4d.d.ts.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/Matrix4d.js +0 -0
- package/lib/cjs/geometry4d/Matrix4d.js.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/MomentData.d.ts +0 -0
- package/lib/cjs/geometry4d/MomentData.d.ts.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/MomentData.js +0 -0
- package/lib/cjs/geometry4d/MomentData.js.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/PlaneByOriginAndVectors4d.d.ts +0 -0
- package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.d.ts.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/PlaneByOriginAndVectors4d.js +0 -0
- package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/Point4d.d.ts +0 -0
- package/lib/cjs/geometry4d/Point4d.d.ts.map +1 -0
- package/lib/{geometry4d → cjs/geometry4d}/Point4d.js +0 -0
- package/lib/cjs/geometry4d/Point4d.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/BandedSystem.d.ts +0 -0
- package/lib/cjs/numerics/BandedSystem.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/BandedSystem.js +0 -0
- package/lib/cjs/numerics/BandedSystem.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/BezierPolynomials.d.ts +0 -0
- package/lib/cjs/numerics/BezierPolynomials.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/BezierPolynomials.js +0 -0
- package/lib/cjs/numerics/BezierPolynomials.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/ClusterableArray.d.ts +0 -0
- package/lib/cjs/numerics/ClusterableArray.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/ClusterableArray.js +0 -0
- package/lib/cjs/numerics/ClusterableArray.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/Complex.d.ts +0 -0
- package/lib/cjs/numerics/Complex.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/Complex.js +0 -0
- package/lib/cjs/numerics/Complex.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/ConvexPolygon2d.d.ts +0 -0
- package/lib/cjs/numerics/ConvexPolygon2d.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/ConvexPolygon2d.js +0 -0
- package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/Newton.d.ts +0 -0
- package/lib/cjs/numerics/Newton.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/Newton.js +0 -0
- package/lib/cjs/numerics/Newton.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/PascalCoefficients.d.ts +0 -0
- package/lib/cjs/numerics/PascalCoefficients.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/PascalCoefficients.js +0 -0
- package/lib/cjs/numerics/PascalCoefficients.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/PolarData.d.ts +0 -0
- package/lib/cjs/numerics/PolarData.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/PolarData.js +0 -0
- package/lib/cjs/numerics/PolarData.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/Polynomials.d.ts +0 -0
- package/lib/cjs/numerics/Polynomials.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/Polynomials.js +0 -0
- package/lib/cjs/numerics/Polynomials.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/Quadrature.d.ts +0 -0
- package/lib/cjs/numerics/Quadrature.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/Quadrature.js +0 -0
- package/lib/cjs/numerics/Quadrature.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/Range1dArray.d.ts +0 -0
- package/lib/cjs/numerics/Range1dArray.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/Range1dArray.js +0 -0
- package/lib/cjs/numerics/Range1dArray.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/TriDiagonalSystem.d.ts +0 -0
- package/lib/cjs/numerics/TriDiagonalSystem.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/TriDiagonalSystem.js +0 -0
- package/lib/cjs/numerics/TriDiagonalSystem.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/UnionFind.d.ts +0 -0
- package/lib/cjs/numerics/UnionFind.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/UnionFind.js +0 -0
- package/lib/cjs/numerics/UnionFind.js.map +1 -0
- package/lib/{numerics → cjs/numerics}/UsageSums.d.ts +0 -0
- package/lib/cjs/numerics/UsageSums.d.ts.map +1 -0
- package/lib/{numerics → cjs/numerics}/UsageSums.js +0 -0
- package/lib/cjs/numerics/UsageSums.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/AuxData.d.ts +0 -0
- package/lib/cjs/polyface/AuxData.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/AuxData.js +0 -0
- package/lib/cjs/polyface/AuxData.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/BoxTopology.d.ts +0 -0
- package/lib/cjs/polyface/BoxTopology.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/BoxTopology.js +0 -0
- package/lib/cjs/polyface/BoxTopology.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/FacetFaceData.d.ts +0 -0
- package/lib/cjs/polyface/FacetFaceData.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/FacetFaceData.js +0 -0
- package/lib/cjs/polyface/FacetFaceData.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/FacetOrientation.d.ts +0 -0
- package/lib/cjs/polyface/FacetOrientation.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/FacetOrientation.js +0 -0
- package/lib/cjs/polyface/FacetOrientation.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/GreedyTriangulationBetweenLineStrings.d.ts +0 -0
- package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/GreedyTriangulationBetweenLineStrings.js +0 -0
- package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/IndexedEdgeMatcher.d.ts +0 -0
- package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/IndexedEdgeMatcher.js +0 -0
- package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/IndexedPolyfaceVisitor.d.ts +0 -0
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/IndexedPolyfaceVisitor.js +0 -0
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/Polyface.d.ts +0 -0
- package/lib/cjs/polyface/Polyface.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/Polyface.js +0 -0
- package/lib/cjs/polyface/Polyface.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/PolyfaceBuilder.d.ts +0 -0
- package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/PolyfaceBuilder.js +0 -0
- package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/PolyfaceClip.d.ts +0 -0
- package/lib/cjs/polyface/PolyfaceClip.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/PolyfaceClip.js +0 -0
- package/lib/cjs/polyface/PolyfaceClip.js.map +1 -0
- package/lib/cjs/polyface/PolyfaceData.d.ts +206 -0
- package/lib/cjs/polyface/PolyfaceData.d.ts.map +1 -0
- package/lib/cjs/polyface/PolyfaceData.js +531 -0
- package/lib/cjs/polyface/PolyfaceData.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/PolyfaceQuery.d.ts +0 -0
- package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/PolyfaceQuery.js +0 -0
- package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/RangeLengthData.d.ts +0 -0
- package/lib/cjs/polyface/RangeLengthData.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/RangeLengthData.js +0 -0
- package/lib/cjs/polyface/RangeLengthData.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/TaggedNumericData.d.ts +0 -0
- package/lib/cjs/polyface/TaggedNumericData.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/TaggedNumericData.js +0 -0
- package/lib/cjs/polyface/TaggedNumericData.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/TriangleCandidate.d.ts +0 -0
- package/lib/cjs/polyface/TriangleCandidate.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/TriangleCandidate.js +0 -0
- package/lib/cjs/polyface/TriangleCandidate.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/BuildAverageNormalsContext.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/BuildAverageNormalsContext.js +0 -0
- package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/GriddedRaggedRange2dSet.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/GriddedRaggedRange2dSet.js +0 -0
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/GriddedRaggedRange2dSetWithOverflow.js +0 -0
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/LinearSearchRange2dArray.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/LinearSearchRange2dArray.js +0 -0
- package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/Range2dSearchInterface.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/Range2dSearchInterface.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/Range2dSearchInterface.js +0 -0
- package/lib/cjs/polyface/multiclip/Range2dSearchInterface.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/RangeSearch.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/RangeSearch.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/RangeSearch.js +0 -0
- package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/SweepLineStringToFacetContext.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/SweepLineStringToFacetContext.js +0 -0
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/XYPointBuckets.d.ts +0 -0
- package/lib/cjs/polyface/multiclip/XYPointBuckets.d.ts.map +1 -0
- package/lib/{polyface → cjs/polyface}/multiclip/XYPointBuckets.js +0 -0
- package/lib/cjs/polyface/multiclip/XYPointBuckets.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/BGFBAccessors.d.ts +0 -0
- package/lib/cjs/serialization/BGFBAccessors.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/BGFBAccessors.js +0 -0
- package/lib/cjs/serialization/BGFBAccessors.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/BGFBReader.d.ts +0 -0
- package/lib/cjs/serialization/BGFBReader.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/BGFBReader.js +0 -0
- package/lib/cjs/serialization/BGFBReader.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/BGFBWriter.d.ts +0 -0
- package/lib/cjs/serialization/BGFBWriter.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/BGFBWriter.js +0 -0
- package/lib/cjs/serialization/BGFBWriter.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/BentleyGeometryFlatBuffer.d.ts +0 -0
- package/lib/cjs/serialization/BentleyGeometryFlatBuffer.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/BentleyGeometryFlatBuffer.js +0 -0
- package/lib/cjs/serialization/BentleyGeometryFlatBuffer.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/DeepCompare.d.ts +0 -0
- package/lib/cjs/serialization/DeepCompare.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/DeepCompare.js +0 -0
- package/lib/cjs/serialization/DeepCompare.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/GeometrySamples.d.ts +0 -0
- package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/GeometrySamples.js +0 -0
- package/lib/cjs/serialization/GeometrySamples.js.map +1 -0
- package/lib/{serialization → cjs/serialization}/IModelJsonSchema.d.ts +0 -0
- package/lib/cjs/serialization/IModelJsonSchema.d.ts.map +1 -0
- package/lib/{serialization → cjs/serialization}/IModelJsonSchema.js +0 -0
- package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -0
- package/lib/{solid → cjs/solid}/Box.d.ts +0 -0
- package/lib/cjs/solid/Box.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/Box.js +0 -0
- package/lib/cjs/solid/Box.js.map +1 -0
- package/lib/{solid → cjs/solid}/Cone.d.ts +0 -0
- package/lib/cjs/solid/Cone.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/Cone.js +0 -0
- package/lib/cjs/solid/Cone.js.map +1 -0
- package/lib/{solid → cjs/solid}/LinearSweep.d.ts +0 -0
- package/lib/cjs/solid/LinearSweep.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/LinearSweep.js +0 -0
- package/lib/cjs/solid/LinearSweep.js.map +1 -0
- package/lib/{solid → cjs/solid}/RotationalSweep.d.ts +0 -0
- package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/RotationalSweep.js +0 -0
- package/lib/cjs/solid/RotationalSweep.js.map +1 -0
- package/lib/{solid → cjs/solid}/RuledSweep.d.ts +0 -0
- package/lib/cjs/solid/RuledSweep.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/RuledSweep.js +0 -0
- package/lib/cjs/solid/RuledSweep.js.map +1 -0
- package/lib/{solid → cjs/solid}/SolidPrimitive.d.ts +0 -0
- package/lib/cjs/solid/SolidPrimitive.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/SolidPrimitive.js +0 -0
- package/lib/cjs/solid/SolidPrimitive.js.map +1 -0
- package/lib/{solid → cjs/solid}/Sphere.d.ts +0 -0
- package/lib/cjs/solid/Sphere.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/Sphere.js +0 -0
- package/lib/cjs/solid/Sphere.js.map +1 -0
- package/lib/{solid → cjs/solid}/SweepContour.d.ts +0 -0
- package/lib/cjs/solid/SweepContour.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/SweepContour.js +0 -0
- package/lib/cjs/solid/SweepContour.js.map +1 -0
- package/lib/{solid → cjs/solid}/TorusPipe.d.ts +0 -0
- package/lib/cjs/solid/TorusPipe.d.ts.map +1 -0
- package/lib/{solid → cjs/solid}/TorusPipe.js +0 -0
- package/lib/cjs/solid/TorusPipe.js.map +1 -0
- package/lib/{topology → cjs/topology}/ChainMerge.d.ts +0 -0
- package/lib/cjs/topology/ChainMerge.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/ChainMerge.js +0 -0
- package/lib/cjs/topology/ChainMerge.js.map +1 -0
- package/lib/{topology → cjs/topology}/Graph.d.ts +0 -0
- package/lib/cjs/topology/Graph.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/Graph.js +0 -0
- package/lib/cjs/topology/Graph.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeGraphSearch.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgeGraphSearch.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeGraphSearch.js +0 -0
- package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeGraphSpineContext.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgeGraphSpineContext.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeGraphSpineContext.js +0 -0
- package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeGraphValidation.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgeGraphValidation.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeGraphValidation.js +0 -0
- package/lib/cjs/topology/HalfEdgeGraphValidation.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeMarkSet.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgeMarkSet.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeMarkSet.js +0 -0
- package/lib/cjs/topology/HalfEdgeMarkSet.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeNodeXYZUV.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgeNodeXYZUV.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgeNodeXYZUV.js +0 -0
- package/lib/cjs/topology/HalfEdgeNodeXYZUV.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgePointInGraphSearch.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgePointInGraphSearch.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgePointInGraphSearch.js +0 -0
- package/lib/cjs/topology/HalfEdgePointInGraphSearch.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgePositionDetail.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgePositionDetail.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgePositionDetail.js +0 -0
- package/lib/cjs/topology/HalfEdgePositionDetail.js.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgePriorityQueue.d.ts +0 -0
- package/lib/cjs/topology/HalfEdgePriorityQueue.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/HalfEdgePriorityQueue.js +0 -0
- package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -0
- package/lib/{topology → cjs/topology}/InsertAndRetriangulateContext.d.ts +0 -0
- package/lib/cjs/topology/InsertAndRetriangulateContext.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/InsertAndRetriangulateContext.js +0 -0
- package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -0
- package/lib/{topology → cjs/topology}/MaskManager.d.ts +0 -0
- package/lib/cjs/topology/MaskManager.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/MaskManager.js +0 -0
- package/lib/cjs/topology/MaskManager.js.map +1 -0
- package/lib/{topology → cjs/topology}/Merging.d.ts +0 -0
- package/lib/cjs/topology/Merging.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/Merging.js +0 -0
- package/lib/cjs/topology/Merging.js.map +1 -0
- package/lib/{topology → cjs/topology}/RegularizeFace.d.ts +0 -0
- package/lib/cjs/topology/RegularizeFace.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/RegularizeFace.js +0 -0
- package/lib/cjs/topology/RegularizeFace.js.map +1 -0
- package/lib/{topology → cjs/topology}/SignedDataSummary.d.ts +0 -0
- package/lib/cjs/topology/SignedDataSummary.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/SignedDataSummary.js +0 -0
- package/lib/cjs/topology/SignedDataSummary.js.map +1 -0
- package/lib/{topology → cjs/topology}/Triangulation.d.ts +0 -0
- package/lib/cjs/topology/Triangulation.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/Triangulation.js +0 -0
- package/lib/cjs/topology/Triangulation.js.map +1 -0
- package/lib/{topology → cjs/topology}/XYParitySearchContext.d.ts +0 -0
- package/lib/cjs/topology/XYParitySearchContext.d.ts.map +1 -0
- package/lib/{topology → cjs/topology}/XYParitySearchContext.js +0 -0
- package/lib/cjs/topology/XYParitySearchContext.js.map +1 -0
- package/lib/esm/Constant.d.ts +26 -0
- package/lib/esm/Constant.d.ts.map +1 -0
- package/lib/esm/Constant.js +30 -0
- package/lib/esm/Constant.js.map +1 -0
- package/lib/esm/Geometry.d.ts +498 -0
- package/lib/esm/Geometry.d.ts.map +1 -0
- package/lib/esm/Geometry.js +776 -0
- package/lib/esm/Geometry.js.map +1 -0
- package/lib/esm/bspline/AkimaCurve3d.d.ts +97 -0
- package/lib/esm/bspline/AkimaCurve3d.d.ts.map +1 -0
- package/lib/esm/bspline/AkimaCurve3d.js +158 -0
- package/lib/esm/bspline/AkimaCurve3d.js.map +1 -0
- package/lib/esm/bspline/BSpline1dNd.d.ts +96 -0
- package/lib/esm/bspline/BSpline1dNd.d.ts.map +1 -0
- package/lib/esm/bspline/BSpline1dNd.js +191 -0
- package/lib/esm/bspline/BSpline1dNd.js.map +1 -0
- package/lib/esm/bspline/BSplineCurve.d.ts +310 -0
- package/lib/esm/bspline/BSplineCurve.d.ts.map +1 -0
- package/lib/esm/bspline/BSplineCurve.js +608 -0
- package/lib/esm/bspline/BSplineCurve.js.map +1 -0
- package/lib/esm/bspline/BSplineCurve3dH.d.ts +140 -0
- package/lib/esm/bspline/BSplineCurve3dH.d.ts.map +1 -0
- package/lib/esm/bspline/BSplineCurve3dH.js +421 -0
- package/lib/esm/bspline/BSplineCurve3dH.js.map +1 -0
- package/lib/esm/bspline/BSplineCurveOps.d.ts +159 -0
- package/lib/esm/bspline/BSplineCurveOps.d.ts.map +1 -0
- package/lib/esm/bspline/BSplineCurveOps.js +805 -0
- package/lib/esm/bspline/BSplineCurveOps.js.map +1 -0
- package/lib/esm/bspline/BSplineSurface.d.ts +491 -0
- package/lib/esm/bspline/BSplineSurface.d.ts.map +1 -0
- package/lib/esm/bspline/BSplineSurface.js +837 -0
- package/lib/esm/bspline/BSplineSurface.js.map +1 -0
- package/lib/esm/bspline/Bezier1dNd.d.ts +113 -0
- package/lib/esm/bspline/Bezier1dNd.d.ts.map +1 -0
- package/lib/esm/bspline/Bezier1dNd.js +341 -0
- package/lib/esm/bspline/Bezier1dNd.js.map +1 -0
- package/lib/esm/bspline/BezierCurve3d.d.ts +76 -0
- package/lib/esm/bspline/BezierCurve3d.d.ts.map +1 -0
- package/lib/esm/bspline/BezierCurve3d.js +214 -0
- package/lib/esm/bspline/BezierCurve3d.js.map +1 -0
- package/lib/esm/bspline/BezierCurve3dH.d.ts +107 -0
- package/lib/esm/bspline/BezierCurve3dH.d.ts.map +1 -0
- package/lib/esm/bspline/BezierCurve3dH.js +348 -0
- package/lib/esm/bspline/BezierCurve3dH.js.map +1 -0
- package/lib/esm/bspline/BezierCurveBase.d.ts +111 -0
- package/lib/esm/bspline/BezierCurveBase.d.ts.map +1 -0
- package/lib/esm/bspline/BezierCurveBase.js +196 -0
- package/lib/esm/bspline/BezierCurveBase.js.map +1 -0
- package/lib/esm/bspline/InterpolationCurve3d.d.ts +163 -0
- package/lib/esm/bspline/InterpolationCurve3d.d.ts.map +1 -0
- package/lib/esm/bspline/InterpolationCurve3d.js +281 -0
- package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -0
- package/lib/esm/bspline/KnotVector.d.ts +160 -0
- package/lib/esm/bspline/KnotVector.d.ts.map +1 -0
- package/lib/esm/bspline/KnotVector.js +427 -0
- package/lib/esm/bspline/KnotVector.js.map +1 -0
- package/lib/esm/bspline/SurfaceLocationDetail.d.ts +52 -0
- package/lib/esm/bspline/SurfaceLocationDetail.d.ts.map +1 -0
- package/lib/esm/bspline/SurfaceLocationDetail.js +55 -0
- package/lib/esm/bspline/SurfaceLocationDetail.js.map +1 -0
- package/lib/esm/clipping/AlternatingConvexClipTree.d.ts +165 -0
- package/lib/esm/clipping/AlternatingConvexClipTree.d.ts.map +1 -0
- package/lib/esm/clipping/AlternatingConvexClipTree.js +519 -0
- package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -0
- package/lib/esm/clipping/BooleanClipFactory.d.ts +80 -0
- package/lib/esm/clipping/BooleanClipFactory.d.ts.map +1 -0
- package/lib/esm/clipping/BooleanClipFactory.js +198 -0
- package/lib/esm/clipping/BooleanClipFactory.js.map +1 -0
- package/lib/esm/clipping/BooleanClipNode.d.ts +103 -0
- package/lib/esm/clipping/BooleanClipNode.d.ts.map +1 -0
- package/lib/esm/clipping/BooleanClipNode.js +255 -0
- package/lib/esm/clipping/BooleanClipNode.js.map +1 -0
- package/lib/esm/clipping/ClipPlane.d.ts +258 -0
- package/lib/esm/clipping/ClipPlane.d.ts.map +1 -0
- package/lib/esm/clipping/ClipPlane.js +505 -0
- package/lib/esm/clipping/ClipPlane.js.map +1 -0
- package/lib/esm/clipping/ClipPrimitive.d.ts +270 -0
- package/lib/esm/clipping/ClipPrimitive.d.ts.map +1 -0
- package/lib/esm/clipping/ClipPrimitive.js +620 -0
- package/lib/esm/clipping/ClipPrimitive.js.map +1 -0
- package/lib/esm/clipping/ClipUtils.d.ts +278 -0
- package/lib/esm/clipping/ClipUtils.d.ts.map +1 -0
- package/lib/esm/clipping/ClipUtils.js +593 -0
- package/lib/esm/clipping/ClipUtils.js.map +1 -0
- package/lib/esm/clipping/ClipVector.d.ts +154 -0
- package/lib/esm/clipping/ClipVector.d.ts.map +1 -0
- package/lib/esm/clipping/ClipVector.js +388 -0
- package/lib/esm/clipping/ClipVector.js.map +1 -0
- package/lib/esm/clipping/ConvexClipPlaneSet.d.ts +250 -0
- package/lib/esm/clipping/ConvexClipPlaneSet.d.ts.map +1 -0
- package/lib/esm/clipping/ConvexClipPlaneSet.js +685 -0
- package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -0
- package/lib/esm/clipping/UnionOfConvexClipPlaneSets.d.ts +126 -0
- package/lib/esm/clipping/UnionOfConvexClipPlaneSets.d.ts.map +1 -0
- package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js +325 -0
- package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -0
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.d.ts +42 -0
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.d.ts.map +1 -0
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js +160 -0
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -0
- package/lib/esm/core-geometry.d.ts +228 -0
- package/lib/esm/core-geometry.d.ts.map +1 -0
- package/lib/esm/core-geometry.js +247 -0
- package/lib/esm/core-geometry.js.map +1 -0
- package/lib/esm/curve/Arc3d.d.ts +477 -0
- package/lib/esm/curve/Arc3d.d.ts.map +1 -0
- package/lib/esm/curve/Arc3d.js +905 -0
- package/lib/esm/curve/Arc3d.js.map +1 -0
- package/lib/esm/curve/ChainCollectorContext.d.ts +65 -0
- package/lib/esm/curve/ChainCollectorContext.d.ts.map +1 -0
- package/lib/esm/curve/ChainCollectorContext.js +175 -0
- package/lib/esm/curve/ChainCollectorContext.js.map +1 -0
- package/lib/esm/curve/ConstructCurveBetweenCurves.d.ts +46 -0
- package/lib/esm/curve/ConstructCurveBetweenCurves.d.ts.map +1 -0
- package/lib/esm/curve/ConstructCurveBetweenCurves.js +112 -0
- package/lib/esm/curve/ConstructCurveBetweenCurves.js.map +1 -0
- package/lib/esm/curve/CoordinateXYZ.d.ts +54 -0
- package/lib/esm/curve/CoordinateXYZ.d.ts.map +1 -0
- package/lib/esm/curve/CoordinateXYZ.js +75 -0
- package/lib/esm/curve/CoordinateXYZ.js.map +1 -0
- package/lib/esm/curve/CurveChain.d.ts +17 -0
- package/lib/esm/curve/CurveChain.d.ts.map +1 -0
- package/lib/esm/curve/CurveChain.js +6 -0
- package/lib/esm/curve/CurveChain.js.map +1 -0
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +234 -0
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -0
- package/lib/esm/curve/CurveChainWithDistanceIndex.js +513 -0
- package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -0
- package/lib/esm/curve/CurveCollection.d.ts +204 -0
- package/lib/esm/curve/CurveCollection.d.ts.map +1 -0
- package/lib/esm/curve/CurveCollection.js +338 -0
- package/lib/esm/curve/CurveCollection.js.map +1 -0
- package/lib/esm/curve/CurveCurve.d.ts +56 -0
- package/lib/esm/curve/CurveCurve.d.ts.map +1 -0
- package/lib/esm/curve/CurveCurve.js +96 -0
- package/lib/esm/curve/CurveCurve.js.map +1 -0
- package/lib/esm/curve/CurveCurveCloseApproachXY.d.ts +158 -0
- package/lib/esm/curve/CurveCurveCloseApproachXY.d.ts.map +1 -0
- package/lib/esm/curve/CurveCurveCloseApproachXY.js +720 -0
- package/lib/esm/curve/CurveCurveCloseApproachXY.js.map +1 -0
- package/lib/esm/curve/CurveCurveIntersectXY.d.ts +148 -0
- package/lib/esm/curve/CurveCurveIntersectXY.d.ts.map +1 -0
- package/lib/esm/curve/CurveCurveIntersectXY.js +814 -0
- package/lib/esm/curve/CurveCurveIntersectXY.js.map +1 -0
- package/lib/esm/curve/CurveCurveIntersectXYZ.d.ts +101 -0
- package/lib/esm/curve/CurveCurveIntersectXYZ.d.ts.map +1 -0
- package/lib/esm/curve/CurveCurveIntersectXYZ.js +669 -0
- package/lib/esm/curve/CurveCurveIntersectXYZ.js.map +1 -0
- package/lib/esm/curve/CurveExtendMode.d.ts +50 -0
- package/lib/esm/curve/CurveExtendMode.d.ts.map +1 -0
- package/lib/esm/curve/CurveExtendMode.js +96 -0
- package/lib/esm/curve/CurveExtendMode.js.map +1 -0
- package/lib/esm/curve/CurveFactory.d.ts +122 -0
- package/lib/esm/curve/CurveFactory.d.ts.map +1 -0
- package/lib/esm/curve/CurveFactory.js +491 -0
- package/lib/esm/curve/CurveFactory.js.map +1 -0
- package/lib/esm/curve/CurveLocationDetail.d.ts +207 -0
- package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -0
- package/lib/esm/curve/CurveLocationDetail.js +392 -0
- package/lib/esm/curve/CurveLocationDetail.js.map +1 -0
- package/lib/esm/curve/CurvePrimitive.d.ts +363 -0
- package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -0
- package/lib/esm/curve/CurvePrimitive.js +774 -0
- package/lib/esm/curve/CurvePrimitive.js.map +1 -0
- package/lib/esm/curve/CurveProcessor.d.ts +76 -0
- package/lib/esm/curve/CurveProcessor.d.ts.map +1 -0
- package/lib/esm/curve/CurveProcessor.js +122 -0
- package/lib/esm/curve/CurveProcessor.js.map +1 -0
- package/lib/esm/curve/CurveWireMomentsXYZ.d.ts +25 -0
- package/lib/esm/curve/CurveWireMomentsXYZ.d.ts.map +1 -0
- package/lib/esm/curve/CurveWireMomentsXYZ.js +65 -0
- package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -0
- package/lib/esm/curve/GeometryQuery.d.ts +93 -0
- package/lib/esm/curve/GeometryQuery.d.ts.map +1 -0
- package/lib/esm/curve/GeometryQuery.js +68 -0
- package/lib/esm/curve/GeometryQuery.js.map +1 -0
- package/lib/esm/curve/LineSegment3d.d.ts +176 -0
- package/lib/esm/curve/LineSegment3d.d.ts.map +1 -0
- package/lib/esm/curve/LineSegment3d.js +315 -0
- package/lib/esm/curve/LineSegment3d.js.map +1 -0
- package/lib/esm/curve/LineString3d.d.ts +419 -0
- package/lib/esm/curve/LineString3d.d.ts.map +1 -0
- package/lib/esm/curve/LineString3d.js +1280 -0
- package/lib/esm/curve/LineString3d.js.map +1 -0
- package/lib/esm/curve/Loop.d.ts +82 -0
- package/lib/esm/curve/Loop.d.ts.map +1 -0
- package/lib/esm/curve/Loop.js +93 -0
- package/lib/esm/curve/Loop.js.map +1 -0
- package/lib/esm/curve/ParityRegion.d.ts +59 -0
- package/lib/esm/curve/ParityRegion.d.ts.map +1 -0
- package/lib/esm/curve/ParityRegion.js +113 -0
- package/lib/esm/curve/ParityRegion.js.map +1 -0
- package/lib/esm/curve/Path.d.ts +47 -0
- package/lib/esm/curve/Path.d.ts.map +1 -0
- package/lib/esm/curve/Path.js +71 -0
- package/lib/esm/curve/Path.js.map +1 -0
- package/lib/esm/curve/PointString3d.d.ts +78 -0
- package/lib/esm/curve/PointString3d.d.ts.map +1 -0
- package/lib/esm/curve/PointString3d.js +174 -0
- package/lib/esm/curve/PointString3d.js.map +1 -0
- package/lib/esm/curve/ProxyCurve.d.ts +59 -0
- package/lib/esm/curve/ProxyCurve.d.ts.map +1 -0
- package/lib/esm/curve/ProxyCurve.js +78 -0
- package/lib/esm/curve/ProxyCurve.js.map +1 -0
- package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.d.ts +25 -0
- package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.d.ts.map +1 -0
- package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js +111 -0
- package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -0
- package/lib/esm/curve/Query/CurveSplitContext.d.ts +16 -0
- package/lib/esm/curve/Query/CurveSplitContext.d.ts.map +1 -0
- package/lib/esm/curve/Query/CurveSplitContext.js +107 -0
- package/lib/esm/curve/Query/CurveSplitContext.js.map +1 -0
- package/lib/esm/curve/Query/CylindricalRange.d.ts +46 -0
- package/lib/esm/curve/Query/CylindricalRange.d.ts.map +1 -0
- package/lib/esm/curve/Query/CylindricalRange.js +111 -0
- package/lib/esm/curve/Query/CylindricalRange.js.map +1 -0
- package/lib/esm/curve/Query/InOutTests.d.ts +32 -0
- package/lib/esm/curve/Query/InOutTests.d.ts.map +1 -0
- package/lib/esm/curve/Query/InOutTests.js +116 -0
- package/lib/esm/curve/Query/InOutTests.js.map +1 -0
- package/lib/esm/curve/Query/PlanarSubdivision.d.ts +16 -0
- package/lib/esm/curve/Query/PlanarSubdivision.d.ts.map +1 -0
- package/lib/esm/curve/Query/PlanarSubdivision.js +220 -0
- package/lib/esm/curve/Query/PlanarSubdivision.js.map +1 -0
- package/lib/esm/curve/Query/StrokeCountChain.d.ts +186 -0
- package/lib/esm/curve/Query/StrokeCountChain.d.ts.map +1 -0
- package/lib/esm/curve/Query/StrokeCountChain.js +429 -0
- package/lib/esm/curve/Query/StrokeCountChain.js.map +1 -0
- package/lib/esm/curve/Query/StrokeCountMap.d.ts +94 -0
- package/lib/esm/curve/Query/StrokeCountMap.d.ts.map +1 -0
- package/lib/esm/curve/Query/StrokeCountMap.js +138 -0
- package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -0
- package/lib/esm/curve/RegionMomentsXY.d.ts +61 -0
- package/lib/esm/curve/RegionMomentsXY.d.ts.map +1 -0
- package/lib/esm/curve/RegionMomentsXY.js +156 -0
- package/lib/esm/curve/RegionMomentsXY.js.map +1 -0
- package/lib/esm/curve/RegionOps.d.ts +320 -0
- package/lib/esm/curve/RegionOps.d.ts.map +1 -0
- package/lib/esm/curve/RegionOps.js +642 -0
- package/lib/esm/curve/RegionOps.js.map +1 -0
- package/lib/esm/curve/RegionOpsClassificationSweeps.d.ts +263 -0
- package/lib/esm/curve/RegionOpsClassificationSweeps.d.ts.map +1 -0
- package/lib/esm/curve/RegionOpsClassificationSweeps.js +703 -0
- package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -0
- package/lib/esm/curve/StrokeOptions.d.ts +94 -0
- package/lib/esm/curve/StrokeOptions.d.ts.map +1 -0
- package/lib/esm/curve/StrokeOptions.js +149 -0
- package/lib/esm/curve/StrokeOptions.js.map +1 -0
- package/lib/esm/curve/UnionRegion.d.ts +49 -0
- package/lib/esm/curve/UnionRegion.d.ts.map +1 -0
- package/lib/esm/curve/UnionRegion.js +75 -0
- package/lib/esm/curve/UnionRegion.js.map +1 -0
- package/lib/esm/curve/internalContexts/CloneCurvesContext.d.ts +23 -0
- package/lib/esm/curve/internalContexts/CloneCurvesContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/CloneCurvesContext.js +62 -0
- package/lib/esm/curve/internalContexts/CloneCurvesContext.js.map +1 -0
- package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.d.ts +16 -0
- package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js +36 -0
- package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -0
- package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.d.ts +18 -0
- package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js +32 -0
- package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -0
- package/lib/esm/curve/internalContexts/GapSearchContext.d.ts +16 -0
- package/lib/esm/curve/internalContexts/GapSearchContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/GapSearchContext.js +34 -0
- package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -0
- package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts +114 -0
- package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/MultiChainCollector.js +403 -0
- package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -0
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +38 -0
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +88 -0
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -0
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts +117 -0
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +686 -0
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -0
- package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts +17 -0
- package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/SumLengthsContext.js +21 -0
- package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -0
- package/lib/esm/curve/internalContexts/TransformInPlaceContext.d.ts +19 -0
- package/lib/esm/curve/internalContexts/TransformInPlaceContext.d.ts.map +1 -0
- package/lib/esm/curve/internalContexts/TransformInPlaceContext.js +19 -0
- package/lib/esm/curve/internalContexts/TransformInPlaceContext.js.map +1 -0
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.d.ts +41 -0
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js +124 -0
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -0
- package/lib/esm/curve/spiral/ClothoidSeries.d.ts +66 -0
- package/lib/esm/curve/spiral/ClothoidSeries.d.ts.map +1 -0
- package/lib/esm/curve/spiral/ClothoidSeries.js +220 -0
- package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -0
- package/lib/esm/curve/spiral/CubicEvaluator.d.ts +43 -0
- package/lib/esm/curve/spiral/CubicEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/CubicEvaluator.js +67 -0
- package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -0
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.d.ts +108 -0
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.js +198 -0
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -0
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts +39 -0
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js +88 -0
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -0
- package/lib/esm/curve/spiral/DirectSpiral3d.d.ts +265 -0
- package/lib/esm/curve/spiral/DirectSpiral3d.d.ts.map +1 -0
- package/lib/esm/curve/spiral/DirectSpiral3d.js +469 -0
- package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -0
- package/lib/esm/curve/spiral/IntegratedSpiral3d.d.ts +158 -0
- package/lib/esm/curve/spiral/IntegratedSpiral3d.d.ts.map +1 -0
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js +360 -0
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -0
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts +38 -0
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js +72 -0
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -0
- package/lib/esm/curve/spiral/NormalizedTransition.d.ts +140 -0
- package/lib/esm/curve/spiral/NormalizedTransition.d.ts.map +1 -0
- package/lib/esm/curve/spiral/NormalizedTransition.js +182 -0
- package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -0
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.d.ts +50 -0
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js +109 -0
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -0
- package/lib/esm/curve/spiral/TransitionConditionalProperties.d.ts +53 -0
- package/lib/esm/curve/spiral/TransitionConditionalProperties.d.ts.map +1 -0
- package/lib/esm/curve/spiral/TransitionConditionalProperties.js +142 -0
- package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -0
- package/lib/esm/curve/spiral/TransitionSpiral3d.d.ts +101 -0
- package/lib/esm/curve/spiral/TransitionSpiral3d.d.ts.map +1 -0
- package/lib/esm/curve/spiral/TransitionSpiral3d.js +106 -0
- package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -0
- package/lib/esm/curve/spiral/XYCurveEvaluator.d.ts +80 -0
- package/lib/esm/curve/spiral/XYCurveEvaluator.d.ts.map +1 -0
- package/lib/esm/curve/spiral/XYCurveEvaluator.js +103 -0
- package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -0
- package/lib/esm/geometry3d/Angle.d.ts +214 -0
- package/lib/esm/geometry3d/Angle.d.ts.map +1 -0
- package/lib/esm/geometry3d/Angle.js +399 -0
- package/lib/esm/geometry3d/Angle.js.map +1 -0
- package/lib/esm/geometry3d/AngleSweep.d.ts +187 -0
- package/lib/esm/geometry3d/AngleSweep.d.ts.map +1 -0
- package/lib/esm/geometry3d/AngleSweep.js +325 -0
- package/lib/esm/geometry3d/AngleSweep.js.map +1 -0
- package/lib/esm/geometry3d/BarycentricTriangle.d.ts +51 -0
- package/lib/esm/geometry3d/BarycentricTriangle.d.ts.map +1 -0
- package/lib/esm/geometry3d/BarycentricTriangle.js +97 -0
- package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -0
- package/lib/esm/geometry3d/BilinearPatch.d.ts +107 -0
- package/lib/esm/geometry3d/BilinearPatch.d.ts.map +1 -0
- package/lib/esm/geometry3d/BilinearPatch.js +200 -0
- package/lib/esm/geometry3d/BilinearPatch.js.map +1 -0
- package/lib/esm/geometry3d/CoincidentGeometryOps.d.ts +56 -0
- package/lib/esm/geometry3d/CoincidentGeometryOps.d.ts.map +1 -0
- package/lib/esm/geometry3d/CoincidentGeometryOps.js +196 -0
- package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -0
- package/lib/esm/geometry3d/Ellipsoid.d.ts +388 -0
- package/lib/esm/geometry3d/Ellipsoid.d.ts.map +1 -0
- package/lib/esm/geometry3d/Ellipsoid.js +1069 -0
- package/lib/esm/geometry3d/Ellipsoid.js.map +1 -0
- package/lib/esm/geometry3d/FrameBuilder.d.ts +91 -0
- package/lib/esm/geometry3d/FrameBuilder.d.ts.map +1 -0
- package/lib/esm/geometry3d/FrameBuilder.js +315 -0
- package/lib/esm/geometry3d/FrameBuilder.js.map +1 -0
- package/lib/esm/geometry3d/FrustumAnimation.d.ts +59 -0
- package/lib/esm/geometry3d/FrustumAnimation.d.ts.map +1 -0
- package/lib/esm/geometry3d/FrustumAnimation.js +119 -0
- package/lib/esm/geometry3d/FrustumAnimation.js.map +1 -0
- package/lib/esm/geometry3d/GeometryHandler.d.ts +329 -0
- package/lib/esm/geometry3d/GeometryHandler.d.ts.map +1 -0
- package/lib/esm/geometry3d/GeometryHandler.js +169 -0
- package/lib/esm/geometry3d/GeometryHandler.js.map +1 -0
- package/lib/esm/geometry3d/GrowableBlockedArray.d.ts +71 -0
- package/lib/esm/geometry3d/GrowableBlockedArray.d.ts.map +1 -0
- package/lib/esm/geometry3d/GrowableBlockedArray.js +158 -0
- package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -0
- package/lib/esm/geometry3d/GrowableFloat64Array.d.ts +132 -0
- package/lib/esm/geometry3d/GrowableFloat64Array.d.ts.map +1 -0
- package/lib/esm/geometry3d/GrowableFloat64Array.js +249 -0
- package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -0
- package/lib/esm/geometry3d/GrowableXYArray.d.ts +204 -0
- package/lib/esm/geometry3d/GrowableXYArray.d.ts.map +1 -0
- package/lib/esm/geometry3d/GrowableXYArray.js +621 -0
- package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -0
- package/lib/esm/geometry3d/GrowableXYZArray.d.ts +324 -0
- package/lib/esm/geometry3d/GrowableXYZArray.d.ts.map +1 -0
- package/lib/esm/geometry3d/GrowableXYZArray.js +975 -0
- package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -0
- package/lib/esm/geometry3d/IndexedCollectionInterval.d.ts +63 -0
- package/lib/esm/geometry3d/IndexedCollectionInterval.d.ts.map +1 -0
- package/lib/esm/geometry3d/IndexedCollectionInterval.js +105 -0
- package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -0
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts +69 -0
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts.map +1 -0
- package/lib/esm/geometry3d/IndexedXYCollection.js +16 -0
- package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -0
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +149 -0
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -0
- package/lib/esm/geometry3d/IndexedXYZCollection.js +98 -0
- package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -0
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.d.ts +63 -0
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.d.ts.map +1 -0
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js +119 -0
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -0
- package/lib/esm/geometry3d/Matrix3d.d.ts +885 -0
- package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -0
- package/lib/esm/geometry3d/Matrix3d.js +2269 -0
- package/lib/esm/geometry3d/Matrix3d.js.map +1 -0
- package/lib/esm/geometry3d/OrderedRotationAngles.d.ts +61 -0
- package/lib/esm/geometry3d/OrderedRotationAngles.d.ts.map +1 -0
- package/lib/esm/geometry3d/OrderedRotationAngles.js +228 -0
- package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.d.ts +122 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.d.ts.map +1 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js +237 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts +119 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js +238 -0
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -0
- package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts +74 -0
- package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts.map +1 -0
- package/lib/esm/geometry3d/Point2dArrayCarrier.js +111 -0
- package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -0
- package/lib/esm/geometry3d/Point2dVector2d.d.ts +209 -0
- package/lib/esm/geometry3d/Point2dVector2d.d.ts.map +1 -0
- package/lib/esm/geometry3d/Point2dVector2d.js +461 -0
- package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -0
- package/lib/esm/geometry3d/Point3dArrayCarrier.d.ts +142 -0
- package/lib/esm/geometry3d/Point3dArrayCarrier.d.ts.map +1 -0
- package/lib/esm/geometry3d/Point3dArrayCarrier.js +233 -0
- package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -0
- package/lib/esm/geometry3d/Point3dVector3d.d.ts +699 -0
- package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -0
- package/lib/esm/geometry3d/Point3dVector3d.js +1294 -0
- package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -0
- package/lib/esm/geometry3d/PointHelpers.d.ts +263 -0
- package/lib/esm/geometry3d/PointHelpers.d.ts.map +1 -0
- package/lib/esm/geometry3d/PointHelpers.js +898 -0
- package/lib/esm/geometry3d/PointHelpers.js.map +1 -0
- package/lib/esm/geometry3d/PointStreaming.d.ts +87 -0
- package/lib/esm/geometry3d/PointStreaming.d.ts.map +1 -0
- package/lib/esm/geometry3d/PointStreaming.js +181 -0
- package/lib/esm/geometry3d/PointStreaming.js.map +1 -0
- package/lib/esm/geometry3d/PolygonOps.d.ts +306 -0
- package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -0
- package/lib/esm/geometry3d/PolygonOps.js +986 -0
- package/lib/esm/geometry3d/PolygonOps.js.map +1 -0
- package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.d.ts +81 -0
- package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.d.ts.map +1 -0
- package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js +274 -0
- package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -0
- package/lib/esm/geometry3d/PolylineOps.d.ts +63 -0
- package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -0
- package/lib/esm/geometry3d/PolylineOps.js +172 -0
- package/lib/esm/geometry3d/PolylineOps.js.map +1 -0
- package/lib/esm/geometry3d/Range.d.ts +599 -0
- package/lib/esm/geometry3d/Range.d.ts.map +1 -0
- package/lib/esm/geometry3d/Range.js +1424 -0
- package/lib/esm/geometry3d/Range.js.map +1 -0
- package/lib/esm/geometry3d/Ray3d.d.ts +146 -0
- package/lib/esm/geometry3d/Ray3d.d.ts.map +1 -0
- package/lib/esm/geometry3d/Ray3d.js +325 -0
- package/lib/esm/geometry3d/Ray3d.js.map +1 -0
- package/lib/esm/geometry3d/ReusableObjectCache.d.ts +55 -0
- package/lib/esm/geometry3d/ReusableObjectCache.d.ts.map +1 -0
- package/lib/esm/geometry3d/ReusableObjectCache.js +82 -0
- package/lib/esm/geometry3d/ReusableObjectCache.js.map +1 -0
- package/lib/esm/geometry3d/Segment1d.d.ts +106 -0
- package/lib/esm/geometry3d/Segment1d.d.ts.map +1 -0
- package/lib/esm/geometry3d/Segment1d.js +169 -0
- package/lib/esm/geometry3d/Segment1d.js.map +1 -0
- package/lib/esm/geometry3d/SortablePolygon.d.ts +50 -0
- package/lib/esm/geometry3d/SortablePolygon.d.ts.map +1 -0
- package/lib/esm/geometry3d/SortablePolygon.js +312 -0
- package/lib/esm/geometry3d/SortablePolygon.js.map +1 -0
- package/lib/esm/geometry3d/Transform.d.ts +275 -0
- package/lib/esm/geometry3d/Transform.d.ts.map +1 -0
- package/lib/esm/geometry3d/Transform.js +570 -0
- package/lib/esm/geometry3d/Transform.js.map +1 -0
- package/lib/esm/geometry3d/UVSurfaceOps.d.ts +43 -0
- package/lib/esm/geometry3d/UVSurfaceOps.d.ts.map +1 -0
- package/lib/esm/geometry3d/UVSurfaceOps.js +98 -0
- package/lib/esm/geometry3d/UVSurfaceOps.js.map +1 -0
- package/lib/esm/geometry3d/XYZProps.d.ts +143 -0
- package/lib/esm/geometry3d/XYZProps.d.ts.map +1 -0
- package/lib/esm/geometry3d/XYZProps.js +6 -0
- package/lib/esm/geometry3d/XYZProps.js.map +1 -0
- package/lib/esm/geometry3d/YawPitchRollAngles.d.ts +111 -0
- package/lib/esm/geometry3d/YawPitchRollAngles.d.ts.map +1 -0
- package/lib/esm/geometry3d/YawPitchRollAngles.js +195 -0
- package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -0
- package/lib/esm/geometry4d/Map4d.d.ts +73 -0
- package/lib/esm/geometry4d/Map4d.d.ts.map +1 -0
- package/lib/esm/geometry4d/Map4d.js +147 -0
- package/lib/esm/geometry4d/Map4d.js.map +1 -0
- package/lib/esm/geometry4d/Matrix4d.d.ts +284 -0
- package/lib/esm/geometry4d/Matrix4d.d.ts.map +1 -0
- package/lib/esm/geometry4d/Matrix4d.js +739 -0
- package/lib/esm/geometry4d/Matrix4d.js.map +1 -0
- package/lib/esm/geometry4d/MomentData.d.ts +180 -0
- package/lib/esm/geometry4d/MomentData.d.ts.map +1 -0
- package/lib/esm/geometry4d/MomentData.js +384 -0
- package/lib/esm/geometry4d/MomentData.js.map +1 -0
- package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.d.ts +43 -0
- package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.d.ts.map +1 -0
- package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js +81 -0
- package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -0
- package/lib/esm/geometry4d/Point4d.d.ts +257 -0
- package/lib/esm/geometry4d/Point4d.d.ts.map +1 -0
- package/lib/esm/geometry4d/Point4d.js +552 -0
- package/lib/esm/geometry4d/Point4d.js.map +1 -0
- package/lib/esm/numerics/BandedSystem.d.ts +39 -0
- package/lib/esm/numerics/BandedSystem.d.ts.map +1 -0
- package/lib/esm/numerics/BandedSystem.js +156 -0
- package/lib/esm/numerics/BandedSystem.js.map +1 -0
- package/lib/esm/numerics/BezierPolynomials.d.ts +462 -0
- package/lib/esm/numerics/BezierPolynomials.d.ts.map +1 -0
- package/lib/esm/numerics/BezierPolynomials.js +1189 -0
- package/lib/esm/numerics/BezierPolynomials.js.map +1 -0
- package/lib/esm/numerics/ClusterableArray.d.ts +162 -0
- package/lib/esm/numerics/ClusterableArray.d.ts.map +1 -0
- package/lib/esm/numerics/ClusterableArray.js +477 -0
- package/lib/esm/numerics/ClusterableArray.js.map +1 -0
- package/lib/esm/numerics/Complex.d.ts +63 -0
- package/lib/esm/numerics/Complex.d.ts.map +1 -0
- package/lib/esm/numerics/Complex.js +116 -0
- package/lib/esm/numerics/Complex.js.map +1 -0
- package/lib/esm/numerics/ConvexPolygon2d.d.ts +86 -0
- package/lib/esm/numerics/ConvexPolygon2d.d.ts.map +1 -0
- package/lib/esm/numerics/ConvexPolygon2d.js +313 -0
- package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -0
- package/lib/esm/numerics/Newton.d.ts +188 -0
- package/lib/esm/numerics/Newton.d.ts.map +1 -0
- package/lib/esm/numerics/Newton.js +247 -0
- package/lib/esm/numerics/Newton.js.map +1 -0
- package/lib/esm/numerics/PascalCoefficients.d.ts +33 -0
- package/lib/esm/numerics/PascalCoefficients.d.ts.map +1 -0
- package/lib/esm/numerics/PascalCoefficients.js +91 -0
- package/lib/esm/numerics/PascalCoefficients.js.map +1 -0
- package/lib/esm/numerics/PolarData.d.ts +42 -0
- package/lib/esm/numerics/PolarData.d.ts.map +1 -0
- package/lib/esm/numerics/PolarData.js +162 -0
- package/lib/esm/numerics/PolarData.js.map +1 -0
- package/lib/esm/numerics/Polynomials.d.ts +653 -0
- package/lib/esm/numerics/Polynomials.d.ts.map +1 -0
- package/lib/esm/numerics/Polynomials.js +1697 -0
- package/lib/esm/numerics/Polynomials.js.map +1 -0
- package/lib/esm/numerics/Quadrature.d.ts +91 -0
- package/lib/esm/numerics/Quadrature.d.ts.map +1 -0
- package/lib/esm/numerics/Quadrature.js +199 -0
- package/lib/esm/numerics/Quadrature.js.map +1 -0
- package/lib/esm/numerics/Range1dArray.d.ts +80 -0
- package/lib/esm/numerics/Range1dArray.d.ts.map +1 -0
- package/lib/esm/numerics/Range1dArray.js +358 -0
- package/lib/esm/numerics/Range1dArray.js.map +1 -0
- package/lib/esm/numerics/TriDiagonalSystem.d.ts +51 -0
- package/lib/esm/numerics/TriDiagonalSystem.d.ts.map +1 -0
- package/lib/esm/numerics/TriDiagonalSystem.js +270 -0
- package/lib/esm/numerics/TriDiagonalSystem.js.map +1 -0
- package/lib/esm/numerics/UnionFind.d.ts +49 -0
- package/lib/esm/numerics/UnionFind.d.ts.map +1 -0
- package/lib/esm/numerics/UnionFind.js +117 -0
- package/lib/esm/numerics/UnionFind.js.map +1 -0
- package/lib/esm/numerics/UsageSums.d.ts +86 -0
- package/lib/esm/numerics/UsageSums.d.ts.map +1 -0
- package/lib/esm/numerics/UsageSums.js +128 -0
- package/lib/esm/numerics/UsageSums.js.map +1 -0
- package/lib/esm/polyface/AuxData.d.ts +112 -0
- package/lib/esm/polyface/AuxData.d.ts.map +1 -0
- package/lib/esm/polyface/AuxData.js +228 -0
- package/lib/esm/polyface/AuxData.js.map +1 -0
- package/lib/esm/polyface/BoxTopology.d.ts +38 -0
- package/lib/esm/polyface/BoxTopology.d.ts.map +1 -0
- package/lib/esm/polyface/BoxTopology.js +99 -0
- package/lib/esm/polyface/BoxTopology.js.map +1 -0
- package/lib/esm/polyface/FacetFaceData.d.ts +44 -0
- package/lib/esm/polyface/FacetFaceData.d.ts.map +1 -0
- package/lib/esm/polyface/FacetFaceData.js +142 -0
- package/lib/esm/polyface/FacetFaceData.js.map +1 -0
- package/lib/esm/polyface/FacetOrientation.d.ts +39 -0
- package/lib/esm/polyface/FacetOrientation.d.ts.map +1 -0
- package/lib/esm/polyface/FacetOrientation.js +192 -0
- package/lib/esm/polyface/FacetOrientation.js.map +1 -0
- package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.d.ts +61 -0
- package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.d.ts.map +1 -0
- package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js +245 -0
- package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -0
- package/lib/esm/polyface/IndexedEdgeMatcher.d.ts +87 -0
- package/lib/esm/polyface/IndexedEdgeMatcher.d.ts.map +1 -0
- package/lib/esm/polyface/IndexedEdgeMatcher.js +192 -0
- package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -0
- package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts +109 -0
- package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -0
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js +237 -0
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -0
- package/lib/esm/polyface/Polyface.d.ts +254 -0
- package/lib/esm/polyface/Polyface.d.ts.map +1 -0
- package/lib/esm/polyface/Polyface.js +501 -0
- package/lib/esm/polyface/Polyface.js.map +1 -0
- package/lib/esm/polyface/PolyfaceBuilder.d.ts +395 -0
- package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -0
- package/lib/esm/polyface/PolyfaceBuilder.js +1634 -0
- package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -0
- package/lib/esm/polyface/PolyfaceClip.d.ts +172 -0
- package/lib/esm/polyface/PolyfaceClip.d.ts.map +1 -0
- package/lib/esm/polyface/PolyfaceClip.js +565 -0
- package/lib/esm/polyface/PolyfaceClip.js.map +1 -0
- package/lib/esm/polyface/PolyfaceData.d.ts +206 -0
- package/lib/esm/polyface/PolyfaceData.d.ts.map +1 -0
- package/lib/esm/polyface/PolyfaceData.js +527 -0
- package/lib/esm/polyface/PolyfaceData.js.map +1 -0
- package/lib/esm/polyface/PolyfaceQuery.d.ts +302 -0
- package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -0
- package/lib/esm/polyface/PolyfaceQuery.js +947 -0
- package/lib/esm/polyface/PolyfaceQuery.js.map +1 -0
- package/lib/esm/polyface/RangeLengthData.d.ts +31 -0
- package/lib/esm/polyface/RangeLengthData.d.ts.map +1 -0
- package/lib/esm/polyface/RangeLengthData.js +39 -0
- package/lib/esm/polyface/RangeLengthData.js.map +1 -0
- package/lib/esm/polyface/TaggedNumericData.d.ts +95 -0
- package/lib/esm/polyface/TaggedNumericData.d.ts.map +1 -0
- package/lib/esm/polyface/TaggedNumericData.js +160 -0
- package/lib/esm/polyface/TaggedNumericData.js.map +1 -0
- package/lib/esm/polyface/TriangleCandidate.d.ts +64 -0
- package/lib/esm/polyface/TriangleCandidate.d.ts.map +1 -0
- package/lib/esm/polyface/TriangleCandidate.js +116 -0
- package/lib/esm/polyface/TriangleCandidate.js.map +1 -0
- package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.d.ts +29 -0
- package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js +160 -0
- package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.d.ts +81 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js +159 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts +53 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js +74 -0
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -0
- package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.d.ts +44 -0
- package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js +80 -0
- package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -0
- package/lib/esm/polyface/multiclip/Range2dSearchInterface.d.ts +32 -0
- package/lib/esm/polyface/multiclip/Range2dSearchInterface.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/Range2dSearchInterface.js +9 -0
- package/lib/esm/polyface/multiclip/Range2dSearchInterface.js.map +1 -0
- package/lib/esm/polyface/multiclip/RangeSearch.d.ts +27 -0
- package/lib/esm/polyface/multiclip/RangeSearch.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/RangeSearch.js +49 -0
- package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -0
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts +25 -0
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js +90 -0
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -0
- package/lib/esm/polyface/multiclip/XYPointBuckets.d.ts +73 -0
- package/lib/esm/polyface/multiclip/XYPointBuckets.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/XYPointBuckets.js +192 -0
- package/lib/esm/polyface/multiclip/XYPointBuckets.js.map +1 -0
- package/lib/esm/serialization/BGFBAccessors.d.ts +3426 -0
- package/lib/esm/serialization/BGFBAccessors.d.ts.map +1 -0
- package/lib/esm/serialization/BGFBAccessors.js +5543 -0
- package/lib/esm/serialization/BGFBAccessors.js.map +1 -0
- package/lib/esm/serialization/BGFBReader.d.ts +118 -0
- package/lib/esm/serialization/BGFBReader.d.ts.map +1 -0
- package/lib/esm/serialization/BGFBReader.js +661 -0
- package/lib/esm/serialization/BGFBReader.js.map +1 -0
- package/lib/esm/serialization/BGFBWriter.d.ts +69 -0
- package/lib/esm/serialization/BGFBWriter.d.ts.map +1 -0
- package/lib/esm/serialization/BGFBWriter.js +587 -0
- package/lib/esm/serialization/BGFBWriter.js.map +1 -0
- package/lib/esm/serialization/BentleyGeometryFlatBuffer.d.ts +23 -0
- package/lib/esm/serialization/BentleyGeometryFlatBuffer.d.ts.map +1 -0
- package/lib/esm/serialization/BentleyGeometryFlatBuffer.js +26 -0
- package/lib/esm/serialization/BentleyGeometryFlatBuffer.js.map +1 -0
- package/lib/esm/serialization/DeepCompare.d.ts +41 -0
- package/lib/esm/serialization/DeepCompare.d.ts.map +1 -0
- package/lib/esm/serialization/DeepCompare.js +185 -0
- package/lib/esm/serialization/DeepCompare.js.map +1 -0
- package/lib/esm/serialization/GeometrySamples.d.ts +616 -0
- package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -0
- package/lib/esm/serialization/GeometrySamples.js +2124 -0
- package/lib/esm/serialization/GeometrySamples.js.map +1 -0
- package/lib/esm/serialization/IModelJsonSchema.d.ts +671 -0
- package/lib/esm/serialization/IModelJsonSchema.d.ts.map +1 -0
- package/lib/esm/serialization/IModelJsonSchema.js +1523 -0
- package/lib/esm/serialization/IModelJsonSchema.js.map +1 -0
- package/lib/esm/solid/Box.d.ts +122 -0
- package/lib/esm/solid/Box.d.ts.map +1 -0
- package/lib/esm/solid/Box.js +229 -0
- package/lib/esm/solid/Box.js.map +1 -0
- package/lib/esm/solid/Cone.d.ts +119 -0
- package/lib/esm/solid/Cone.d.ts.map +1 -0
- package/lib/esm/solid/Cone.js +267 -0
- package/lib/esm/solid/Cone.js.map +1 -0
- package/lib/esm/solid/LinearSweep.d.ts +81 -0
- package/lib/esm/solid/LinearSweep.d.ts.map +1 -0
- package/lib/esm/solid/LinearSweep.js +143 -0
- package/lib/esm/solid/LinearSweep.js.map +1 -0
- package/lib/esm/solid/RotationalSweep.d.ts +71 -0
- package/lib/esm/solid/RotationalSweep.d.ts.map +1 -0
- package/lib/esm/solid/RotationalSweep.js +139 -0
- package/lib/esm/solid/RotationalSweep.js.map +1 -0
- package/lib/esm/solid/RuledSweep.d.ts +76 -0
- package/lib/esm/solid/RuledSweep.d.ts.map +1 -0
- package/lib/esm/solid/RuledSweep.js +202 -0
- package/lib/esm/solid/RuledSweep.js.map +1 -0
- package/lib/esm/solid/SolidPrimitive.d.ts +63 -0
- package/lib/esm/solid/SolidPrimitive.d.ts.map +1 -0
- package/lib/esm/solid/SolidPrimitive.js +23 -0
- package/lib/esm/solid/SolidPrimitive.js.map +1 -0
- package/lib/esm/solid/Sphere.d.ts +120 -0
- package/lib/esm/solid/Sphere.d.ts.map +1 -0
- package/lib/esm/solid/Sphere.js +294 -0
- package/lib/esm/solid/Sphere.js.map +1 -0
- package/lib/esm/solid/SweepContour.d.ts +82 -0
- package/lib/esm/solid/SweepContour.d.ts.map +1 -0
- package/lib/esm/solid/SweepContour.js +250 -0
- package/lib/esm/solid/SweepContour.js.map +1 -0
- package/lib/esm/solid/TorusPipe.d.ts +123 -0
- package/lib/esm/solid/TorusPipe.d.ts.map +1 -0
- package/lib/esm/solid/TorusPipe.js +296 -0
- package/lib/esm/solid/TorusPipe.js.map +1 -0
- package/lib/esm/topology/ChainMerge.d.ts +119 -0
- package/lib/esm/topology/ChainMerge.d.ts.map +1 -0
- package/lib/esm/topology/ChainMerge.js +280 -0
- package/lib/esm/topology/ChainMerge.js.map +1 -0
- package/lib/esm/topology/Graph.d.ts +591 -0
- package/lib/esm/topology/Graph.d.ts.map +1 -0
- package/lib/esm/topology/Graph.js +1156 -0
- package/lib/esm/topology/Graph.js.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphSearch.d.ts +125 -0
- package/lib/esm/topology/HalfEdgeGraphSearch.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphSearch.js +296 -0
- package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphSpineContext.d.ts +98 -0
- package/lib/esm/topology/HalfEdgeGraphSpineContext.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphSpineContext.js +519 -0
- package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphValidation.d.ts +52 -0
- package/lib/esm/topology/HalfEdgeGraphValidation.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphValidation.js +107 -0
- package/lib/esm/topology/HalfEdgeGraphValidation.js.map +1 -0
- package/lib/esm/topology/HalfEdgeMarkSet.d.ts +232 -0
- package/lib/esm/topology/HalfEdgeMarkSet.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgeMarkSet.js +369 -0
- package/lib/esm/topology/HalfEdgeMarkSet.js.map +1 -0
- package/lib/esm/topology/HalfEdgeNodeXYZUV.d.ts +51 -0
- package/lib/esm/topology/HalfEdgeNodeXYZUV.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgeNodeXYZUV.js +93 -0
- package/lib/esm/topology/HalfEdgeNodeXYZUV.js.map +1 -0
- package/lib/esm/topology/HalfEdgePointInGraphSearch.d.ts +34 -0
- package/lib/esm/topology/HalfEdgePointInGraphSearch.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgePointInGraphSearch.js +252 -0
- package/lib/esm/topology/HalfEdgePointInGraphSearch.js.map +1 -0
- package/lib/esm/topology/HalfEdgePositionDetail.d.ts +97 -0
- package/lib/esm/topology/HalfEdgePositionDetail.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgePositionDetail.js +173 -0
- package/lib/esm/topology/HalfEdgePositionDetail.js.map +1 -0
- package/lib/esm/topology/HalfEdgePriorityQueue.d.ts +34 -0
- package/lib/esm/topology/HalfEdgePriorityQueue.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgePriorityQueue.js +68 -0
- package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -0
- package/lib/esm/topology/InsertAndRetriangulateContext.d.ts +38 -0
- package/lib/esm/topology/InsertAndRetriangulateContext.d.ts.map +1 -0
- package/lib/esm/topology/InsertAndRetriangulateContext.js +239 -0
- package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -0
- package/lib/esm/topology/MaskManager.d.ts +33 -0
- package/lib/esm/topology/MaskManager.d.ts.map +1 -0
- package/lib/esm/topology/MaskManager.js +63 -0
- package/lib/esm/topology/MaskManager.js.map +1 -0
- package/lib/esm/topology/Merging.d.ts +90 -0
- package/lib/esm/topology/Merging.d.ts.map +1 -0
- package/lib/esm/topology/Merging.js +362 -0
- package/lib/esm/topology/Merging.js.map +1 -0
- package/lib/esm/topology/RegularizeFace.d.ts +106 -0
- package/lib/esm/topology/RegularizeFace.d.ts.map +1 -0
- package/lib/esm/topology/RegularizeFace.js +367 -0
- package/lib/esm/topology/RegularizeFace.js.map +1 -0
- package/lib/esm/topology/SignedDataSummary.d.ts +37 -0
- package/lib/esm/topology/SignedDataSummary.d.ts.map +1 -0
- package/lib/esm/topology/SignedDataSummary.js +54 -0
- package/lib/esm/topology/SignedDataSummary.js.map +1 -0
- package/lib/esm/topology/Triangulation.d.ts +230 -0
- package/lib/esm/topology/Triangulation.d.ts.map +1 -0
- package/lib/esm/topology/Triangulation.js +945 -0
- package/lib/esm/topology/Triangulation.js.map +1 -0
- package/lib/esm/topology/XYParitySearchContext.d.ts +54 -0
- package/lib/esm/topology/XYParitySearchContext.d.ts.map +1 -0
- package/lib/esm/topology/XYParitySearchContext.js +138 -0
- package/lib/esm/topology/XYParitySearchContext.js.map +1 -0
- package/package.json +11 -8
- package/lib/Constant.d.ts.map +0 -1
- package/lib/Constant.js.map +0 -1
- package/lib/Geometry.d.ts.map +0 -1
- package/lib/Geometry.js.map +0 -1
- package/lib/bspline/AkimaCurve3d.d.ts.map +0 -1
- package/lib/bspline/AkimaCurve3d.js.map +0 -1
- package/lib/bspline/BSpline1dNd.d.ts.map +0 -1
- package/lib/bspline/BSpline1dNd.js.map +0 -1
- package/lib/bspline/BSplineCurve.d.ts.map +0 -1
- package/lib/bspline/BSplineCurve.js.map +0 -1
- package/lib/bspline/BSplineCurve3dH.d.ts.map +0 -1
- package/lib/bspline/BSplineCurve3dH.js.map +0 -1
- package/lib/bspline/BSplineCurveOps.d.ts.map +0 -1
- package/lib/bspline/BSplineCurveOps.js.map +0 -1
- package/lib/bspline/BSplineSurface.d.ts +0 -485
- package/lib/bspline/BSplineSurface.d.ts.map +0 -1
- package/lib/bspline/BSplineSurface.js.map +0 -1
- package/lib/bspline/Bezier1dNd.d.ts.map +0 -1
- package/lib/bspline/Bezier1dNd.js.map +0 -1
- package/lib/bspline/BezierCurve3d.d.ts.map +0 -1
- package/lib/bspline/BezierCurve3d.js.map +0 -1
- package/lib/bspline/BezierCurve3dH.d.ts.map +0 -1
- package/lib/bspline/BezierCurve3dH.js.map +0 -1
- package/lib/bspline/BezierCurveBase.d.ts.map +0 -1
- package/lib/bspline/BezierCurveBase.js.map +0 -1
- package/lib/bspline/InterpolationCurve3d.d.ts.map +0 -1
- package/lib/bspline/InterpolationCurve3d.js.map +0 -1
- package/lib/bspline/KnotVector.d.ts.map +0 -1
- package/lib/bspline/KnotVector.js.map +0 -1
- package/lib/bspline/SurfaceLocationDetail.d.ts.map +0 -1
- package/lib/bspline/SurfaceLocationDetail.js.map +0 -1
- package/lib/clipping/AlternatingConvexClipTree.d.ts.map +0 -1
- package/lib/clipping/AlternatingConvexClipTree.js.map +0 -1
- package/lib/clipping/BooleanClipFactory.d.ts.map +0 -1
- package/lib/clipping/BooleanClipFactory.js.map +0 -1
- package/lib/clipping/BooleanClipNode.d.ts.map +0 -1
- package/lib/clipping/BooleanClipNode.js.map +0 -1
- package/lib/clipping/ClipPlane.d.ts.map +0 -1
- package/lib/clipping/ClipPlane.js.map +0 -1
- package/lib/clipping/ClipPrimitive.d.ts.map +0 -1
- package/lib/clipping/ClipPrimitive.js.map +0 -1
- package/lib/clipping/ClipUtils.d.ts.map +0 -1
- package/lib/clipping/ClipUtils.js.map +0 -1
- package/lib/clipping/ClipVector.d.ts.map +0 -1
- package/lib/clipping/ClipVector.js.map +0 -1
- package/lib/clipping/ConvexClipPlaneSet.d.ts.map +0 -1
- package/lib/clipping/ConvexClipPlaneSet.js.map +0 -1
- package/lib/clipping/UnionOfConvexClipPlaneSets.d.ts.map +0 -1
- package/lib/clipping/UnionOfConvexClipPlaneSets.js.map +0 -1
- package/lib/clipping/internalContexts/LineStringOffsetClipperContext.d.ts.map +0 -1
- package/lib/clipping/internalContexts/LineStringOffsetClipperContext.js.map +0 -1
- package/lib/core-geometry.d.ts.map +0 -1
- package/lib/core-geometry.js.map +0 -1
- package/lib/curve/Arc3d.d.ts.map +0 -1
- package/lib/curve/Arc3d.js.map +0 -1
- package/lib/curve/ChainCollectorContext.d.ts.map +0 -1
- package/lib/curve/ChainCollectorContext.js.map +0 -1
- package/lib/curve/ConstructCurveBetweenCurves.d.ts.map +0 -1
- package/lib/curve/ConstructCurveBetweenCurves.js.map +0 -1
- package/lib/curve/CoordinateXYZ.d.ts.map +0 -1
- package/lib/curve/CoordinateXYZ.js.map +0 -1
- package/lib/curve/CurveChain.d.ts.map +0 -1
- package/lib/curve/CurveChain.js.map +0 -1
- package/lib/curve/CurveChainWithDistanceIndex.d.ts.map +0 -1
- package/lib/curve/CurveChainWithDistanceIndex.js.map +0 -1
- package/lib/curve/CurveCollection.d.ts.map +0 -1
- package/lib/curve/CurveCollection.js.map +0 -1
- package/lib/curve/CurveCurve.d.ts.map +0 -1
- package/lib/curve/CurveCurve.js.map +0 -1
- package/lib/curve/CurveCurveCloseApproachXY.d.ts.map +0 -1
- package/lib/curve/CurveCurveCloseApproachXY.js.map +0 -1
- package/lib/curve/CurveCurveIntersectXY.d.ts.map +0 -1
- package/lib/curve/CurveCurveIntersectXY.js.map +0 -1
- package/lib/curve/CurveCurveIntersectXYZ.d.ts.map +0 -1
- package/lib/curve/CurveCurveIntersectXYZ.js.map +0 -1
- package/lib/curve/CurveExtendMode.d.ts.map +0 -1
- package/lib/curve/CurveExtendMode.js.map +0 -1
- package/lib/curve/CurveFactory.d.ts.map +0 -1
- package/lib/curve/CurveFactory.js.map +0 -1
- package/lib/curve/CurveLocationDetail.d.ts.map +0 -1
- package/lib/curve/CurveLocationDetail.js.map +0 -1
- package/lib/curve/CurvePrimitive.d.ts.map +0 -1
- package/lib/curve/CurvePrimitive.js.map +0 -1
- package/lib/curve/CurveProcessor.d.ts.map +0 -1
- package/lib/curve/CurveProcessor.js.map +0 -1
- package/lib/curve/CurveWireMomentsXYZ.d.ts.map +0 -1
- package/lib/curve/CurveWireMomentsXYZ.js.map +0 -1
- package/lib/curve/GeometryQuery.d.ts.map +0 -1
- package/lib/curve/GeometryQuery.js.map +0 -1
- package/lib/curve/LineSegment3d.d.ts.map +0 -1
- package/lib/curve/LineSegment3d.js.map +0 -1
- package/lib/curve/LineString3d.d.ts.map +0 -1
- package/lib/curve/LineString3d.js.map +0 -1
- package/lib/curve/Loop.d.ts.map +0 -1
- package/lib/curve/Loop.js.map +0 -1
- package/lib/curve/ParityRegion.d.ts.map +0 -1
- package/lib/curve/ParityRegion.js.map +0 -1
- package/lib/curve/Path.d.ts.map +0 -1
- package/lib/curve/Path.js.map +0 -1
- package/lib/curve/PointString3d.d.ts.map +0 -1
- package/lib/curve/PointString3d.js.map +0 -1
- package/lib/curve/ProxyCurve.d.ts.map +0 -1
- package/lib/curve/ProxyCurve.js.map +0 -1
- package/lib/curve/Query/ConsolidateAdjacentPrimitivesContext.d.ts.map +0 -1
- package/lib/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +0 -1
- package/lib/curve/Query/CurveSplitContext.d.ts.map +0 -1
- package/lib/curve/Query/CurveSplitContext.js.map +0 -1
- package/lib/curve/Query/CylindricalRange.d.ts.map +0 -1
- package/lib/curve/Query/CylindricalRange.js.map +0 -1
- package/lib/curve/Query/InOutTests.d.ts.map +0 -1
- package/lib/curve/Query/InOutTests.js.map +0 -1
- package/lib/curve/Query/PlanarSubdivision.d.ts.map +0 -1
- package/lib/curve/Query/PlanarSubdivision.js.map +0 -1
- package/lib/curve/Query/StrokeCountChain.d.ts.map +0 -1
- package/lib/curve/Query/StrokeCountChain.js.map +0 -1
- package/lib/curve/Query/StrokeCountMap.d.ts.map +0 -1
- package/lib/curve/Query/StrokeCountMap.js.map +0 -1
- package/lib/curve/RegionMomentsXY.d.ts.map +0 -1
- package/lib/curve/RegionMomentsXY.js.map +0 -1
- package/lib/curve/RegionOps.d.ts.map +0 -1
- package/lib/curve/RegionOps.js.map +0 -1
- package/lib/curve/RegionOpsClassificationSweeps.d.ts.map +0 -1
- package/lib/curve/RegionOpsClassificationSweeps.js.map +0 -1
- package/lib/curve/StrokeOptions.d.ts.map +0 -1
- package/lib/curve/StrokeOptions.js.map +0 -1
- package/lib/curve/UnionRegion.d.ts.map +0 -1
- package/lib/curve/UnionRegion.js.map +0 -1
- package/lib/curve/internalContexts/CloneCurvesContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/CloneCurvesContext.js.map +0 -1
- package/lib/curve/internalContexts/CloneWithExpandedLineStrings.d.ts.map +0 -1
- package/lib/curve/internalContexts/CloneWithExpandedLineStrings.js.map +0 -1
- package/lib/curve/internalContexts/CountLinearPartsSearchContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/CountLinearPartsSearchContext.js.map +0 -1
- package/lib/curve/internalContexts/GapSearchContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/GapSearchContext.js.map +0 -1
- package/lib/curve/internalContexts/MultiChainCollector.d.ts.map +0 -1
- package/lib/curve/internalContexts/MultiChainCollector.js.map +0 -1
- package/lib/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/PlaneAltitudeRangeContext.js.map +0 -1
- package/lib/curve/internalContexts/PolygonOffsetContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/PolygonOffsetContext.js.map +0 -1
- package/lib/curve/internalContexts/SumLengthsContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/SumLengthsContext.js.map +0 -1
- package/lib/curve/internalContexts/TransformInPlaceContext.d.ts.map +0 -1
- package/lib/curve/internalContexts/TransformInPlaceContext.js.map +0 -1
- package/lib/curve/spiral/AustralianRailCorpXYEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/AustralianRailCorpXYEvaluator.js.map +0 -1
- package/lib/curve/spiral/ClothoidSeries.d.ts.map +0 -1
- package/lib/curve/spiral/ClothoidSeries.js.map +0 -1
- package/lib/curve/spiral/CubicEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/CubicEvaluator.js.map +0 -1
- package/lib/curve/spiral/CzechSpiralEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/CzechSpiralEvaluator.js.map +0 -1
- package/lib/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +0 -1
- package/lib/curve/spiral/DirectSpiral3d.d.ts +0 -264
- package/lib/curve/spiral/DirectSpiral3d.d.ts.map +0 -1
- package/lib/curve/spiral/DirectSpiral3d.js +0 -464
- package/lib/curve/spiral/DirectSpiral3d.js.map +0 -1
- package/lib/curve/spiral/IntegratedSpiral3d.d.ts +0 -154
- package/lib/curve/spiral/IntegratedSpiral3d.d.ts.map +0 -1
- package/lib/curve/spiral/IntegratedSpiral3d.js +0 -351
- package/lib/curve/spiral/IntegratedSpiral3d.js.map +0 -1
- package/lib/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +0 -1
- package/lib/curve/spiral/NormalizedTransition.d.ts.map +0 -1
- package/lib/curve/spiral/NormalizedTransition.js.map +0 -1
- package/lib/curve/spiral/PolishCubicSpiralEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/PolishCubicSpiralEvaluator.js.map +0 -1
- package/lib/curve/spiral/TransitionConditionalProperties.d.ts.map +0 -1
- package/lib/curve/spiral/TransitionConditionalProperties.js.map +0 -1
- package/lib/curve/spiral/TransitionSpiral3d.d.ts.map +0 -1
- package/lib/curve/spiral/TransitionSpiral3d.js.map +0 -1
- package/lib/curve/spiral/XYCurveEvaluator.d.ts.map +0 -1
- package/lib/curve/spiral/XYCurveEvaluator.js.map +0 -1
- package/lib/geometry3d/Angle.d.ts.map +0 -1
- package/lib/geometry3d/Angle.js.map +0 -1
- package/lib/geometry3d/AngleSweep.d.ts.map +0 -1
- package/lib/geometry3d/AngleSweep.js.map +0 -1
- package/lib/geometry3d/BarycentricTriangle.d.ts.map +0 -1
- package/lib/geometry3d/BarycentricTriangle.js.map +0 -1
- package/lib/geometry3d/BilinearPatch.d.ts.map +0 -1
- package/lib/geometry3d/BilinearPatch.js.map +0 -1
- package/lib/geometry3d/CoincidentGeometryOps.d.ts.map +0 -1
- package/lib/geometry3d/CoincidentGeometryOps.js.map +0 -1
- package/lib/geometry3d/Ellipsoid.d.ts.map +0 -1
- package/lib/geometry3d/Ellipsoid.js.map +0 -1
- package/lib/geometry3d/FrameBuilder.d.ts.map +0 -1
- package/lib/geometry3d/FrameBuilder.js.map +0 -1
- package/lib/geometry3d/FrustumAnimation.d.ts.map +0 -1
- package/lib/geometry3d/FrustumAnimation.js.map +0 -1
- package/lib/geometry3d/GeometryHandler.d.ts.map +0 -1
- package/lib/geometry3d/GeometryHandler.js.map +0 -1
- package/lib/geometry3d/GrowableBlockedArray.d.ts.map +0 -1
- package/lib/geometry3d/GrowableBlockedArray.js.map +0 -1
- package/lib/geometry3d/GrowableFloat64Array.d.ts.map +0 -1
- package/lib/geometry3d/GrowableFloat64Array.js.map +0 -1
- package/lib/geometry3d/GrowableXYArray.d.ts.map +0 -1
- package/lib/geometry3d/GrowableXYArray.js.map +0 -1
- package/lib/geometry3d/GrowableXYZArray.d.ts.map +0 -1
- package/lib/geometry3d/GrowableXYZArray.js.map +0 -1
- package/lib/geometry3d/IndexedCollectionInterval.d.ts.map +0 -1
- package/lib/geometry3d/IndexedCollectionInterval.js.map +0 -1
- package/lib/geometry3d/IndexedXYCollection.d.ts.map +0 -1
- package/lib/geometry3d/IndexedXYCollection.js.map +0 -1
- package/lib/geometry3d/IndexedXYZCollection.d.ts.map +0 -1
- package/lib/geometry3d/IndexedXYZCollection.js.map +0 -1
- package/lib/geometry3d/LongitudeLatitudeAltitude.d.ts.map +0 -1
- package/lib/geometry3d/LongitudeLatitudeAltitude.js.map +0 -1
- package/lib/geometry3d/Matrix3d.d.ts.map +0 -1
- package/lib/geometry3d/Matrix3d.js.map +0 -1
- package/lib/geometry3d/OrderedRotationAngles.d.ts.map +0 -1
- package/lib/geometry3d/OrderedRotationAngles.js.map +0 -1
- package/lib/geometry3d/Plane3dByOriginAndUnitNormal.d.ts.map +0 -1
- package/lib/geometry3d/Plane3dByOriginAndUnitNormal.js.map +0 -1
- package/lib/geometry3d/Plane3dByOriginAndVectors.d.ts.map +0 -1
- package/lib/geometry3d/Plane3dByOriginAndVectors.js.map +0 -1
- package/lib/geometry3d/Point2dArrayCarrier.d.ts.map +0 -1
- package/lib/geometry3d/Point2dArrayCarrier.js.map +0 -1
- package/lib/geometry3d/Point2dVector2d.d.ts.map +0 -1
- package/lib/geometry3d/Point2dVector2d.js.map +0 -1
- package/lib/geometry3d/Point3dArrayCarrier.d.ts.map +0 -1
- package/lib/geometry3d/Point3dArrayCarrier.js.map +0 -1
- package/lib/geometry3d/Point3dVector3d.d.ts.map +0 -1
- package/lib/geometry3d/Point3dVector3d.js.map +0 -1
- package/lib/geometry3d/PointHelpers.d.ts.map +0 -1
- package/lib/geometry3d/PointHelpers.js.map +0 -1
- package/lib/geometry3d/PointStreaming.d.ts.map +0 -1
- package/lib/geometry3d/PointStreaming.js.map +0 -1
- package/lib/geometry3d/PolygonOps.d.ts.map +0 -1
- package/lib/geometry3d/PolygonOps.js.map +0 -1
- package/lib/geometry3d/PolylineCompressionByEdgeOffset.d.ts.map +0 -1
- package/lib/geometry3d/PolylineCompressionByEdgeOffset.js.map +0 -1
- package/lib/geometry3d/PolylineOps.d.ts.map +0 -1
- package/lib/geometry3d/PolylineOps.js.map +0 -1
- package/lib/geometry3d/Range.d.ts.map +0 -1
- package/lib/geometry3d/Range.js.map +0 -1
- package/lib/geometry3d/Ray3d.d.ts.map +0 -1
- package/lib/geometry3d/Ray3d.js.map +0 -1
- package/lib/geometry3d/ReusableObjectCache.d.ts.map +0 -1
- package/lib/geometry3d/ReusableObjectCache.js.map +0 -1
- package/lib/geometry3d/Segment1d.d.ts.map +0 -1
- package/lib/geometry3d/Segment1d.js.map +0 -1
- package/lib/geometry3d/SortablePolygon.d.ts.map +0 -1
- package/lib/geometry3d/SortablePolygon.js.map +0 -1
- package/lib/geometry3d/Transform.d.ts.map +0 -1
- package/lib/geometry3d/Transform.js.map +0 -1
- package/lib/geometry3d/UVSurfaceOps.d.ts.map +0 -1
- package/lib/geometry3d/UVSurfaceOps.js.map +0 -1
- package/lib/geometry3d/XYZProps.d.ts.map +0 -1
- package/lib/geometry3d/XYZProps.js.map +0 -1
- package/lib/geometry3d/YawPitchRollAngles.d.ts.map +0 -1
- package/lib/geometry3d/YawPitchRollAngles.js.map +0 -1
- package/lib/geometry4d/Map4d.d.ts.map +0 -1
- package/lib/geometry4d/Map4d.js.map +0 -1
- package/lib/geometry4d/Matrix4d.d.ts.map +0 -1
- package/lib/geometry4d/Matrix4d.js.map +0 -1
- package/lib/geometry4d/MomentData.d.ts.map +0 -1
- package/lib/geometry4d/MomentData.js.map +0 -1
- package/lib/geometry4d/PlaneByOriginAndVectors4d.d.ts.map +0 -1
- package/lib/geometry4d/PlaneByOriginAndVectors4d.js.map +0 -1
- package/lib/geometry4d/Point4d.d.ts.map +0 -1
- package/lib/geometry4d/Point4d.js.map +0 -1
- package/lib/numerics/BandedSystem.d.ts.map +0 -1
- package/lib/numerics/BandedSystem.js.map +0 -1
- package/lib/numerics/BezierPolynomials.d.ts.map +0 -1
- package/lib/numerics/BezierPolynomials.js.map +0 -1
- package/lib/numerics/ClusterableArray.d.ts.map +0 -1
- package/lib/numerics/ClusterableArray.js.map +0 -1
- package/lib/numerics/Complex.d.ts.map +0 -1
- package/lib/numerics/Complex.js.map +0 -1
- package/lib/numerics/ConvexPolygon2d.d.ts.map +0 -1
- package/lib/numerics/ConvexPolygon2d.js.map +0 -1
- package/lib/numerics/Newton.d.ts.map +0 -1
- package/lib/numerics/Newton.js.map +0 -1
- package/lib/numerics/PascalCoefficients.d.ts.map +0 -1
- package/lib/numerics/PascalCoefficients.js.map +0 -1
- package/lib/numerics/PolarData.d.ts.map +0 -1
- package/lib/numerics/PolarData.js.map +0 -1
- package/lib/numerics/Polynomials.d.ts.map +0 -1
- package/lib/numerics/Polynomials.js.map +0 -1
- package/lib/numerics/Quadrature.d.ts.map +0 -1
- package/lib/numerics/Quadrature.js.map +0 -1
- package/lib/numerics/Range1dArray.d.ts.map +0 -1
- package/lib/numerics/Range1dArray.js.map +0 -1
- package/lib/numerics/TriDiagonalSystem.d.ts.map +0 -1
- package/lib/numerics/TriDiagonalSystem.js.map +0 -1
- package/lib/numerics/UnionFind.d.ts.map +0 -1
- package/lib/numerics/UnionFind.js.map +0 -1
- package/lib/numerics/UsageSums.d.ts.map +0 -1
- package/lib/numerics/UsageSums.js.map +0 -1
- package/lib/polyface/AuxData.d.ts.map +0 -1
- package/lib/polyface/AuxData.js.map +0 -1
- package/lib/polyface/BoxTopology.d.ts.map +0 -1
- package/lib/polyface/BoxTopology.js.map +0 -1
- package/lib/polyface/FacetFaceData.d.ts.map +0 -1
- package/lib/polyface/FacetFaceData.js.map +0 -1
- package/lib/polyface/FacetOrientation.d.ts.map +0 -1
- package/lib/polyface/FacetOrientation.js.map +0 -1
- package/lib/polyface/GreedyTriangulationBetweenLineStrings.d.ts.map +0 -1
- package/lib/polyface/GreedyTriangulationBetweenLineStrings.js.map +0 -1
- package/lib/polyface/IndexedEdgeMatcher.d.ts.map +0 -1
- package/lib/polyface/IndexedEdgeMatcher.js.map +0 -1
- package/lib/polyface/IndexedPolyfaceVisitor.d.ts.map +0 -1
- package/lib/polyface/IndexedPolyfaceVisitor.js.map +0 -1
- package/lib/polyface/Polyface.d.ts.map +0 -1
- package/lib/polyface/Polyface.js.map +0 -1
- package/lib/polyface/PolyfaceBuilder.d.ts.map +0 -1
- package/lib/polyface/PolyfaceBuilder.js.map +0 -1
- package/lib/polyface/PolyfaceClip.d.ts.map +0 -1
- package/lib/polyface/PolyfaceClip.js.map +0 -1
- package/lib/polyface/PolyfaceData.d.ts +0 -170
- package/lib/polyface/PolyfaceData.d.ts.map +0 -1
- package/lib/polyface/PolyfaceData.js +0 -531
- package/lib/polyface/PolyfaceData.js.map +0 -1
- package/lib/polyface/PolyfaceQuery.d.ts.map +0 -1
- package/lib/polyface/PolyfaceQuery.js.map +0 -1
- package/lib/polyface/RangeLengthData.d.ts.map +0 -1
- package/lib/polyface/RangeLengthData.js.map +0 -1
- package/lib/polyface/TaggedNumericData.d.ts.map +0 -1
- package/lib/polyface/TaggedNumericData.js.map +0 -1
- package/lib/polyface/TriangleCandidate.d.ts.map +0 -1
- package/lib/polyface/TriangleCandidate.js.map +0 -1
- package/lib/polyface/multiclip/BuildAverageNormalsContext.d.ts.map +0 -1
- package/lib/polyface/multiclip/BuildAverageNormalsContext.js.map +0 -1
- package/lib/polyface/multiclip/GriddedRaggedRange2dSet.d.ts.map +0 -1
- package/lib/polyface/multiclip/GriddedRaggedRange2dSet.js.map +0 -1
- package/lib/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts.map +0 -1
- package/lib/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +0 -1
- package/lib/polyface/multiclip/LinearSearchRange2dArray.d.ts.map +0 -1
- package/lib/polyface/multiclip/LinearSearchRange2dArray.js.map +0 -1
- package/lib/polyface/multiclip/Range2dSearchInterface.d.ts.map +0 -1
- package/lib/polyface/multiclip/Range2dSearchInterface.js.map +0 -1
- package/lib/polyface/multiclip/RangeSearch.d.ts.map +0 -1
- package/lib/polyface/multiclip/RangeSearch.js.map +0 -1
- package/lib/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +0 -1
- package/lib/polyface/multiclip/SweepLineStringToFacetContext.js.map +0 -1
- package/lib/polyface/multiclip/XYPointBuckets.d.ts.map +0 -1
- package/lib/polyface/multiclip/XYPointBuckets.js.map +0 -1
- package/lib/serialization/BGFBAccessors.d.ts.map +0 -1
- package/lib/serialization/BGFBAccessors.js.map +0 -1
- package/lib/serialization/BGFBReader.d.ts.map +0 -1
- package/lib/serialization/BGFBReader.js.map +0 -1
- package/lib/serialization/BGFBWriter.d.ts.map +0 -1
- package/lib/serialization/BGFBWriter.js.map +0 -1
- package/lib/serialization/BentleyGeometryFlatBuffer.d.ts.map +0 -1
- package/lib/serialization/BentleyGeometryFlatBuffer.js.map +0 -1
- package/lib/serialization/DeepCompare.d.ts.map +0 -1
- package/lib/serialization/DeepCompare.js.map +0 -1
- package/lib/serialization/GeometrySamples.d.ts.map +0 -1
- package/lib/serialization/GeometrySamples.js.map +0 -1
- package/lib/serialization/IModelJsonSchema.d.ts.map +0 -1
- package/lib/serialization/IModelJsonSchema.js.map +0 -1
- package/lib/solid/Box.d.ts.map +0 -1
- package/lib/solid/Box.js.map +0 -1
- package/lib/solid/Cone.d.ts.map +0 -1
- package/lib/solid/Cone.js.map +0 -1
- package/lib/solid/LinearSweep.d.ts.map +0 -1
- package/lib/solid/LinearSweep.js.map +0 -1
- package/lib/solid/RotationalSweep.d.ts.map +0 -1
- package/lib/solid/RotationalSweep.js.map +0 -1
- package/lib/solid/RuledSweep.d.ts.map +0 -1
- package/lib/solid/RuledSweep.js.map +0 -1
- package/lib/solid/SolidPrimitive.d.ts.map +0 -1
- package/lib/solid/SolidPrimitive.js.map +0 -1
- package/lib/solid/Sphere.d.ts.map +0 -1
- package/lib/solid/Sphere.js.map +0 -1
- package/lib/solid/SweepContour.d.ts.map +0 -1
- package/lib/solid/SweepContour.js.map +0 -1
- package/lib/solid/TorusPipe.d.ts.map +0 -1
- package/lib/solid/TorusPipe.js.map +0 -1
- package/lib/topology/ChainMerge.d.ts.map +0 -1
- package/lib/topology/ChainMerge.js.map +0 -1
- package/lib/topology/Graph.d.ts.map +0 -1
- package/lib/topology/Graph.js.map +0 -1
- package/lib/topology/HalfEdgeGraphSearch.d.ts.map +0 -1
- package/lib/topology/HalfEdgeGraphSearch.js.map +0 -1
- package/lib/topology/HalfEdgeGraphSpineContext.d.ts.map +0 -1
- package/lib/topology/HalfEdgeGraphSpineContext.js.map +0 -1
- package/lib/topology/HalfEdgeGraphValidation.d.ts.map +0 -1
- package/lib/topology/HalfEdgeGraphValidation.js.map +0 -1
- package/lib/topology/HalfEdgeMarkSet.d.ts.map +0 -1
- package/lib/topology/HalfEdgeMarkSet.js.map +0 -1
- package/lib/topology/HalfEdgeNodeXYZUV.d.ts.map +0 -1
- package/lib/topology/HalfEdgeNodeXYZUV.js.map +0 -1
- package/lib/topology/HalfEdgePointInGraphSearch.d.ts.map +0 -1
- package/lib/topology/HalfEdgePointInGraphSearch.js.map +0 -1
- package/lib/topology/HalfEdgePositionDetail.d.ts.map +0 -1
- package/lib/topology/HalfEdgePositionDetail.js.map +0 -1
- package/lib/topology/HalfEdgePriorityQueue.d.ts.map +0 -1
- package/lib/topology/HalfEdgePriorityQueue.js.map +0 -1
- package/lib/topology/InsertAndRetriangulateContext.d.ts.map +0 -1
- package/lib/topology/InsertAndRetriangulateContext.js.map +0 -1
- package/lib/topology/MaskManager.d.ts.map +0 -1
- package/lib/topology/MaskManager.js.map +0 -1
- package/lib/topology/Merging.d.ts.map +0 -1
- package/lib/topology/Merging.js.map +0 -1
- package/lib/topology/RegularizeFace.d.ts.map +0 -1
- package/lib/topology/RegularizeFace.js.map +0 -1
- package/lib/topology/SignedDataSummary.d.ts.map +0 -1
- package/lib/topology/SignedDataSummary.js.map +0 -1
- package/lib/topology/Triangulation.d.ts.map +0 -1
- package/lib/topology/Triangulation.js.map +0 -1
- package/lib/topology/XYParitySearchContext.d.ts.map +0 -1
- package/lib/topology/XYParitySearchContext.js.map +0 -1
|
@@ -0,0 +1,1697 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Numerics
|
|
7
|
+
*/
|
|
8
|
+
// import { Angle, AngleSweep, Geometry } from "../Geometry";
|
|
9
|
+
import { Geometry } from "../Geometry";
|
|
10
|
+
import { Angle } from "../geometry3d/Angle";
|
|
11
|
+
import { AngleSweep } from "../geometry3d/AngleSweep";
|
|
12
|
+
import { GrowableFloat64Array } from "../geometry3d/GrowableFloat64Array";
|
|
13
|
+
import { LongitudeLatitudeNumber } from "../geometry3d/LongitudeLatitudeAltitude";
|
|
14
|
+
import { Point2d, Vector2d } from "../geometry3d/Point2dVector2d";
|
|
15
|
+
import { Point3d, Vector3d } from "../geometry3d/Point3dVector3d";
|
|
16
|
+
import { Range1d, Range3d } from "../geometry3d/Range";
|
|
17
|
+
// import { Arc3d } from "../curve/Arc3d";
|
|
18
|
+
// cspell:word Cardano
|
|
19
|
+
// cspell:word CCminusSS
|
|
20
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
21
|
+
/**
|
|
22
|
+
* degree 2 (quadratic) polynomial in for y = c0 + c1*x + c2*x^2
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export class Degree2PowerPolynomial {
|
|
26
|
+
constructor(c0 = 0, c1 = 0, c2 = 0) {
|
|
27
|
+
this.coffs = [c0, c1, c2];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* * Return 2 duplicate roots in double root case.
|
|
31
|
+
* * The solutions are always in algebraic order.
|
|
32
|
+
* @returns 0, 1, or 2 solutions of the usual quadratic (a*x*x + b * x + c = 0)
|
|
33
|
+
*/
|
|
34
|
+
static solveQuadratic(a, b, c) {
|
|
35
|
+
const b1 = Geometry.conditionalDivideFraction(b, a);
|
|
36
|
+
const c1 = Geometry.conditionalDivideFraction(c, a);
|
|
37
|
+
if (b1 !== undefined && c1 !== undefined) {
|
|
38
|
+
// now solving xx + b1*x + c1 = 0 -- i.e. implied "a" coefficient is 1 . .
|
|
39
|
+
const q = b1 * b1 - 4 * c1;
|
|
40
|
+
if (q > 0) {
|
|
41
|
+
const e = Math.sqrt(q);
|
|
42
|
+
// e is positive, so this sorts algebraically
|
|
43
|
+
return [0.5 * (-b1 - e), 0.5 * (-b1 + e)];
|
|
44
|
+
}
|
|
45
|
+
if (q < 0)
|
|
46
|
+
return undefined;
|
|
47
|
+
const root = -0.5 * b1;
|
|
48
|
+
return [root, root];
|
|
49
|
+
}
|
|
50
|
+
// "divide by a" failed. solve bx + c = 0
|
|
51
|
+
const x = Geometry.conditionalDivideFraction(-c, b);
|
|
52
|
+
if (x !== undefined)
|
|
53
|
+
return [x];
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
/** Add `a` to the constant term. */
|
|
57
|
+
addConstant(a) {
|
|
58
|
+
this.coffs[0] += a;
|
|
59
|
+
}
|
|
60
|
+
/** Add `s * (a + b*x)^2` to the quadratic coefficients */
|
|
61
|
+
addSquaredLinearTerm(a, b, s = 1) {
|
|
62
|
+
this.coffs[0] += s * (a * a);
|
|
63
|
+
this.coffs[1] += s * (2.0 * a * b);
|
|
64
|
+
this.coffs[2] += s * (b * b);
|
|
65
|
+
}
|
|
66
|
+
/** Return the real roots of this polynomial */
|
|
67
|
+
realRoots() {
|
|
68
|
+
const ss = Degree2PowerPolynomial.solveQuadratic(this.coffs[2], this.coffs[1], this.coffs[0]);
|
|
69
|
+
if (ss && ss.length > 1) {
|
|
70
|
+
if (ss[0] > ss[1]) {
|
|
71
|
+
const temp = ss[0];
|
|
72
|
+
ss[0] = ss[1];
|
|
73
|
+
ss[1] = temp;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return ss;
|
|
77
|
+
}
|
|
78
|
+
/** Evaluate the quadratic at x. */
|
|
79
|
+
evaluate(x) {
|
|
80
|
+
return this.coffs[0] + x * (this.coffs[1] + x * this.coffs[2]);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Evaluate the bezier function at a parameter value. (i.e. sum the basis functions times coefficients)
|
|
84
|
+
* @param u parameter for evaluation
|
|
85
|
+
*/
|
|
86
|
+
evaluateDerivative(x) {
|
|
87
|
+
return this.coffs[1] + 2 * x * this.coffs[2];
|
|
88
|
+
}
|
|
89
|
+
/** Factor the polynomial in to the form `y0 + c * (x-x0)^2)`, i.e. complete the square. */
|
|
90
|
+
tryGetVertexFactorization() {
|
|
91
|
+
const x = Geometry.conditionalDivideFraction(-this.coffs[1], 2.0 * this.coffs[2]);
|
|
92
|
+
if (x !== undefined) {
|
|
93
|
+
const y = this.evaluate(x);
|
|
94
|
+
return { c: this.coffs[2], x0: x, y0: y };
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
/** Construct a quadratic from input form `c2 * (x-root0) * (x-root1)` */
|
|
99
|
+
static fromRootsAndC2(root0, root1, c2 = 1) {
|
|
100
|
+
return new Degree2PowerPolynomial(c2 * root0 * root1, -c2 * (root0 + root1), c2);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* degree 3 (cubic) polynomial in for y = c0 + c1*x + c2*x^2 + c3*x^3
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
export class Degree3PowerPolynomial {
|
|
108
|
+
constructor(c0 = 0, c1 = 0, c2 = 0, c3 = 1) {
|
|
109
|
+
this.coffs = [c0, c1, c2, c3];
|
|
110
|
+
}
|
|
111
|
+
/** Add `a` to the constant term. */
|
|
112
|
+
addConstant(a) {
|
|
113
|
+
this.coffs[0] += a;
|
|
114
|
+
}
|
|
115
|
+
/** Add `s * (a + b*x)^2` to the cubic */
|
|
116
|
+
addSquaredLinearTerm(a, b, s = 1) {
|
|
117
|
+
this.coffs[0] += s * (a * a);
|
|
118
|
+
this.coffs[1] += s * (2.0 * a * b);
|
|
119
|
+
this.coffs[2] += s * (b * b);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Evaluate the polynomial at x
|
|
123
|
+
* @param u parameter for evaluation
|
|
124
|
+
*/
|
|
125
|
+
evaluate(x) {
|
|
126
|
+
return this.coffs[0] + x * (this.coffs[1] + x * (this.coffs[2] + x * this.coffs[3]));
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Evaluate the polynomial derivative
|
|
130
|
+
* @param u parameter for evaluation
|
|
131
|
+
*/
|
|
132
|
+
evaluateDerivative(x) {
|
|
133
|
+
return this.coffs[1] + x * (2.0 * this.coffs[2] + x * 3.0 * this.coffs[3]);
|
|
134
|
+
}
|
|
135
|
+
/** Construct a cubic from the form `c3 * (x-root0) * (x - root1) * (x- root2)` */
|
|
136
|
+
static fromRootsAndC3(root0, root1, root2, c3 = 1.0) {
|
|
137
|
+
return new Degree3PowerPolynomial(-c3 * root0 * root1 * root2, c3 * (root0 * root1 + root1 * root2 + root0 * root2), -c3 * (root0 + root1 + root2), c3);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* degree 4 (quartic) polynomial in for y = c0 + c1*x + c2*x^2 + c4*x^4
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
export class Degree4PowerPolynomial {
|
|
145
|
+
constructor(c0 = 0, c1 = 0, c2 = 0, c3 = 0, c4 = 0) {
|
|
146
|
+
this.coffs = [c0, c1, c2, c3, c4];
|
|
147
|
+
}
|
|
148
|
+
/** Add `a` to the constant term. */
|
|
149
|
+
addConstant(a) {
|
|
150
|
+
this.coffs[0] += a;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Evaluate the polynomial
|
|
154
|
+
* @param x x coordinate for evaluation
|
|
155
|
+
*/
|
|
156
|
+
evaluate(x) {
|
|
157
|
+
return this.coffs[0] + x * (this.coffs[1] + x * (this.coffs[2] + x * (this.coffs[3] + x * this.coffs[4])));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Evaluate the derivative
|
|
161
|
+
* @param x x coordinate for evaluation
|
|
162
|
+
*/
|
|
163
|
+
evaluateDerivative(x) {
|
|
164
|
+
return (this.coffs[1] + x * (2.0 * this.coffs[2] + x * (3.0 * this.coffs[3] + x * 4.0 * this.coffs[4])));
|
|
165
|
+
}
|
|
166
|
+
/** Construct a quartic from the form `c3 * (x-root0) * (x - root1) * (x- root2) * (x-root3)` */
|
|
167
|
+
static fromRootsAndC4(root0, root1, root2, root3, c4 = 1) {
|
|
168
|
+
return new Degree4PowerPolynomial(c4 * (root0 * root1 * root2 * root3), -c4 * (root0 * root1 * root2 + root0 * root1 * root3 + root0 * root2 * root3 + root1 * root2 * root3), c4 * (root0 * root1 + root0 * root2 + root0 * root3 + root1 * root2 + root1 * root3 + root2 * root3), -c4 * (root0 + root1 + root2 + root3), c4);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* polynomial services for an implicit torus with
|
|
173
|
+
* * z axis is "through the donut hole"
|
|
174
|
+
* * `majorRadius` is the radius of the circle "around the z axis"
|
|
175
|
+
* * `minorRadius` is the radius of circles around the major circle
|
|
176
|
+
* * for simple xyz the implicit form is
|
|
177
|
+
* * `(x^2+y^2+z^2+(R^2-r^2))^2 = 4 R^2(x^2+y^2)`
|
|
178
|
+
* * In weighted form
|
|
179
|
+
* * `(x^2+y^2+z^2+(R^2-r^2)w^2)^2 = 4 R^2 w^2 (x^2+y^2)`
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
export class TorusImplicit {
|
|
183
|
+
constructor(majorRadius, minorRadius) {
|
|
184
|
+
this.majorRadius = majorRadius;
|
|
185
|
+
this.minorRadius = minorRadius;
|
|
186
|
+
}
|
|
187
|
+
/** Return sum of (absolute) major and minor radii, which is (half) the box size in x and y directions */
|
|
188
|
+
boxSize() {
|
|
189
|
+
return (Math.abs(this.majorRadius) + Math.abs(this.minorRadius));
|
|
190
|
+
}
|
|
191
|
+
/** Return scale factor appropriate to control the magnitude of the implicit function. */
|
|
192
|
+
implicitFunctionScale() {
|
|
193
|
+
const a = this.boxSize();
|
|
194
|
+
if (a === 0.0)
|
|
195
|
+
return 1.0;
|
|
196
|
+
return 1.0 / (a * a * a * a);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* At space point (x,y,z) evaluate the implicit form of the torus (See `ImplicitTorus`)
|
|
200
|
+
*/
|
|
201
|
+
evaluateImplicitFunctionXYZ(x, y, z) {
|
|
202
|
+
const rho2 = x * x + y * y;
|
|
203
|
+
const z2 = z * z;
|
|
204
|
+
const R2 = this.majorRadius * this.majorRadius;
|
|
205
|
+
const r2 = this.minorRadius * this.minorRadius;
|
|
206
|
+
const f = rho2 + z2 + (R2 - r2);
|
|
207
|
+
const g = 4.0 * R2 * rho2;
|
|
208
|
+
return (f * f - g) * this.implicitFunctionScale();
|
|
209
|
+
}
|
|
210
|
+
/** Evaluate the implicit function at a point. */
|
|
211
|
+
evaluateImplicitFunctionPoint(xyz) {
|
|
212
|
+
return this.evaluateImplicitFunctionXYZ(xyz.x, xyz.y, xyz.z);
|
|
213
|
+
}
|
|
214
|
+
/** Evaluate the implicit function at homogeneous coordinates */
|
|
215
|
+
evaluateImplicitFunctionXYZW(x, y, z, w) {
|
|
216
|
+
const rho2 = x * x + y * y;
|
|
217
|
+
const z2 = z * z;
|
|
218
|
+
const w2 = w * w;
|
|
219
|
+
const R2 = this.majorRadius * this.majorRadius;
|
|
220
|
+
const r2 = this.minorRadius * this.minorRadius;
|
|
221
|
+
const f = rho2 + z2 + w2 * (R2 - r2);
|
|
222
|
+
const g = w2 * 4.0 * R2 * rho2;
|
|
223
|
+
return (f * f - g) * this.implicitFunctionScale();
|
|
224
|
+
}
|
|
225
|
+
/** Evaluate the surface point at angles (in radians) on the major and minor circles. */
|
|
226
|
+
evaluateThetaPhi(thetaRadians, phiRadians) {
|
|
227
|
+
const c = Math.cos(thetaRadians);
|
|
228
|
+
const s = Math.sin(thetaRadians);
|
|
229
|
+
// theta=0 point
|
|
230
|
+
const x0 = this.majorRadius + this.minorRadius * Math.cos(phiRadians);
|
|
231
|
+
const z0 = this.minorRadius * Math.sin(phiRadians);
|
|
232
|
+
return Point3d.create(c * x0, s * x0, z0);
|
|
233
|
+
}
|
|
234
|
+
/** Evaluate partial derivatives at angles (int radians) on major and minor circles. */
|
|
235
|
+
evaluateDerivativesThetaPhi(thetaRadians, phiRadians, dxdTheta, dxdPhi) {
|
|
236
|
+
const cTheta = Math.cos(thetaRadians);
|
|
237
|
+
const sTheta = Math.sin(thetaRadians);
|
|
238
|
+
const bx = this.minorRadius * Math.cos(phiRadians);
|
|
239
|
+
const bz = this.minorRadius * Math.sin(phiRadians);
|
|
240
|
+
const x0 = this.majorRadius + bx;
|
|
241
|
+
Vector3d.create(-x0 * sTheta, x0 * cTheta, 0.0, dxdTheta);
|
|
242
|
+
Vector3d.create(-cTheta * bz, -sTheta * bz, bx, dxdPhi);
|
|
243
|
+
}
|
|
244
|
+
/** Evaluate space point at major and minor angles (in radians) and distance from major hoop. */
|
|
245
|
+
evaluateThetaPhiDistance(thetaRadians, phiRadians, distance) {
|
|
246
|
+
const c = Math.cos(thetaRadians);
|
|
247
|
+
const s = Math.sin(thetaRadians);
|
|
248
|
+
// theta=0 point
|
|
249
|
+
const x0 = this.majorRadius + distance * Math.cos(phiRadians);
|
|
250
|
+
const z0 = distance * Math.sin(phiRadians);
|
|
251
|
+
return Point3d.create(c * x0, s * x0, z0);
|
|
252
|
+
}
|
|
253
|
+
/** Given an xyz coordinate in the local system of the toroid, compute the torus parametrization
|
|
254
|
+
* * theta = angular coordinate in xy plane
|
|
255
|
+
* * phi = angular coordinate in minor circle.
|
|
256
|
+
* * distance = distance from major circle
|
|
257
|
+
* * rho = distance from origin to xy part of the input.
|
|
258
|
+
* @param xyz space point in local coordinates.
|
|
259
|
+
* @return object with properties theta, phi, distance, rho
|
|
260
|
+
*/
|
|
261
|
+
xyzToThetaPhiDistance(xyz) {
|
|
262
|
+
const rho = xyz.magnitudeXY();
|
|
263
|
+
const majorRadiusFactor = Geometry.conditionalDivideFraction(this.majorRadius, rho);
|
|
264
|
+
let safeMajor;
|
|
265
|
+
let majorCirclePoint;
|
|
266
|
+
if (majorRadiusFactor) {
|
|
267
|
+
safeMajor = true;
|
|
268
|
+
majorCirclePoint = Point3d.create(majorRadiusFactor * xyz.x, majorRadiusFactor * xyz.y, 0.0);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
safeMajor = false;
|
|
272
|
+
majorCirclePoint = Point3d.create(xyz.x, xyz.y, 0.0);
|
|
273
|
+
}
|
|
274
|
+
const theta = safeMajor ? Math.atan2(xyz.y, xyz.x) : 0.0;
|
|
275
|
+
const vectorFromMajorCircle = Vector3d.createStartEnd(majorCirclePoint, xyz);
|
|
276
|
+
const distance = vectorFromMajorCircle.magnitude();
|
|
277
|
+
const dRho = rho - this.majorRadius;
|
|
278
|
+
let safePhi;
|
|
279
|
+
let phi;
|
|
280
|
+
if (xyz.z === 0.0 && dRho === 0.0) {
|
|
281
|
+
phi = 0.0;
|
|
282
|
+
safePhi = false;
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
phi = Math.atan2(xyz.z, dRho);
|
|
286
|
+
safePhi = true;
|
|
287
|
+
}
|
|
288
|
+
return { theta, phi, distance, rho, safePhi: safeMajor && safePhi };
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* evaluation methods for an implicit sphere
|
|
293
|
+
* * xyz function `x*x + y*y + z*z - r*r = 0`.
|
|
294
|
+
* * xyzw function `x*x + y*y + z*z - r*r*w*w = 0`.
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
export class SphereImplicit {
|
|
298
|
+
constructor(r) { this.radius = r; }
|
|
299
|
+
/** Evaluate the implicit function at coordinates x,y,z */
|
|
300
|
+
evaluateImplicitFunction(x, y, z) {
|
|
301
|
+
return x * x + y * y + z * z - this.radius * this.radius;
|
|
302
|
+
}
|
|
303
|
+
/** Evaluate the implicit function at homogeneous coordinates x,y,z,w */
|
|
304
|
+
evaluateImplicitFunctionXYZW(wx, wy, wz, w) {
|
|
305
|
+
return (wx * wx + wy * wy + wz * wz) - this.radius * this.radius * w * w;
|
|
306
|
+
}
|
|
307
|
+
/** Given an xyz coordinate in the local system of the toroid, compute the sphere parametrization
|
|
308
|
+
* * theta = angular coordinate in xy plane
|
|
309
|
+
* * phi = rotation from xy plane towards z axis.
|
|
310
|
+
* @param xyz space point in local coordinates.
|
|
311
|
+
* @return object with properties thetaRadians, phi, r
|
|
312
|
+
*/
|
|
313
|
+
xyzToThetaPhiR(xyz) {
|
|
314
|
+
const rhoSquared = xyz.x * xyz.x + xyz.y * xyz.y;
|
|
315
|
+
const rho = Math.sqrt(rhoSquared);
|
|
316
|
+
const r = Math.sqrt(rhoSquared + xyz.z * xyz.z);
|
|
317
|
+
let theta;
|
|
318
|
+
let phi;
|
|
319
|
+
let valid;
|
|
320
|
+
if (r === 0.0) {
|
|
321
|
+
theta = phi = 0.0;
|
|
322
|
+
valid = false;
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
phi = Math.atan2(xyz.z, rho); // At least one of these is nonzero
|
|
326
|
+
if (rhoSquared !== 0.0) {
|
|
327
|
+
theta = Math.atan2(xyz.y, xyz.x);
|
|
328
|
+
valid = true;
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
theta = 0.0;
|
|
332
|
+
valid = false;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return { thetaRadians: (theta), phiRadians: (phi), r, valid };
|
|
336
|
+
}
|
|
337
|
+
/** Return the range of a uv-aligned patch of the sphere. */
|
|
338
|
+
static patchRangeStartEndRadians(center, radius, theta0Radians, theta1Radians, phi0Radians, phi1Radians, result) {
|
|
339
|
+
const thetaSweep = AngleSweep.createStartEndRadians(theta0Radians, theta1Radians);
|
|
340
|
+
const phiSweep = AngleSweep.createStartEndRadians(phi0Radians, phi1Radians);
|
|
341
|
+
const range = Range3d.createNull(result);
|
|
342
|
+
const xyz = Point3d.create();
|
|
343
|
+
if (thetaSweep.isFullCircle && phiSweep.isFullLatitudeSweep) {
|
|
344
|
+
// full sphere, no trimming -- build directly
|
|
345
|
+
range.extendPoint(center);
|
|
346
|
+
range.expandInPlace(Math.abs(radius));
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
const sphere = new SphereImplicit(radius);
|
|
350
|
+
// construct range for ORIGIN CENTERED sphere ...
|
|
351
|
+
const pi = Math.PI;
|
|
352
|
+
const piOver2 = 0.5 * Math.PI;
|
|
353
|
+
let phi, theta;
|
|
354
|
+
// 6 candidate interior extreme points on equator and 0, 90 degree meridians
|
|
355
|
+
for (const thetaPhi of [
|
|
356
|
+
[0.0, 0.0],
|
|
357
|
+
[pi, 0.0],
|
|
358
|
+
[piOver2, 0.0],
|
|
359
|
+
[-piOver2, 0.0],
|
|
360
|
+
[theta0Radians, piOver2],
|
|
361
|
+
[theta0Radians, -piOver2]
|
|
362
|
+
]) {
|
|
363
|
+
theta = thetaPhi[0];
|
|
364
|
+
phi = thetaPhi[1];
|
|
365
|
+
if (thetaSweep.isRadiansInSweep(theta) && phiSweep.isRadiansInSweep(phi))
|
|
366
|
+
range.extendPoint(sphere.evaluateThetaPhi(theta, phi, xyz));
|
|
367
|
+
}
|
|
368
|
+
// 4 boundary curves, each with 3 components ...
|
|
369
|
+
// BUT: phi should not extend beyond poles. Hence z extremes on constant theta curve will never be different from z of constant phi curve or of poles as tested above.
|
|
370
|
+
const axisRange = Range1d.createNull();
|
|
371
|
+
const cosPhi0 = Math.cos(phi0Radians);
|
|
372
|
+
const cosPhi1 = Math.cos(phi1Radians);
|
|
373
|
+
const sinPhi0 = Math.sin(phi0Radians);
|
|
374
|
+
const sinPhi1 = Math.sin(phi1Radians);
|
|
375
|
+
const trigForm = new SineCosinePolynomial(0, 0, 0);
|
|
376
|
+
// constant phi curves at phi0 and phi1
|
|
377
|
+
for (const cosPhi of [cosPhi0, cosPhi1]) {
|
|
378
|
+
trigForm.set(0, cosPhi * radius, 0);
|
|
379
|
+
trigForm.rangeInSweep(thetaSweep, axisRange);
|
|
380
|
+
range.extendXOnly(axisRange.low);
|
|
381
|
+
range.extendXOnly(axisRange.high);
|
|
382
|
+
trigForm.set(0, 0, cosPhi * radius);
|
|
383
|
+
trigForm.rangeInSweep(thetaSweep, axisRange);
|
|
384
|
+
range.extendYOnly(axisRange.low);
|
|
385
|
+
range.extendYOnly(axisRange.high);
|
|
386
|
+
}
|
|
387
|
+
range.extendZOnly(sinPhi0 * radius);
|
|
388
|
+
range.extendZOnly(sinPhi1 * radius);
|
|
389
|
+
// constant theta curves as theta0 and theta1:
|
|
390
|
+
for (const thetaRadians of [theta0Radians, theta1Radians]) {
|
|
391
|
+
const cosThetaR = Math.cos(thetaRadians) * radius;
|
|
392
|
+
const sinThetaR = Math.sin(thetaRadians) * radius;
|
|
393
|
+
trigForm.set(0, cosThetaR, 0);
|
|
394
|
+
trigForm.rangeInSweep(phiSweep, axisRange);
|
|
395
|
+
range.extendXOnly(axisRange.low);
|
|
396
|
+
range.extendXOnly(axisRange.high);
|
|
397
|
+
trigForm.set(0, sinThetaR, 0);
|
|
398
|
+
trigForm.rangeInSweep(phiSweep, axisRange);
|
|
399
|
+
range.extendYOnly(axisRange.low);
|
|
400
|
+
range.extendYOnly(axisRange.high);
|
|
401
|
+
}
|
|
402
|
+
range.cloneTranslated(center, range);
|
|
403
|
+
}
|
|
404
|
+
return range;
|
|
405
|
+
}
|
|
406
|
+
/** Compute intersections with a ray.
|
|
407
|
+
* * Return the number of intersections
|
|
408
|
+
* * Fill any combinations of arrays of
|
|
409
|
+
* * rayFractions = fractions along the ray
|
|
410
|
+
* * xyz = xyz intersection coordinates points in space
|
|
411
|
+
* * thetaPhiRadians = sphere longitude and latitude in radians.
|
|
412
|
+
* * For each optional array, caller must of course initialize an array (usually empty)
|
|
413
|
+
*/
|
|
414
|
+
static intersectSphereRay(center, radius, ray, rayFractions, xyz, thetaPhiRadians) {
|
|
415
|
+
const vx = ray.origin.x - center.x;
|
|
416
|
+
const vy = ray.origin.y - center.y;
|
|
417
|
+
const vz = ray.origin.z - center.z;
|
|
418
|
+
const ux = ray.direction.x;
|
|
419
|
+
const uy = ray.direction.y;
|
|
420
|
+
const uz = ray.direction.z;
|
|
421
|
+
const a0 = Geometry.hypotenuseSquaredXYZ(vx, vy, vz) - radius * radius;
|
|
422
|
+
const a1 = 2.0 * Geometry.dotProductXYZXYZ(ux, uy, uz, vx, vy, vz);
|
|
423
|
+
const a2 = Geometry.hypotenuseSquaredXYZ(ux, uy, uz);
|
|
424
|
+
const parameters = Degree2PowerPolynomial.solveQuadratic(a2, a1, a0);
|
|
425
|
+
if (rayFractions !== undefined)
|
|
426
|
+
rayFractions.length = 0;
|
|
427
|
+
if (xyz !== undefined)
|
|
428
|
+
xyz.length = 0;
|
|
429
|
+
if (thetaPhiRadians !== undefined)
|
|
430
|
+
thetaPhiRadians.length = 0;
|
|
431
|
+
if (parameters === undefined) {
|
|
432
|
+
return 0;
|
|
433
|
+
}
|
|
434
|
+
const sphere = new SphereImplicit(radius);
|
|
435
|
+
if (rayFractions !== undefined)
|
|
436
|
+
for (const f of parameters)
|
|
437
|
+
rayFractions.push(f);
|
|
438
|
+
if (xyz !== undefined || thetaPhiRadians !== undefined) {
|
|
439
|
+
for (const f of parameters) {
|
|
440
|
+
const point = ray.fractionToPoint(f);
|
|
441
|
+
if (xyz !== undefined)
|
|
442
|
+
xyz.push(point);
|
|
443
|
+
if (thetaPhiRadians !== undefined) {
|
|
444
|
+
const data = sphere.xyzToThetaPhiR(point);
|
|
445
|
+
thetaPhiRadians.push(LongitudeLatitudeNumber.createRadians(data.thetaRadians, data.phiRadians));
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return parameters.length;
|
|
450
|
+
}
|
|
451
|
+
// public intersectRay(ray: Ray3d, maxHit: number): {rayFractions: number, points: Point3d} {
|
|
452
|
+
// const q = new Degree2PowerPolynomial();
|
|
453
|
+
// // Ray is (origin.x + s * direction.x, etc)
|
|
454
|
+
// // squared distance from origin is (origin.x + s*direction.x)^2 + etc
|
|
455
|
+
// // sphere radius in local system is 1.
|
|
456
|
+
// q.addSquaredLinearTerm(ray.origin.x, ray.direction.x);
|
|
457
|
+
// q.addSquaredLinearTerm(ray.origin.y, ray.direction.y);
|
|
458
|
+
// q.addSquaredLinearTerm(ray.origin.z, ray.direction.z);
|
|
459
|
+
// q.addConstant(-this.radius * this.radius);
|
|
460
|
+
// let ss = [];
|
|
461
|
+
// let n = q.realRoots(ss);
|
|
462
|
+
// if (n > maxHit)
|
|
463
|
+
// n = maxHit;
|
|
464
|
+
// let rayFractions;
|
|
465
|
+
// let points;
|
|
466
|
+
// for (let i = 0; i < n; i++) {
|
|
467
|
+
// rayFractions[i] = ss[i];
|
|
468
|
+
// points[i] = Point3d. // What is the equivalent of FromSumOf in TS?
|
|
469
|
+
// }
|
|
470
|
+
/** Compute the point on a sphere at angular coordinates.
|
|
471
|
+
* @param thetaRadians latitude angle
|
|
472
|
+
* @param phiRadians longitude angle
|
|
473
|
+
*/
|
|
474
|
+
evaluateThetaPhi(thetaRadians, phiRadians, result) {
|
|
475
|
+
const rc = this.radius * Math.cos(thetaRadians);
|
|
476
|
+
const rs = this.radius * Math.sin(thetaRadians);
|
|
477
|
+
const cosPhi = Math.cos(phiRadians);
|
|
478
|
+
const sinPhi = Math.sin(phiRadians);
|
|
479
|
+
return Point3d.create(rc * cosPhi, rs * cosPhi, this.radius * sinPhi, result);
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* * convert radians to xyz on unit sphere
|
|
483
|
+
* * Note that there is no radius used -- implicitly radius is 1
|
|
484
|
+
* * Evaluation is always to a preallocated xyz.
|
|
485
|
+
*/
|
|
486
|
+
static radiansToUnitSphereXYZ(thetaRadians, phiRadians, xyz) {
|
|
487
|
+
const cosTheta = Math.cos(thetaRadians);
|
|
488
|
+
const sinTheta = Math.sin(thetaRadians);
|
|
489
|
+
const cosPhi = Math.cos(phiRadians);
|
|
490
|
+
const sinPhi = Math.sin(phiRadians);
|
|
491
|
+
xyz.x = cosTheta * cosPhi;
|
|
492
|
+
xyz.y = sinTheta * cosPhi;
|
|
493
|
+
xyz.z = sinPhi;
|
|
494
|
+
}
|
|
495
|
+
/** Compute the derivatives with respect to spherical angles.
|
|
496
|
+
* @param thetaRadians latitude angle
|
|
497
|
+
* @param phiRadians longitude angle
|
|
498
|
+
*/
|
|
499
|
+
evaluateDerivativesThetaPhi(thetaRadians, phiRadians, dxdTheta, dxdPhi) {
|
|
500
|
+
const rc = this.radius * Math.cos(thetaRadians);
|
|
501
|
+
const rs = this.radius * Math.sin(thetaRadians);
|
|
502
|
+
const cosPhi = Math.cos(phiRadians);
|
|
503
|
+
const sinPhi = Math.sin(phiRadians);
|
|
504
|
+
Vector3d.create(-rs * cosPhi, rc * cosPhi, 0.0, dxdTheta);
|
|
505
|
+
Vector3d.create(-rc * sinPhi, -rs * sinPhi, this.radius * cosPhi, dxdPhi);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
/** AnalyticRoots has static methods for solving quadratic, cubic, and quartic equations.
|
|
509
|
+
* @internal
|
|
510
|
+
*
|
|
511
|
+
*/
|
|
512
|
+
export class AnalyticRoots {
|
|
513
|
+
/** Absolute zero test with a tolerance that has worked well for the analytic root use case . . . */
|
|
514
|
+
static isZero(x) {
|
|
515
|
+
return Math.abs(x) < this._EQN_EPS;
|
|
516
|
+
}
|
|
517
|
+
/** Without actually doing a division, test if (x/y) is small.
|
|
518
|
+
* @param x numerator
|
|
519
|
+
* @param y denominator
|
|
520
|
+
* @param absTol absolute tolerance
|
|
521
|
+
* @param relTol relative tolerance
|
|
522
|
+
*/
|
|
523
|
+
static isSmallRatio(x, y, absTol = 1.0e-9, relTol = 8.0e-16) {
|
|
524
|
+
return Math.abs(x) <= absTol || Math.abs(x) < relTol * Math.abs(y);
|
|
525
|
+
}
|
|
526
|
+
/** Return the (real, signed) principal cube root of x */
|
|
527
|
+
static cbrt(x) {
|
|
528
|
+
return ((x) > 0.0
|
|
529
|
+
? Math.pow((x), 1.0 / 3.0)
|
|
530
|
+
: ((x) < 0.0
|
|
531
|
+
? -Math.pow(-(x), 1.0 / 3.0)
|
|
532
|
+
: 0.0));
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Try to divide `numerator/denominator` and place the result (or defaultValue) in `values[offset]`
|
|
536
|
+
* @param values array of values. `values[offset]` will be replaced.
|
|
537
|
+
* @param numerator numerator for division.
|
|
538
|
+
* @param denominator denominator for division.
|
|
539
|
+
* @param defaultValue value to save if denominator is too small to divide.
|
|
540
|
+
* @param offset index of value to replace.
|
|
541
|
+
*/
|
|
542
|
+
static safeDivide(values, numerator, denominator, defaultValue = 0.0, offset) {
|
|
543
|
+
if (Math.abs(denominator) > (this._safeDivideFactor * Math.abs(numerator))) {
|
|
544
|
+
values[offset] = numerator / denominator;
|
|
545
|
+
return true;
|
|
546
|
+
}
|
|
547
|
+
values[offset] = defaultValue;
|
|
548
|
+
return false;
|
|
549
|
+
}
|
|
550
|
+
// Used in NewtonMethod for testing if a root has been adjusted past its bounding region
|
|
551
|
+
static checkRootProximity(roots, i) {
|
|
552
|
+
if (i === 0) { // Case 1: Beginning Root (check root following it)
|
|
553
|
+
return roots.atUncheckedIndex(i) < roots.atUncheckedIndex(i + 1);
|
|
554
|
+
}
|
|
555
|
+
else if (i > 0 && i + 1 < roots.length) { // Case 2: Middle Root (check roots before and after)
|
|
556
|
+
return (roots.atUncheckedIndex(i) > roots.atUncheckedIndex(i - 1)) && (roots.atUncheckedIndex(i) < roots.atUncheckedIndex(i + 1));
|
|
557
|
+
}
|
|
558
|
+
else { // Case 3: End root (check preceding root)
|
|
559
|
+
return (roots.atUncheckedIndex(i) > roots.atUncheckedIndex(i - 1));
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
static newtonMethodAdjustment(coffs, root, degree) {
|
|
563
|
+
let p = coffs[degree];
|
|
564
|
+
let q = 0.0;
|
|
565
|
+
for (let i = degree - 1; i >= 0; i--) {
|
|
566
|
+
q = p + root * q;
|
|
567
|
+
p = coffs[i] + root * p;
|
|
568
|
+
}
|
|
569
|
+
if (Math.abs(q) >= 1.0e-14 * (1.0 + Math.abs(root))) {
|
|
570
|
+
return p / q;
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
573
|
+
}
|
|
574
|
+
static improveRoots(coffs, degree, roots, restrictOrderChanges) {
|
|
575
|
+
const relTol = 1.0e-10;
|
|
576
|
+
// Loop through each root
|
|
577
|
+
for (let i = 0; i < roots.length; i++) {
|
|
578
|
+
let dx = this.newtonMethodAdjustment(coffs, roots.atUncheckedIndex(i), degree);
|
|
579
|
+
if (dx === undefined || dx === 0.0)
|
|
580
|
+
continue; // skip if newton step had divide by zero.
|
|
581
|
+
const originalValue = roots.atUncheckedIndex(i);
|
|
582
|
+
let counter = 0;
|
|
583
|
+
let convergenceCounter = 0;
|
|
584
|
+
// Loop through applying changes to found root until dx is diminished or counter is hit
|
|
585
|
+
while (dx !== undefined && dx !== 0.0 && (counter < 12)) {
|
|
586
|
+
// consider it converged if two successive iterations satisfy the (not too demanding) tolerance.
|
|
587
|
+
if (Math.abs(dx) < relTol * (1.0 + Math.abs(roots.atUncheckedIndex(i)))) {
|
|
588
|
+
if (++convergenceCounter > 1)
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
convergenceCounter = 0;
|
|
593
|
+
}
|
|
594
|
+
const rootDX = roots.atUncheckedIndex(i) - dx;
|
|
595
|
+
roots.reassign(i, rootDX);
|
|
596
|
+
// If root is thrown past one of its neighboring roots, unstable condition is assumed.. revert
|
|
597
|
+
// to originally found root
|
|
598
|
+
if (restrictOrderChanges && !this.checkRootProximity(roots, i)) {
|
|
599
|
+
roots.reassign(i, originalValue);
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
dx = this.newtonMethodAdjustment(coffs, roots.atUncheckedIndex(i), degree);
|
|
603
|
+
counter++;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Append (if defined) value to results.
|
|
609
|
+
* @param value optional value to append
|
|
610
|
+
* @param results growing array
|
|
611
|
+
*/
|
|
612
|
+
static appendSolution(value, results) {
|
|
613
|
+
if (value !== undefined) {
|
|
614
|
+
results.push(value);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Append 2 solutions -- note that both are required args, no option of omitting as in single solution case
|
|
619
|
+
* @param value1
|
|
620
|
+
* @param value2
|
|
621
|
+
* @param results
|
|
622
|
+
*/
|
|
623
|
+
static append2Solutions(valueA, valueB, results) {
|
|
624
|
+
results.push(valueA);
|
|
625
|
+
results.push(valueB);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* If `co/c1` is a safe division, append it to the values array.
|
|
629
|
+
* @param c0 numerator
|
|
630
|
+
* @param c1 denominator
|
|
631
|
+
* @param values array to expand
|
|
632
|
+
*/
|
|
633
|
+
static appendLinearRoot(c0, c1, values) {
|
|
634
|
+
AnalyticRoots.appendSolution(Geometry.conditionalDivideFraction(-c0, c1), values);
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* * Compute the mean of all the entries in `data`
|
|
638
|
+
* * Return the data value that is farthest away
|
|
639
|
+
*/
|
|
640
|
+
static mostDistantFromMean(data) {
|
|
641
|
+
if (!data || data.length === 0)
|
|
642
|
+
return 0;
|
|
643
|
+
let a = 0.0; // to become the sum and finally the average.
|
|
644
|
+
for (let i = 0; i < data.length; i++)
|
|
645
|
+
a += data.atUncheckedIndex(i);
|
|
646
|
+
a /= data.length;
|
|
647
|
+
let dMax = 0.0;
|
|
648
|
+
let result = data.atUncheckedIndex(0);
|
|
649
|
+
for (let i = 0; i < data.length; i++) {
|
|
650
|
+
const d = Math.abs(data.atUncheckedIndex(i) - a);
|
|
651
|
+
if (d > dMax) {
|
|
652
|
+
dMax = d;
|
|
653
|
+
result = data.atUncheckedIndex(i);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return result;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Append 0, 1, or 2 solutions of a quadratic to the values array.
|
|
660
|
+
* @param c array of coefficients for quadratic `c[0] + c[1] * x + c[2] * x*x`
|
|
661
|
+
* @param values array to be expanded.
|
|
662
|
+
*/
|
|
663
|
+
static appendQuadraticRoots(c, values) {
|
|
664
|
+
// Normal form: x^2 + 2px + q = 0
|
|
665
|
+
const divFactor = Geometry.conditionalDivideFraction(1.0, c[2]);
|
|
666
|
+
if (!divFactor) {
|
|
667
|
+
this.appendLinearRoot(c[0], c[1], values);
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
const p = 0.5 * c[1] * divFactor;
|
|
671
|
+
const q = c[0] * divFactor;
|
|
672
|
+
const D = p * p - q;
|
|
673
|
+
if (this.isZero(D)) {
|
|
674
|
+
this.appendSolution(-p, values);
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
else if (D < 0) {
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
else if (D > 0) {
|
|
681
|
+
const sqrt_D = Math.sqrt(D);
|
|
682
|
+
this.append2Solutions(sqrt_D - p, -sqrt_D - p, values);
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
/** Add `a` to the constant term. */
|
|
688
|
+
static addConstant(value, data) {
|
|
689
|
+
for (let i = 0; i < data.length; i++)
|
|
690
|
+
data.reassign(i, data.atUncheckedIndex(i) + value);
|
|
691
|
+
}
|
|
692
|
+
static signedCubeRoot(y) {
|
|
693
|
+
if (y >= 0.0)
|
|
694
|
+
return Math.pow(y, 1.0 / 3.0);
|
|
695
|
+
return -Math.pow(-y, 1.0 / 3.0);
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* RWD Nickalls Cubic solution
|
|
699
|
+
* The Mathematical Gazette (1993) (vol 77) pp 354-359
|
|
700
|
+
* * ASSUME a is nonzero.
|
|
701
|
+
*/
|
|
702
|
+
// Solve full cubic ASSUMING a3 is nonzero.
|
|
703
|
+
static appendFullCubicSolutions(a, b, c, d, result) {
|
|
704
|
+
const q = b * b - 3.0 * a * c;
|
|
705
|
+
const aa = a * a;
|
|
706
|
+
const delta2 = q / (9.0 * aa);
|
|
707
|
+
const xN = -b / (3.0 * a);
|
|
708
|
+
const yN = d + xN * (c + xN * (b + xN * a));
|
|
709
|
+
const yN2 = yN * yN;
|
|
710
|
+
const h2 = 4.0 * a * a * delta2 * delta2 * delta2;
|
|
711
|
+
const discriminant = yN2 - h2;
|
|
712
|
+
if (discriminant > 0) {
|
|
713
|
+
// 1 real root
|
|
714
|
+
const r = Math.sqrt(discriminant);
|
|
715
|
+
const f = 0.5 / a;
|
|
716
|
+
result.push(xN + this.signedCubeRoot(f * (-yN + r)) + this.signedCubeRoot(f * (-yN - r)));
|
|
717
|
+
}
|
|
718
|
+
else if (discriminant < 0) {
|
|
719
|
+
// 3 real roots
|
|
720
|
+
let h = Math.sqrt(h2);
|
|
721
|
+
// I don't see comment in Nickalls about sign of h -- but this sign change is needed ...
|
|
722
|
+
if (a < 0)
|
|
723
|
+
h = -h;
|
|
724
|
+
// sign of h?
|
|
725
|
+
const thetaRadians = Math.acos(-yN / h) / 3.0;
|
|
726
|
+
const g = 2.0 * Math.sqrt(delta2);
|
|
727
|
+
const shift = 2.0 * Math.PI / 3.0;
|
|
728
|
+
result.push(xN + g * Math.cos(thetaRadians));
|
|
729
|
+
result.push(xN + g * Math.cos(thetaRadians + shift));
|
|
730
|
+
result.push(xN + g * Math.cos(thetaRadians - shift));
|
|
731
|
+
}
|
|
732
|
+
else {
|
|
733
|
+
// NOTE: The double-root case is not toleranced.
|
|
734
|
+
// double root + single root
|
|
735
|
+
const delta = this.signedCubeRoot(0.5 * yN / a);
|
|
736
|
+
const minMaxRoot = xN + delta;
|
|
737
|
+
result.push(xN - 2 * delta);
|
|
738
|
+
result.push(minMaxRoot);
|
|
739
|
+
result.push(minMaxRoot);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
/* return roots of a cubic c0 + c1 *x + c2 * x^2 + c2 * x3.
|
|
743
|
+
* In the usual case where c0 is non-zero, there are either 1 or 3 roots.
|
|
744
|
+
* But if c0 is zero the (0, 1, or 2) roots of the lower order equation
|
|
745
|
+
*/
|
|
746
|
+
/*
|
|
747
|
+
private static _appendCubicRootsUnsorted(c: Float64Array | number[], results: GrowableFloat64Array) {
|
|
748
|
+
let sq_A: number;
|
|
749
|
+
let p: number;
|
|
750
|
+
let q: number;
|
|
751
|
+
|
|
752
|
+
// normal form: x^3 + Ax^2 + Bx + C = 0
|
|
753
|
+
|
|
754
|
+
const scaleFactor = Geometry.conditionalDivideFraction(1.0, c[3]);
|
|
755
|
+
if (!scaleFactor) {
|
|
756
|
+
this.appendQuadraticRoots(c, results);
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
// It is a real cubic. There MUST be at least one real solution . . .
|
|
760
|
+
const A: number = c[2] * scaleFactor;
|
|
761
|
+
const B: number = c[1] * scaleFactor;
|
|
762
|
+
const C: number = c[0] * scaleFactor;
|
|
763
|
+
|
|
764
|
+
// substitute x = y - A/3 to eliminate quadric term:
|
|
765
|
+
// f = y^3 +3py + 2q = 0
|
|
766
|
+
// f' = 3y^2 + p
|
|
767
|
+
// local min/max at Y = +-sqrt (-p)
|
|
768
|
+
// f(+Y) = -p sqrt(-p) + 3p sqrt (-p) + 2q = 2 p sqrt (-p) + 2q
|
|
769
|
+
sq_A = A * A;
|
|
770
|
+
p = (3.0 * B - sq_A) / 9.0;
|
|
771
|
+
q = 1.0 / 2 * (2.0 / 27 * A * sq_A - 1.0 / 3 * A * B + C);
|
|
772
|
+
|
|
773
|
+
// Use Cardano formula
|
|
774
|
+
const cb_p: number = p * p * p;
|
|
775
|
+
const D: number = q * q + cb_p;
|
|
776
|
+
const origin = A / (-3.0);
|
|
777
|
+
if (D >= 0.0 && this.isZero(D)) {
|
|
778
|
+
if (this.isZero(q)) {
|
|
779
|
+
// One triple solution
|
|
780
|
+
results.push(origin);
|
|
781
|
+
results.push(origin);
|
|
782
|
+
results.push(origin);
|
|
783
|
+
return;
|
|
784
|
+
} else {
|
|
785
|
+
// One single and one double solution
|
|
786
|
+
const u = this.cbrt(-q);
|
|
787
|
+
if (u < 0) {
|
|
788
|
+
results.push(origin + 2 * u);
|
|
789
|
+
results.push(origin - u);
|
|
790
|
+
results.push(origin - u);
|
|
791
|
+
return;
|
|
792
|
+
} else {
|
|
793
|
+
results.push(origin - u);
|
|
794
|
+
results.push(origin - u);
|
|
795
|
+
results.push(origin + 2 * u);
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
} else if (D <= 0) { // three real solutions
|
|
800
|
+
const phi = 1.0 / 3 * Math.acos(-q / Math.sqrt(-cb_p));
|
|
801
|
+
const t = 2 * Math.sqrt(-p);
|
|
802
|
+
results.push(origin + t * Math.cos(phi));
|
|
803
|
+
results.push(origin - t * Math.cos(phi + Math.PI / 3));
|
|
804
|
+
results.push(origin - t * Math.cos(phi - Math.PI / 3));
|
|
805
|
+
this.improveRoots(c, 3, results, false);
|
|
806
|
+
|
|
807
|
+
return;
|
|
808
|
+
} else { // One real solution
|
|
809
|
+
const sqrt_D = Math.sqrt(D);
|
|
810
|
+
const u = this.cbrt(sqrt_D - q);
|
|
811
|
+
const v = -(this.cbrt(sqrt_D + q));
|
|
812
|
+
results.push(origin + u + v);
|
|
813
|
+
this.improveRoots(c, 3, results, false);
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
*/
|
|
818
|
+
/** Compute roots of cubic 'c[0] + c[1] * x + c[2] * x^2 + c[3] * x^3 */
|
|
819
|
+
static appendCubicRoots(c, results) {
|
|
820
|
+
if (Geometry.conditionalDivideCoordinate(1.0, c[3]) !== undefined) {
|
|
821
|
+
this.appendFullCubicSolutions(c[3], c[2], c[1], c[0], results);
|
|
822
|
+
// EDL April 5, 2020 replace classic GraphicsGems solver by RWDNickalls.
|
|
823
|
+
// Don't know if improveRoots is needed.
|
|
824
|
+
// Breaks in AnalyticRoots.test.ts checkQuartic suggest it indeed converts many e-16 errors to zero.
|
|
825
|
+
// e-13 cases are unaffected
|
|
826
|
+
this.improveRoots(c, 3, results, false);
|
|
827
|
+
}
|
|
828
|
+
else {
|
|
829
|
+
this.appendQuadraticRoots(c, results);
|
|
830
|
+
}
|
|
831
|
+
// this.appendCubicRootsUnsorted(c, results);
|
|
832
|
+
results.sort();
|
|
833
|
+
}
|
|
834
|
+
/** Compute roots of quartic 'c[0] + c[1] * x + c[2] * x^2 + c[3] * x^3 + c[4] * x^4 */
|
|
835
|
+
static appendQuarticRoots(c, results) {
|
|
836
|
+
const coffs = new Float64Array(4); // at various times .. coefficients of quadratic an cubic intermediates.
|
|
837
|
+
let u;
|
|
838
|
+
let v;
|
|
839
|
+
// normal form: x^4 + Ax^3 + Bx^2 + Cx + D = 0
|
|
840
|
+
const coffScale = new Float64Array(1);
|
|
841
|
+
if (!this.safeDivide(coffScale, 1.0, c[4], 0.0, 0)) {
|
|
842
|
+
this.appendCubicRoots(c, results);
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
const A = c[3] * coffScale[0];
|
|
846
|
+
const B = c[2] * coffScale[0];
|
|
847
|
+
const C = c[1] * coffScale[0];
|
|
848
|
+
const D = c[0] * coffScale[0];
|
|
849
|
+
const origin = -0.25 * A;
|
|
850
|
+
/* substitute x = y - A/4 to eliminate cubic term:
|
|
851
|
+
x^4 + px^2 + qx + r = 0 */
|
|
852
|
+
const sq_A = A * A;
|
|
853
|
+
const p = -3.0 / 8 * sq_A + B;
|
|
854
|
+
const q = 0.125 * sq_A * A - 0.5 * A * B + C;
|
|
855
|
+
const r = -3.0 / 256 * sq_A * sq_A + 1.0 / 16 * sq_A * B - 1.0 / 4 * A * C + D;
|
|
856
|
+
const tempStack = new GrowableFloat64Array();
|
|
857
|
+
if (this.isZero(r)) {
|
|
858
|
+
// no absolute term: y(y^3 + py + q) = 0
|
|
859
|
+
coffs[0] = q;
|
|
860
|
+
coffs[1] = p;
|
|
861
|
+
coffs[2] = 0;
|
|
862
|
+
coffs[3] = 1;
|
|
863
|
+
this.appendCubicRoots(coffs, results);
|
|
864
|
+
results.push(0); // APPLY ORIGIN ....
|
|
865
|
+
this.addConstant(origin, results);
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
else {
|
|
869
|
+
// Solve the resolvent cubic
|
|
870
|
+
coffs[0] = 1.0 / 2 * r * p - 1.0 / 8 * q * q;
|
|
871
|
+
coffs[1] = -r;
|
|
872
|
+
coffs[2] = -1.0 / 2 * p;
|
|
873
|
+
coffs[3] = 1;
|
|
874
|
+
this.appendCubicRoots(coffs, tempStack);
|
|
875
|
+
const z = this.mostDistantFromMean(tempStack);
|
|
876
|
+
// ... to build two quadric equations
|
|
877
|
+
u = z * z - r;
|
|
878
|
+
v = 2 * z - p;
|
|
879
|
+
if (this.isSmallRatio(u, r)) {
|
|
880
|
+
u = 0;
|
|
881
|
+
}
|
|
882
|
+
else if (u > 0) {
|
|
883
|
+
u = Math.sqrt(u);
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
if (this.isSmallRatio(v, p)) {
|
|
889
|
+
v = 0;
|
|
890
|
+
}
|
|
891
|
+
else if (v > 0) {
|
|
892
|
+
v = Math.sqrt(v);
|
|
893
|
+
}
|
|
894
|
+
else {
|
|
895
|
+
for (let i = 0; i < tempStack.length; i++) {
|
|
896
|
+
results.push(tempStack.atUncheckedIndex(i));
|
|
897
|
+
}
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
coffs[0] = z - u;
|
|
901
|
+
coffs[1] = ((q < 0) ? (-v) : (v));
|
|
902
|
+
coffs[2] = 1;
|
|
903
|
+
this.appendQuadraticRoots(coffs, results);
|
|
904
|
+
coffs[0] = z + u;
|
|
905
|
+
coffs[1] = ((q < 0) ? (v) : (-v));
|
|
906
|
+
coffs[2] = 1;
|
|
907
|
+
this.appendQuadraticRoots(coffs, results);
|
|
908
|
+
}
|
|
909
|
+
// substitute
|
|
910
|
+
this.addConstant(origin, results);
|
|
911
|
+
results.sort();
|
|
912
|
+
this.improveRoots(c, 4, results, true);
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
static appendCosSinRadians(c, s, cosValues, sinValues, radiansValues) {
|
|
916
|
+
if (cosValues)
|
|
917
|
+
cosValues.push(c);
|
|
918
|
+
if (sinValues)
|
|
919
|
+
sinValues.push(s);
|
|
920
|
+
if (radiansValues)
|
|
921
|
+
radiansValues.push(Math.atan2(s, c));
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* * Solve the simultaneous equations in variables`c` and`s`:
|
|
925
|
+
* * A line: `alpha + beta*c + gamma*s = 0`
|
|
926
|
+
* * The unit circle 'c*c + s*s = 1`
|
|
927
|
+
* * Solution values are returned as 0, 1, or 2(c, s) pairs
|
|
928
|
+
* * Return value indicates one of these solution states:
|
|
929
|
+
* * -2 -- all coefficients identically 0. The entire c, s plane-- and therefore the entire unit circle-- is a solution.
|
|
930
|
+
* * -1 -- beta, gamma are zero, alpha is not.There is no line defined.There are no solutions.
|
|
931
|
+
* * 0 -- the line is well defined, but passes completely outside the unit circle.
|
|
932
|
+
* * In this case, (c1, s1) is the circle point closest to the line and(c2, s2) is the line point closest to the circle.
|
|
933
|
+
* * 1 -- the line is tangent to the unit circle.
|
|
934
|
+
* * Tangency is determined by tolerances, which calls a "close approach" point a tangency.
|
|
935
|
+
* * (c1, s1) is the closest circle point
|
|
936
|
+
* * (c2, s2) is the line point.
|
|
937
|
+
* * 2 -- two simple intersections.
|
|
938
|
+
* @param alpha constant coefficient on line
|
|
939
|
+
* @param beta x cosine coefficient on line
|
|
940
|
+
* @param gamma y sine coefficient on line
|
|
941
|
+
* @param relTol relative tolerance for tangencies
|
|
942
|
+
* @param cosValues (caller allocated) array to receive solution `c` values
|
|
943
|
+
* @param sinValues (caller allocated) array to receive solution `s` values
|
|
944
|
+
* @param radiansValues (caller allocated) array to receive solution radians values.
|
|
945
|
+
*/
|
|
946
|
+
static appendImplicitLineUnitCircleIntersections(alpha, beta, gamma, cosValues, sinValues, radiansValues, relTol = 1.0e-14) {
|
|
947
|
+
let twoTol;
|
|
948
|
+
const delta2 = beta * beta + gamma * gamma;
|
|
949
|
+
const alpha2 = alpha * alpha;
|
|
950
|
+
let solutionType = 0;
|
|
951
|
+
if (relTol < 0.0) {
|
|
952
|
+
twoTol = 0.0;
|
|
953
|
+
}
|
|
954
|
+
else {
|
|
955
|
+
twoTol = 2.0 * relTol;
|
|
956
|
+
}
|
|
957
|
+
if (delta2 <= 0.0) {
|
|
958
|
+
solutionType = (alpha === 0) ? -2 : -1;
|
|
959
|
+
}
|
|
960
|
+
else {
|
|
961
|
+
const lambda = -alpha / delta2;
|
|
962
|
+
const a2 = alpha2 / delta2;
|
|
963
|
+
const D2 = 1.0 - a2;
|
|
964
|
+
if (D2 < -twoTol) {
|
|
965
|
+
const delta = Math.sqrt(delta2);
|
|
966
|
+
const iota = (alpha < 0) ? (1.0 / delta) : (-1.0 / delta);
|
|
967
|
+
this.appendCosSinRadians(lambda * beta, lambda * gamma, cosValues, sinValues, radiansValues);
|
|
968
|
+
this.appendCosSinRadians(beta * iota, gamma * iota, cosValues, sinValues, radiansValues);
|
|
969
|
+
solutionType = 0;
|
|
970
|
+
}
|
|
971
|
+
else if (D2 < twoTol) {
|
|
972
|
+
const delta = Math.sqrt(delta2);
|
|
973
|
+
const iota = (alpha < 0) ? (1.0 / delta) : (-1.0 / delta);
|
|
974
|
+
this.appendCosSinRadians(lambda * beta, lambda * gamma, cosValues, sinValues, radiansValues);
|
|
975
|
+
this.appendCosSinRadians(beta * iota, gamma * iota, cosValues, sinValues, radiansValues);
|
|
976
|
+
solutionType = 1;
|
|
977
|
+
}
|
|
978
|
+
else {
|
|
979
|
+
const mu = Math.sqrt(D2 / delta2);
|
|
980
|
+
/* c0,s0 = closest approach of line to origin */
|
|
981
|
+
const c0 = lambda * beta;
|
|
982
|
+
const s0 = lambda * gamma;
|
|
983
|
+
this.appendCosSinRadians(c0 - mu * gamma, s0 + mu * beta, cosValues, sinValues, radiansValues);
|
|
984
|
+
this.appendCosSinRadians(c0 + mu * gamma, s0 - mu * beta, cosValues, sinValues, radiansValues);
|
|
985
|
+
solutionType = 2;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
return solutionType;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
AnalyticRoots._EQN_EPS = 1.0e-9;
|
|
992
|
+
AnalyticRoots._safeDivideFactor = 1.0e-14;
|
|
993
|
+
/**
|
|
994
|
+
* manipulations of polynomials with where `coff[i]` multiplies x^i
|
|
995
|
+
* @internal
|
|
996
|
+
*/
|
|
997
|
+
export class PowerPolynomial {
|
|
998
|
+
/** Evaluate a standard basis polynomial at `x`, with `degree` possibly less than `coff.length` */
|
|
999
|
+
static degreeKnownEvaluate(coff, degree, x) {
|
|
1000
|
+
if (degree < 0) {
|
|
1001
|
+
return 0.0;
|
|
1002
|
+
}
|
|
1003
|
+
let p = coff[degree];
|
|
1004
|
+
for (let i = degree - 1; i >= 0; i--)
|
|
1005
|
+
p = x * p + coff[i];
|
|
1006
|
+
return p;
|
|
1007
|
+
}
|
|
1008
|
+
/** Evaluate the standard basis polynomial of degree `coff.length` at `x` */
|
|
1009
|
+
static evaluate(coff, x) {
|
|
1010
|
+
const degree = coff.length - 1;
|
|
1011
|
+
return this.degreeKnownEvaluate(coff, degree, x);
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* * Accumulate Q*scale into P.Both are treated as full degree.
|
|
1015
|
+
* * (Expect Address exceptions if P is smaller than Q)
|
|
1016
|
+
* * Returns degree of result as determined by comparing trailing coefficients to zero
|
|
1017
|
+
*/
|
|
1018
|
+
static accumulate(coffP, coffQ, scaleQ) {
|
|
1019
|
+
let degreeP = coffP.length - 1;
|
|
1020
|
+
const degreeQ = coffQ.length - 1;
|
|
1021
|
+
for (let i = 0; i <= degreeQ; i++) {
|
|
1022
|
+
coffP[i] += scaleQ * coffQ[i];
|
|
1023
|
+
}
|
|
1024
|
+
while (degreeP >= 0 && coffP[degreeP] === 0.0) {
|
|
1025
|
+
degreeP--;
|
|
1026
|
+
}
|
|
1027
|
+
return degreeP;
|
|
1028
|
+
}
|
|
1029
|
+
/** Zero all coefficients */
|
|
1030
|
+
static zero(coff) {
|
|
1031
|
+
for (let i = 0; i < coff.length; i++) {
|
|
1032
|
+
coff[i] = 0.0;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* manipulation of polynomials with powers of sine and cosine
|
|
1038
|
+
* @internal
|
|
1039
|
+
*/
|
|
1040
|
+
export class TrigPolynomial {
|
|
1041
|
+
/**
|
|
1042
|
+
* Solve a polynomial created from trigonometric condition using
|
|
1043
|
+
* Trig.S, Trig.C, Trig.W. Solution logic includes inferring angular roots
|
|
1044
|
+
* corresponding zero leading coefficients (roots at infinity)
|
|
1045
|
+
* @param coff Coefficients
|
|
1046
|
+
* @param nominalDegree degree of the polynomial under most complex
|
|
1047
|
+
* root case. If there are any zero coefficients up to this degree, a single root
|
|
1048
|
+
* "at infinity" is recorded as its corresponding angular parameter at negative pi/2
|
|
1049
|
+
* @param referenceCoefficient A number which represents the size of coefficients
|
|
1050
|
+
* at various stages of computation. A small fraction of this will be used as a zero
|
|
1051
|
+
* tolerance
|
|
1052
|
+
* @param angles Roots are placed here. Assumed preallocated with adequate size.
|
|
1053
|
+
* @param numRoots Number of roots . Zero roots is possible. (Passed as array of size
|
|
1054
|
+
* one to pass-by-reference)
|
|
1055
|
+
* Returns false if equation is all zeros. This usually means any angle is a solution.
|
|
1056
|
+
*/
|
|
1057
|
+
static solveAngles(coff, nominalDegree, referenceCoefficient, radians) {
|
|
1058
|
+
let maxCoff = Math.abs(referenceCoefficient);
|
|
1059
|
+
let a;
|
|
1060
|
+
radians.length = 0;
|
|
1061
|
+
const relTol = this._smallAngle;
|
|
1062
|
+
for (let i = 0; i <= nominalDegree; i++) {
|
|
1063
|
+
a = Math.abs(coff[i]);
|
|
1064
|
+
if (a > maxCoff) {
|
|
1065
|
+
maxCoff = a;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
const coffTol = relTol * maxCoff;
|
|
1069
|
+
let degree = nominalDegree;
|
|
1070
|
+
while (degree > 0 && (Math.abs(coff[degree]) <= coffTol)) {
|
|
1071
|
+
degree--;
|
|
1072
|
+
}
|
|
1073
|
+
// let status = false;
|
|
1074
|
+
const roots = new GrowableFloat64Array();
|
|
1075
|
+
if (degree === -1) {
|
|
1076
|
+
// Umm. Dunno. Nothing there.
|
|
1077
|
+
// status = false;
|
|
1078
|
+
}
|
|
1079
|
+
else {
|
|
1080
|
+
// status = true;
|
|
1081
|
+
if (degree === 0) {
|
|
1082
|
+
// p(t) is a nonzero constant
|
|
1083
|
+
// No roots, but not degenerate.
|
|
1084
|
+
// status = true;
|
|
1085
|
+
}
|
|
1086
|
+
else if (degree === 1) {
|
|
1087
|
+
// p(t) = coff[1] * t + coff[0]...
|
|
1088
|
+
roots.push(-coff[0] / coff[1]);
|
|
1089
|
+
}
|
|
1090
|
+
else if (degree === 2) {
|
|
1091
|
+
AnalyticRoots.appendQuadraticRoots(coff, roots);
|
|
1092
|
+
}
|
|
1093
|
+
else if (degree === 3) {
|
|
1094
|
+
AnalyticRoots.appendCubicRoots(coff, roots);
|
|
1095
|
+
}
|
|
1096
|
+
else if (degree === 4) {
|
|
1097
|
+
AnalyticRoots.appendQuarticRoots(coff, roots);
|
|
1098
|
+
}
|
|
1099
|
+
else {
|
|
1100
|
+
// TODO: WILL WORK WITH BEZIER SOLVER
|
|
1101
|
+
// status = false;
|
|
1102
|
+
}
|
|
1103
|
+
if (roots.length > 0) {
|
|
1104
|
+
// Each solution t represents an angle with
|
|
1105
|
+
// Math.Cos(theta)=C(t)/W(t), ,sin(theta)=S(t)/W(t)
|
|
1106
|
+
// Division by W has no effect on Atan2 calculations, so we just compute S(t),C(t)
|
|
1107
|
+
for (let i = 0; i < roots.length; i++) {
|
|
1108
|
+
const ss = PowerPolynomial.evaluate(this.S, roots.atUncheckedIndex(i));
|
|
1109
|
+
const cc = PowerPolynomial.evaluate(this.C, roots.atUncheckedIndex(i));
|
|
1110
|
+
radians.push(Math.atan2(ss, cc));
|
|
1111
|
+
}
|
|
1112
|
+
// Each leading zero at the front of the coefficients corresponds to a root at -PI/2.
|
|
1113
|
+
// Only make one entry....
|
|
1114
|
+
// for (int i = degree; i < nominalDegree; i++)
|
|
1115
|
+
if (degree < nominalDegree) {
|
|
1116
|
+
radians.push(-0.5 * Math.PI);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
return radians.length > 0;
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Compute intersections of unit circle `x ^ 2 + y 2 = 1` with general quadric
|
|
1124
|
+
* `axx * x ^ 2 + axy * x * y + ayy * y ^ 2 + ax * x + ay * y + a1 = 0`
|
|
1125
|
+
* Solutions are returned as angles.Sine and Cosine of the angles are the x, y results.
|
|
1126
|
+
* @param axx Coefficient of x ^ 2
|
|
1127
|
+
* @param axy Coefficient of xy
|
|
1128
|
+
* @param ayy Coefficient of y ^ 2
|
|
1129
|
+
* @param ax Coefficient of x
|
|
1130
|
+
* @param ay Coefficient of y
|
|
1131
|
+
* @param a1 Constant coefficient
|
|
1132
|
+
* @param angles solution angles
|
|
1133
|
+
* @param numAngle number of solution angles(Passed as array to make changes to reference)
|
|
1134
|
+
*/
|
|
1135
|
+
static solveUnitCircleImplicitQuadricIntersection(axx, axy, ayy, ax, ay, a1, radians) {
|
|
1136
|
+
const Coffs = new Float64Array(5);
|
|
1137
|
+
PowerPolynomial.zero(Coffs);
|
|
1138
|
+
let degree;
|
|
1139
|
+
if (Geometry.hypotenuseXYZ(axx, axy, ayy) > TrigPolynomial._coefficientRelTol * Geometry.hypotenuseXYZ(ax, ay, a1)) {
|
|
1140
|
+
PowerPolynomial.accumulate(Coffs, this.CW, ax);
|
|
1141
|
+
PowerPolynomial.accumulate(Coffs, this.SW, ay);
|
|
1142
|
+
PowerPolynomial.accumulate(Coffs, this.WW, a1);
|
|
1143
|
+
PowerPolynomial.accumulate(Coffs, this.SS, ayy);
|
|
1144
|
+
PowerPolynomial.accumulate(Coffs, this.CC, axx);
|
|
1145
|
+
PowerPolynomial.accumulate(Coffs, this.SC, axy);
|
|
1146
|
+
degree = 4;
|
|
1147
|
+
}
|
|
1148
|
+
else {
|
|
1149
|
+
PowerPolynomial.accumulate(Coffs, this.C, ax);
|
|
1150
|
+
PowerPolynomial.accumulate(Coffs, this.S, ay);
|
|
1151
|
+
PowerPolynomial.accumulate(Coffs, this.W, a1);
|
|
1152
|
+
degree = 2;
|
|
1153
|
+
}
|
|
1154
|
+
let maxCoff = 0.0;
|
|
1155
|
+
maxCoff = Math.max(maxCoff, Math.abs(axx), Math.abs(ayy), Math.abs(axy), Math.abs(ax), Math.abs(ay), Math.abs(a1));
|
|
1156
|
+
const b = this.solveAngles(Coffs, degree, maxCoff, radians);
|
|
1157
|
+
/*
|
|
1158
|
+
for (const theta of angles) {
|
|
1159
|
+
const c = theta.cos();
|
|
1160
|
+
const s = theta.sin();
|
|
1161
|
+
console.log({
|
|
1162
|
+
angle: theta, co: c, si: s,
|
|
1163
|
+
f: axx * c * c + axy * c * s + ayy * s * s + ax * c + ay * s + a1});
|
|
1164
|
+
} */
|
|
1165
|
+
return b;
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Compute intersections of unit circle x^2 + y 2 = 1 with the ellipse
|
|
1169
|
+
* (x,y) = (cx + ux Math.Cos + vx sin, cy + uy Math.Cos + vy sin)
|
|
1170
|
+
* Solutions are returned as angles in the ellipse space.
|
|
1171
|
+
* @param cx center x
|
|
1172
|
+
* @param cy center y
|
|
1173
|
+
* @param ux 0 degree vector x
|
|
1174
|
+
* @param uy 0 degree vector y
|
|
1175
|
+
* @param vx 90 degree vector x
|
|
1176
|
+
* @param vy 90 degree vector y
|
|
1177
|
+
* @param ellipseRadians solution angles in ellipse parameter space
|
|
1178
|
+
* @param circleRadians solution angles in circle parameter space
|
|
1179
|
+
*/
|
|
1180
|
+
static solveUnitCircleEllipseIntersection(cx, cy, ux, uy, vx, vy, ellipseRadians, circleRadians) {
|
|
1181
|
+
circleRadians.length = 0;
|
|
1182
|
+
const acc = ux * ux + uy * uy;
|
|
1183
|
+
const acs = 2.0 * (ux * vx + uy * vy);
|
|
1184
|
+
const ass = vx * vx + vy * vy;
|
|
1185
|
+
const ac = 2.0 * (ux * cx + uy * cy);
|
|
1186
|
+
const asi = 2.0 * (vx * cx + vy * cy);
|
|
1187
|
+
const a = cx * cx + cy * cy - 1.0;
|
|
1188
|
+
const status = this.solveUnitCircleImplicitQuadricIntersection(acc, acs, ass, ac, asi, a, ellipseRadians);
|
|
1189
|
+
for (const radians of ellipseRadians) {
|
|
1190
|
+
const cc = Math.cos(radians);
|
|
1191
|
+
const ss = Math.sin(radians);
|
|
1192
|
+
const x = cx + ux * cc + vx * ss;
|
|
1193
|
+
const y = cy + uy * cc + vy * ss;
|
|
1194
|
+
circleRadians.push(Math.atan2(y, x));
|
|
1195
|
+
}
|
|
1196
|
+
return status;
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Compute intersections of unit circle x^2 + y 2 = w^2 with the ellipse
|
|
1200
|
+
* (x,y) = (cx + ux Math.Cos + vx sin, cy + uy Math.Cos + vy sin)/ (cw + uw Math.Cos + vw * Math.Sin)
|
|
1201
|
+
* Solutions are returned as angles in the ellipse space.
|
|
1202
|
+
* @param cx center x
|
|
1203
|
+
* @param cy center y
|
|
1204
|
+
* @param cw center w
|
|
1205
|
+
* @param ux 0 degree vector x
|
|
1206
|
+
* @param uy 0 degree vector y
|
|
1207
|
+
* @param uw 0 degree vector w
|
|
1208
|
+
* @param vx 90 degree vector x
|
|
1209
|
+
* @param vy 90 degree vector y
|
|
1210
|
+
* @param vw 90 degree vector w
|
|
1211
|
+
* @param ellipseRadians solution angles in ellipse parameter space
|
|
1212
|
+
* @param circleRadians solution angles in circle parameter space
|
|
1213
|
+
*/
|
|
1214
|
+
static solveUnitCircleHomogeneousEllipseIntersection(cx, cy, cw, ux, uy, uw, vx, vy, vw, ellipseRadians, circleRadians) {
|
|
1215
|
+
circleRadians.length = 0;
|
|
1216
|
+
const acc = ux * ux + uy * uy - uw * uw;
|
|
1217
|
+
const acs = 2.0 * (ux * vx + uy * vy - uw * vw);
|
|
1218
|
+
const ass = vx * vx + vy * vy - vw * vw;
|
|
1219
|
+
const ac = 2.0 * (ux * cx + uy * cy - uw * cw);
|
|
1220
|
+
const asi = 2.0 * (vx * cx + vy * cy - vw * cw);
|
|
1221
|
+
const a = cx * cx + cy * cy - cw * cw;
|
|
1222
|
+
const status = this.solveUnitCircleImplicitQuadricIntersection(acc, acs, ass, ac, asi, a, ellipseRadians);
|
|
1223
|
+
for (const radians of ellipseRadians) {
|
|
1224
|
+
const cc = Math.cos(radians);
|
|
1225
|
+
const ss = Math.sin(radians);
|
|
1226
|
+
const x = cx + ux * cc + vx * ss;
|
|
1227
|
+
const y = cy + uy * cc + vy * ss;
|
|
1228
|
+
circleRadians.push(Math.atan2(y, x));
|
|
1229
|
+
}
|
|
1230
|
+
return status;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
// tolerance for small angle decision.
|
|
1234
|
+
TrigPolynomial._smallAngle = 1.0e-11;
|
|
1235
|
+
/** Standard Basis coefficients for rational sine numerator. */
|
|
1236
|
+
TrigPolynomial.S = Float64Array.from([0.0, 2.0, -2.0]);
|
|
1237
|
+
/** Standard Basis coefficients for rational cosine numerator. */
|
|
1238
|
+
TrigPolynomial.C = Float64Array.from([1.0, -2.0]);
|
|
1239
|
+
/** Standard Basis coefficients for rational denominator. */
|
|
1240
|
+
TrigPolynomial.W = Float64Array.from([1.0, -2.0, 2.0]);
|
|
1241
|
+
/** Standard Basis coefficients for cosine*weight numerator */
|
|
1242
|
+
TrigPolynomial.CW = Float64Array.from([1.0, -4.0, 6.0, -4.0]);
|
|
1243
|
+
/** Standard Basis coefficients for sine*weight numerator */
|
|
1244
|
+
TrigPolynomial.SW = Float64Array.from([0.0, 2.0, -6.0, 8.0, -4.0]);
|
|
1245
|
+
/** Standard Basis coefficients for sine*cosine numerator */
|
|
1246
|
+
TrigPolynomial.SC = Float64Array.from([0.0, 2.0, -6.0, 4.0]);
|
|
1247
|
+
/** Standard Basis coefficients for sine^2 numerator */
|
|
1248
|
+
TrigPolynomial.SS = Float64Array.from([0.0, 0.0, 4.0, -8.0, 4.0]);
|
|
1249
|
+
/** Standard Basis coefficients for cosine^2 numerator */
|
|
1250
|
+
TrigPolynomial.CC = Float64Array.from([1.0, -4.0, 4.0]);
|
|
1251
|
+
/** Standard Basis coefficients for weight^2 */
|
|
1252
|
+
TrigPolynomial.WW = Float64Array.from([1.0, -4.0, 8.0, -8.0, 4.0]);
|
|
1253
|
+
/** Standard Basis coefficients for (Math.Cos^2 - sine^2) numerator */
|
|
1254
|
+
TrigPolynomial.CCminusSS = Float64Array.from([1.0, -4.0, 0.0, 8.0, -4.0]);
|
|
1255
|
+
TrigPolynomial._coefficientRelTol = 1.0e-12;
|
|
1256
|
+
/**
|
|
1257
|
+
* static methods for commonly appearing sets of equations in 2 or 3 variables
|
|
1258
|
+
* @public
|
|
1259
|
+
*/
|
|
1260
|
+
export class SmallSystem {
|
|
1261
|
+
/**
|
|
1262
|
+
* Return true if lines (a0,a1) to (b0, b1) have a simple intersection.
|
|
1263
|
+
* Return the fractional (not xy) coordinates in result.x, result.y
|
|
1264
|
+
* @param a0 start point of line a
|
|
1265
|
+
* @param a1 end point of line a
|
|
1266
|
+
* @param b0 start point of line b
|
|
1267
|
+
* @param b1 end point of line b
|
|
1268
|
+
* @param result point to receive fractional coordinates of intersection. result.x is fraction on line a. result.y is fraction on line b.
|
|
1269
|
+
*/
|
|
1270
|
+
static lineSegment2dXYTransverseIntersectionUnbounded(a0, a1, b0, b1, result) {
|
|
1271
|
+
const ux = a1.x - a0.x;
|
|
1272
|
+
const uy = a1.y - a0.y;
|
|
1273
|
+
const vx = b1.x - b0.x;
|
|
1274
|
+
const vy = b1.y - b0.y;
|
|
1275
|
+
const cx = b0.x - a0.x;
|
|
1276
|
+
const cy = b0.y - a0.y;
|
|
1277
|
+
const uv = Geometry.crossProductXYXY(ux, uy, vx, vy);
|
|
1278
|
+
const cv = Geometry.crossProductXYXY(cx, cy, vx, vy);
|
|
1279
|
+
const cu = Geometry.crossProductXYXY(ux, uy, cx, cy);
|
|
1280
|
+
const s = Geometry.conditionalDivideFraction(cv, uv);
|
|
1281
|
+
const t = Geometry.conditionalDivideFraction(cu, uv);
|
|
1282
|
+
if (s !== undefined && t !== undefined) {
|
|
1283
|
+
result.set(s, -t);
|
|
1284
|
+
return true;
|
|
1285
|
+
}
|
|
1286
|
+
result.set(0, 0);
|
|
1287
|
+
return false;
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
* * (ax0,ay0) to (ax0+ux,ay0+uy) are line A.
|
|
1291
|
+
* * (bx0,by0) to (bx0+vx,by0+vy) are lineB.
|
|
1292
|
+
* * Return true if the lines have a simple intersection.
|
|
1293
|
+
* * Return the fractional (not xy) coordinates in result.x, result.y
|
|
1294
|
+
* @param result point to receive fractional coordinates of intersection. result.x is fraction on line a. result.y is fraction on line b.
|
|
1295
|
+
*/
|
|
1296
|
+
static lineSegmentXYUVTransverseIntersectionUnbounded(ax0, ay0, ux, uy, bx0, by0, vx, vy, result) {
|
|
1297
|
+
const cx = bx0 - ax0;
|
|
1298
|
+
const cy = by0 - ay0;
|
|
1299
|
+
const uv = Geometry.crossProductXYXY(ux, uy, vx, vy);
|
|
1300
|
+
const cv = Geometry.crossProductXYXY(cx, cy, vx, vy);
|
|
1301
|
+
const cu = Geometry.crossProductXYXY(ux, uy, cx, cy);
|
|
1302
|
+
const s = Geometry.conditionalDivideFraction(cv, uv);
|
|
1303
|
+
const t = Geometry.conditionalDivideFraction(cu, uv);
|
|
1304
|
+
if (s !== undefined && t !== undefined) {
|
|
1305
|
+
result.set(s, -t);
|
|
1306
|
+
return true;
|
|
1307
|
+
}
|
|
1308
|
+
result.set(0, 0);
|
|
1309
|
+
return false;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* Return true if lines (a0,a1) to (b0, b1) have a simple intersection using only xy parts
|
|
1313
|
+
* Return the fractional (not xy) coordinates in result.x, result.y
|
|
1314
|
+
* @param a0 start point of line a
|
|
1315
|
+
* @param a1 end point of line a
|
|
1316
|
+
* @param b0 start point of line b
|
|
1317
|
+
* @param b1 end point of line b
|
|
1318
|
+
* @param result point to receive fractional coordinates of intersection. result.x is fraction on line a. result.y is fraction on line b.
|
|
1319
|
+
*/
|
|
1320
|
+
static lineSegment3dXYTransverseIntersectionUnbounded(a0, a1, b0, b1, result) {
|
|
1321
|
+
const ux = a1.x - a0.x;
|
|
1322
|
+
const uy = a1.y - a0.y;
|
|
1323
|
+
const vx = b1.x - b0.x;
|
|
1324
|
+
const vy = b1.y - b0.y;
|
|
1325
|
+
const cx = b0.x - a0.x;
|
|
1326
|
+
const cy = b0.y - a0.y;
|
|
1327
|
+
const uv = Geometry.crossProductXYXY(ux, uy, vx, vy);
|
|
1328
|
+
const cv = Geometry.crossProductXYXY(cx, cy, vx, vy);
|
|
1329
|
+
const cu = Geometry.crossProductXYXY(ux, uy, cx, cy);
|
|
1330
|
+
const s = Geometry.conditionalDivideFraction(cv, uv);
|
|
1331
|
+
const t = Geometry.conditionalDivideFraction(cu, uv);
|
|
1332
|
+
if (s !== undefined && t !== undefined) {
|
|
1333
|
+
result.set(s, -t);
|
|
1334
|
+
return true;
|
|
1335
|
+
}
|
|
1336
|
+
result.set(0, 0);
|
|
1337
|
+
return false;
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Return true if lines (a0,a1) to (b0, b1) have a simple intersection using only xy parts of WEIGHTED 4D Points
|
|
1341
|
+
* Return the fractional (not xy) coordinates in result.x, result.y
|
|
1342
|
+
* @param hA0 homogeneous start point of line a
|
|
1343
|
+
* @param hA1 homogeneous end point of line a
|
|
1344
|
+
* @param hB0 homogeneous start point of line b
|
|
1345
|
+
* @param hB1 homogeneous end point of line b
|
|
1346
|
+
* @param result point to receive fractional coordinates of intersection. result.x is fraction on line a. result.y is fraction on line b.
|
|
1347
|
+
*/
|
|
1348
|
+
static lineSegment3dHXYTransverseIntersectionUnbounded(hA0, hA1, hB0, hB1, result) {
|
|
1349
|
+
// Considering only x,y,w parts....
|
|
1350
|
+
// Point Q along B is (in full homogeneous) `(1-lambda) B0 + lambda 1`
|
|
1351
|
+
// PointQ is colinear with A0,A1 when the determinant det (A0,A1,Q) is zero. (Each column takes xyw parts)
|
|
1352
|
+
const alpha0 = Geometry.tripleProduct(hA0.x, hA1.x, hB0.x, hA0.y, hA1.y, hB0.y, hA0.w, hA1.w, hB0.w);
|
|
1353
|
+
const alpha1 = Geometry.tripleProduct(hA0.x, hA1.x, hB1.x, hA0.y, hA1.y, hB1.y, hA0.w, hA1.w, hB1.w);
|
|
1354
|
+
const fractionB = Geometry.conditionalDivideFraction(-alpha0, alpha1 - alpha0);
|
|
1355
|
+
if (fractionB !== undefined) {
|
|
1356
|
+
const beta0 = Geometry.tripleProduct(hB0.x, hB1.x, hA0.x, hB0.y, hB1.y, hA0.y, hB0.w, hB1.w, hA0.w);
|
|
1357
|
+
const beta1 = Geometry.tripleProduct(hB0.x, hB1.x, hA1.x, hB0.y, hB1.y, hA1.y, hB0.w, hB1.w, hA1.w);
|
|
1358
|
+
const fractionA = Geometry.conditionalDivideFraction(-beta0, beta1 - beta0);
|
|
1359
|
+
if (fractionA !== undefined)
|
|
1360
|
+
return Vector2d.create(fractionA, fractionB, result);
|
|
1361
|
+
}
|
|
1362
|
+
return undefined;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Return the line fraction at which the (homogeneous) line is closest to a space point as viewed in xy only.
|
|
1366
|
+
* @param hA0 homogeneous start point of line a
|
|
1367
|
+
* @param hA1 homogeneous end point of line a
|
|
1368
|
+
* @param spacePoint homogeneous point in space
|
|
1369
|
+
*/
|
|
1370
|
+
static lineSegment3dHXYClosestPointUnbounded(hA0, hA1, spacePoint) {
|
|
1371
|
+
// Considering only x,y,w parts....
|
|
1372
|
+
// weighted difference of (A1 w0 - A0 w1) is (cartesian) tangent vector along the line as viewed.
|
|
1373
|
+
// The perpendicular (pure vector) W = (-y,x) flip is the direction of projection
|
|
1374
|
+
// Point Q along A is (in full homogeneous) `(1-lambda) A0 + lambda 1 A1`
|
|
1375
|
+
// PointQ is colinear with spacePoint and and W when the xyw homogeneous determinant | Q W spacePoint | is zero.
|
|
1376
|
+
const tx = hA1.x * hA0.w - hA0.x * hA1.w;
|
|
1377
|
+
const ty = hA1.y * hA0.w - hA0.y * hA1.w;
|
|
1378
|
+
const det0 = Geometry.tripleProduct(hA0.x, -ty, spacePoint.x, hA0.y, tx, spacePoint.y, hA0.w, 0, spacePoint.w);
|
|
1379
|
+
const det1 = Geometry.tripleProduct(hA1.x, -ty, spacePoint.x, hA1.y, tx, spacePoint.y, hA1.w, 0, spacePoint.w);
|
|
1380
|
+
return Geometry.conditionalDivideFraction(-det0, det1 - det0);
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Return the line fraction at which the line is closest to a space point as viewed in xy only.
|
|
1384
|
+
* @param pointA0 start point
|
|
1385
|
+
* @param pointA1 end point
|
|
1386
|
+
* @param spacePoint homogeneous point in space
|
|
1387
|
+
*/
|
|
1388
|
+
static lineSegment3dXYClosestPointUnbounded(pointA0, pointA1, spacePoint) {
|
|
1389
|
+
// Considering only x,y parts....
|
|
1390
|
+
const ux = pointA1.x - pointA0.x;
|
|
1391
|
+
const uy = pointA1.y - pointA0.y;
|
|
1392
|
+
const uu = ux * ux + uy * uy;
|
|
1393
|
+
const vx = spacePoint.x - pointA0.x;
|
|
1394
|
+
const vy = spacePoint.y - pointA0.y;
|
|
1395
|
+
const uv = ux * vx + uy * vy;
|
|
1396
|
+
return Geometry.conditionalDivideFraction(uv, uu);
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Return the line fraction at which the line is closest to a space point
|
|
1400
|
+
* @param pointA0 start point
|
|
1401
|
+
* @param pointA1 end point
|
|
1402
|
+
* @param spacePoint homogeneous point in space
|
|
1403
|
+
*/
|
|
1404
|
+
static lineSegment3dClosestPointUnbounded(pointA0, pointA1, spacePoint) {
|
|
1405
|
+
// Considering only x,y parts....
|
|
1406
|
+
const ux = pointA1.x - pointA0.x;
|
|
1407
|
+
const uy = pointA1.y - pointA0.y;
|
|
1408
|
+
const uz = pointA1.z - pointA0.z;
|
|
1409
|
+
const uu = ux * ux + uy * uy + uz * uz;
|
|
1410
|
+
const vx = spacePoint.x - pointA0.x;
|
|
1411
|
+
const vy = spacePoint.y - pointA0.y;
|
|
1412
|
+
const vz = spacePoint.z - pointA0.z;
|
|
1413
|
+
const uv = ux * vx + uy * vy + uz * vz;
|
|
1414
|
+
return Geometry.conditionalDivideFraction(uv, uu);
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Return true if lines (a0,a1) to (b0, b1) have closest approach (go by each other) in 3d
|
|
1418
|
+
* Return the fractional (not xy) coordinates in result.x, result.y
|
|
1419
|
+
* @param a0 start point of line a
|
|
1420
|
+
* @param a1 end point of line a
|
|
1421
|
+
* @param b0 start point of line b
|
|
1422
|
+
* @param b1 end point of line b
|
|
1423
|
+
* @param result point to receive fractional coordinates of intersection. result.x is fraction on line a. result.y is fraction on line b.
|
|
1424
|
+
*/
|
|
1425
|
+
static lineSegment3dClosestApproachUnbounded(a0, a1, b0, b1, result) {
|
|
1426
|
+
return this.ray3dXYZUVWClosestApproachUnbounded(a0.x, a0.y, a0.z, a1.x - a0.x, a1.y - a0.y, a1.z - a0.z, b0.x, b0.y, b0.z, b1.x - b0.x, b1.y - b0.y, b1.z - b0.z, result);
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Return true if lines (a0,a1) to (b0, b1) have closest approach (go by each other) in 3d
|
|
1430
|
+
* Return the fractional (not xy) coordinates as x and y parts of a Point2d.
|
|
1431
|
+
* @param result point to receive fractional coordinates of intersection. result.x is fraction on line a. result.y is fraction on line b.
|
|
1432
|
+
*/
|
|
1433
|
+
static ray3dXYZUVWClosestApproachUnbounded(ax, ay, az, au, av, aw, bx, by, bz, bu, bv, bw, result) {
|
|
1434
|
+
const cx = bx - ax;
|
|
1435
|
+
const cy = by - ay;
|
|
1436
|
+
const cz = bz - az;
|
|
1437
|
+
const uu = Geometry.hypotenuseSquaredXYZ(au, av, aw);
|
|
1438
|
+
const vv = Geometry.hypotenuseSquaredXYZ(bu, bv, bw);
|
|
1439
|
+
const uv = Geometry.dotProductXYZXYZ(au, av, aw, bu, bv, bw);
|
|
1440
|
+
const cu = Geometry.dotProductXYZXYZ(cx, cy, cz, au, av, aw);
|
|
1441
|
+
const cv = Geometry.dotProductXYZXYZ(cx, cy, cz, bu, bv, bw);
|
|
1442
|
+
return SmallSystem.linearSystem2d(uu, -uv, uv, -vv, cu, cv, result);
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* Solve the pair of linear equations
|
|
1446
|
+
* * `ux * x + vx + y = cx`
|
|
1447
|
+
* * `uy * x + vy * y = cy`
|
|
1448
|
+
* @param ux xx coefficient
|
|
1449
|
+
* @param vx xy coefficient
|
|
1450
|
+
* @param uy yx coefficient
|
|
1451
|
+
* @param vy yy coefficient
|
|
1452
|
+
* @param cx x right hand side
|
|
1453
|
+
* @param cy y right hand side
|
|
1454
|
+
* @param result (x,y) solution. (MUST be preallocated by caller)
|
|
1455
|
+
*/
|
|
1456
|
+
static linearSystem2d(ux, vx, // first row of matrix
|
|
1457
|
+
uy, vy, // second row of matrix
|
|
1458
|
+
cx, cy, // right side
|
|
1459
|
+
result) {
|
|
1460
|
+
const uv = Geometry.crossProductXYXY(ux, uy, vx, vy);
|
|
1461
|
+
const cv = Geometry.crossProductXYXY(cx, cy, vx, vy);
|
|
1462
|
+
const cu = Geometry.crossProductXYXY(ux, uy, cx, cy);
|
|
1463
|
+
const s = Geometry.conditionalDivideFraction(cv, uv);
|
|
1464
|
+
const t = Geometry.conditionalDivideFraction(cu, uv);
|
|
1465
|
+
if (s !== undefined && t !== undefined) {
|
|
1466
|
+
result.set(s, t);
|
|
1467
|
+
return true;
|
|
1468
|
+
}
|
|
1469
|
+
result.set(0, 0);
|
|
1470
|
+
return false;
|
|
1471
|
+
}
|
|
1472
|
+
/**
|
|
1473
|
+
* Solve a linear system
|
|
1474
|
+
* * x equation: `ux *u * vx * v + wx * w = cx`
|
|
1475
|
+
* * y equation: `uy *u * vy * v + wy * w = cy`
|
|
1476
|
+
* * z equation: `uz *u * vz * v + wz * w = cz`
|
|
1477
|
+
* @param axx row 0, column 0 coefficient
|
|
1478
|
+
* @param axy row 0, column 1 coefficient
|
|
1479
|
+
* @param axz row 0, column 1 coefficient
|
|
1480
|
+
* @param ayx row 1, column 0 coefficient
|
|
1481
|
+
* @param ayy row 1, column 1 coefficient
|
|
1482
|
+
* @param ayz row 1, column 2 coefficient
|
|
1483
|
+
* @param azx row 2, column 0 coefficient
|
|
1484
|
+
* @param azy row 2, column 1 coefficient
|
|
1485
|
+
* @param azz row 2, column 2 coefficient
|
|
1486
|
+
* @param cx right hand side row 0 coefficient
|
|
1487
|
+
* @param cy right hand side row 1 coefficient
|
|
1488
|
+
* @param cz right hand side row 2 coefficient
|
|
1489
|
+
* @param result optional result.
|
|
1490
|
+
*/
|
|
1491
|
+
static linearSystem3d(axx, axy, axz, // first row of matrix
|
|
1492
|
+
ayx, ayy, ayz, // second row of matrix
|
|
1493
|
+
azx, azy, azz, // second row of matrix
|
|
1494
|
+
cx, cy, cz, // right side
|
|
1495
|
+
result) {
|
|
1496
|
+
// determinants of various combinations of columns ...
|
|
1497
|
+
const detXYZ = Geometry.tripleProduct(axx, ayx, azx, axy, ayy, azy, axz, ayz, azz);
|
|
1498
|
+
const detCYZ = Geometry.tripleProduct(cx, cy, cz, axy, ayy, azy, axz, ayz, azz);
|
|
1499
|
+
const detXCZ = Geometry.tripleProduct(axx, ayx, azx, cx, cy, cz, axz, ayz, azz);
|
|
1500
|
+
const detXYC = Geometry.tripleProduct(axx, ayx, azx, axy, ayy, azy, cx, cy, cz);
|
|
1501
|
+
const s = Geometry.conditionalDivideFraction(detCYZ, detXYZ);
|
|
1502
|
+
const t = Geometry.conditionalDivideFraction(detXCZ, detXYZ);
|
|
1503
|
+
const u = Geometry.conditionalDivideFraction(detXYC, detXYZ);
|
|
1504
|
+
if (s !== undefined && t !== undefined && u !== undefined) {
|
|
1505
|
+
return Vector3d.create(s, t, u, result);
|
|
1506
|
+
}
|
|
1507
|
+
return undefined;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* * in rowB, replace `rowB[j] += a * rowB[pivot] * rowA[j] / rowA[pivot]` for `j>pivot`
|
|
1511
|
+
* @param rowA row that does not change
|
|
1512
|
+
* @param pivotIndex index of pivot (divisor) in rowA.
|
|
1513
|
+
* @param rowB row where elimination occurs.
|
|
1514
|
+
*/
|
|
1515
|
+
static eliminateFromPivot(rowA, pivotIndex, rowB, a) {
|
|
1516
|
+
const n = rowA.length;
|
|
1517
|
+
let q = Geometry.conditionalDivideFraction(rowB[pivotIndex], rowA[pivotIndex]);
|
|
1518
|
+
if (q === undefined)
|
|
1519
|
+
return false;
|
|
1520
|
+
q *= a;
|
|
1521
|
+
for (let j = pivotIndex + 1; j < n; j++)
|
|
1522
|
+
rowB[j] += q * rowA[j];
|
|
1523
|
+
return true;
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Solve a pair of bilinear equations
|
|
1527
|
+
* * First equation: `a0 + b0 * u + c0 * v + d0 * u * v = 0`
|
|
1528
|
+
* * Second equation: `a0 + b0 * u + c0 * v + d0 * u * v = 0`
|
|
1529
|
+
*/
|
|
1530
|
+
static solveBilinearPair(a0, b0, c0, d0, a1, b1, c1, d1) {
|
|
1531
|
+
// constant linear, and quadratic coefficients for c0 + c1 * u + c2 * u*u = 0
|
|
1532
|
+
const e0 = Geometry.crossProductXYXY(a0, a1, c0, c1);
|
|
1533
|
+
const e1 = Geometry.crossProductXYXY(b0, b1, c0, c1) + Geometry.crossProductXYXY(a0, a1, d0, d1);
|
|
1534
|
+
const e2 = Geometry.crossProductXYXY(b0, b1, d0, d1);
|
|
1535
|
+
const uRoots = Degree2PowerPolynomial.solveQuadratic(e2, e1, e0);
|
|
1536
|
+
if (uRoots === undefined)
|
|
1537
|
+
return undefined;
|
|
1538
|
+
const uv = [];
|
|
1539
|
+
for (const u of uRoots) {
|
|
1540
|
+
const v0 = Geometry.conditionalDivideFraction(-(a0 + b0 * u), c0 + d0 * u);
|
|
1541
|
+
const v1 = Geometry.conditionalDivideFraction(-(a1 + b1 * u), c1 + d1 * u);
|
|
1542
|
+
if (v0 !== undefined)
|
|
1543
|
+
uv.push(Point2d.create(u, v0));
|
|
1544
|
+
else if (v1 !== undefined)
|
|
1545
|
+
uv.push(Point2d.create(u, v1));
|
|
1546
|
+
}
|
|
1547
|
+
return uv;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* * bilinear expression
|
|
1552
|
+
* * `f(u,v) = a + b * u * c * v + d * u * v`
|
|
1553
|
+
* @internal
|
|
1554
|
+
*/
|
|
1555
|
+
export class BilinearPolynomial {
|
|
1556
|
+
/**
|
|
1557
|
+
*
|
|
1558
|
+
* @param a constant coefficient
|
|
1559
|
+
* @param b `u` coefficient
|
|
1560
|
+
* @param c `v` coefficient
|
|
1561
|
+
* @param d `u*v` coefficient
|
|
1562
|
+
*/
|
|
1563
|
+
constructor(a, b, c, d) {
|
|
1564
|
+
this.a = a;
|
|
1565
|
+
this.b = b;
|
|
1566
|
+
this.c = c;
|
|
1567
|
+
this.d = d;
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Evaluate the bilinear expression at u,v
|
|
1571
|
+
*/
|
|
1572
|
+
evaluate(u, v) {
|
|
1573
|
+
return this.a + this.b * u + v * (this.c + this.d * u);
|
|
1574
|
+
}
|
|
1575
|
+
/** Create a bilinear polynomial z=f(u,v) given z values at 00, 10, 01, 11.
|
|
1576
|
+
*/
|
|
1577
|
+
static createUnitSquareValues(f00, f10, f01, f11) {
|
|
1578
|
+
return new BilinearPolynomial(f00, f10, f10, f11 - f10 - f01);
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Solve the simultaneous equations
|
|
1582
|
+
* * `p(u,v) = pValue`
|
|
1583
|
+
* * `q(u,v) = qValue`
|
|
1584
|
+
* @param p
|
|
1585
|
+
* @param pValue
|
|
1586
|
+
* @param q
|
|
1587
|
+
* @param qValue
|
|
1588
|
+
*/
|
|
1589
|
+
static solvePair(p, pValue, q, qValue) {
|
|
1590
|
+
return SmallSystem.solveBilinearPair(p.a - pValue, p.b, p.c, p.d, q.a - qValue, q.b, q.c, q.d);
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* * trigonometric expresses `f(theta) = a + cosineCoff * cos(theta) + sineCoff * sin(theta)`
|
|
1595
|
+
* @internal
|
|
1596
|
+
*/
|
|
1597
|
+
export class SineCosinePolynomial {
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @param a constant coefficient
|
|
1601
|
+
* @param cosineCoff `cos(theta)` coefficient
|
|
1602
|
+
* @param sinCoff `sin(theta)` coefficient
|
|
1603
|
+
*/
|
|
1604
|
+
constructor(a, cosCoff, sinCoff) {
|
|
1605
|
+
this.a = a;
|
|
1606
|
+
this.cosineCoff = cosCoff;
|
|
1607
|
+
this.sineCoff = sinCoff;
|
|
1608
|
+
}
|
|
1609
|
+
/** set all coefficients */
|
|
1610
|
+
set(a, cosCoff, sinCoff) {
|
|
1611
|
+
this.a = a;
|
|
1612
|
+
this.cosineCoff = cosCoff;
|
|
1613
|
+
this.sineCoff = sinCoff;
|
|
1614
|
+
}
|
|
1615
|
+
/** Return the function value at given angle in radians */
|
|
1616
|
+
evaluateRadians(theta) {
|
|
1617
|
+
return this.a + this.cosineCoff * Math.cos(theta) + this.sineCoff * Math.sin(theta);
|
|
1618
|
+
}
|
|
1619
|
+
/** Return the range of function values over the entire angle range. */
|
|
1620
|
+
range(result) {
|
|
1621
|
+
const q = Geometry.hypotenuseXY(this.cosineCoff, this.sineCoff);
|
|
1622
|
+
return Range1d.createXX(this.a - q, this.a + q, result);
|
|
1623
|
+
}
|
|
1624
|
+
/** Return the min and max values of the function over theta range from radians0 to radians1 inclusive. */
|
|
1625
|
+
rangeInStartEndRadians(radians0, radians1, result) {
|
|
1626
|
+
if (Angle.isFullCircleRadians(radians1 - radians0))
|
|
1627
|
+
return this.range(result);
|
|
1628
|
+
result = Range1d.createXX(this.evaluateRadians(radians0), this.evaluateRadians(radians1), result);
|
|
1629
|
+
// angles of min and max ...
|
|
1630
|
+
// angles for min and max of the sine wave . ..
|
|
1631
|
+
const alphaA = Math.atan2(this.sineCoff, this.cosineCoff);
|
|
1632
|
+
const alphaB = alphaA + Math.PI;
|
|
1633
|
+
if (AngleSweep.isRadiansInStartEnd(alphaA, radians0, radians1))
|
|
1634
|
+
result.extendX(this.evaluateRadians(alphaA));
|
|
1635
|
+
if (AngleSweep.isRadiansInStartEnd(alphaB, radians0, radians1))
|
|
1636
|
+
result.extendX(this.evaluateRadians(alphaB));
|
|
1637
|
+
return result;
|
|
1638
|
+
}
|
|
1639
|
+
/** Return the min and max values of the function over theta range from radians0 to radians1 inclusive. */
|
|
1640
|
+
rangeInSweep(sweep, result) {
|
|
1641
|
+
return this.rangeInStartEndRadians(sweep.startRadians, sweep.endRadians, result);
|
|
1642
|
+
}
|
|
1643
|
+
/**
|
|
1644
|
+
* Return a representative angle (in radians) for min and max values.
|
|
1645
|
+
* * The radians value is atan2(sineCoff, cosineCoff)
|
|
1646
|
+
* * Hence the candidates for min and max of the function are at this value and this value plus PI
|
|
1647
|
+
*/
|
|
1648
|
+
referenceMinMaxRadians() {
|
|
1649
|
+
return Math.atan2(this.sineCoff, this.cosineCoff);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Support for an implicit linear equation (half space)
|
|
1654
|
+
* f(x,y) = a0 + x * ax + y * ay
|
|
1655
|
+
* @internal
|
|
1656
|
+
*/
|
|
1657
|
+
export class ImplicitLineXY {
|
|
1658
|
+
/** construct the ImplicitLineXY from coefficients */
|
|
1659
|
+
constructor(a, ax, ay) {
|
|
1660
|
+
this.a = a;
|
|
1661
|
+
this.ax = ax;
|
|
1662
|
+
this.ay = ay;
|
|
1663
|
+
}
|
|
1664
|
+
/** Compute 2 points of a line segment with
|
|
1665
|
+
* * the segment is on the zero-line of this ImplicitLineXY
|
|
1666
|
+
* * the start and endpoints are distance `b` from the projection of the origin onto the ImplicitLineXY
|
|
1667
|
+
* @returns undefined if ax,ay are both zero. Otherwise the two points of the segment.
|
|
1668
|
+
*/
|
|
1669
|
+
convertToSegmentPoints(b) {
|
|
1670
|
+
const q = Math.sqrt(this.ax * this.ax + this.ay * this.ay);
|
|
1671
|
+
const alpha = Geometry.conditionalDivideCoordinate(1.0, q, 1.0e10);
|
|
1672
|
+
if (alpha === undefined)
|
|
1673
|
+
return undefined;
|
|
1674
|
+
const ux = alpha * this.ax;
|
|
1675
|
+
const uy = alpha * this.ay;
|
|
1676
|
+
const px = -alpha * ux;
|
|
1677
|
+
const py = -alpha * uy;
|
|
1678
|
+
return [Point3d.create(px - b * uy, py + b * ux), Point3d.create(px + b * uy, py - b * ux)];
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Evaluate the half-space function at an xy point
|
|
1682
|
+
* @param xy xy values for evaluation
|
|
1683
|
+
* @returns evaluation.
|
|
1684
|
+
*/
|
|
1685
|
+
evaluatePoint(xy) {
|
|
1686
|
+
return this.a + xy.x * this.ax + xy.y * this.ay;
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* add scale * (a,ax,ay) to the respective coefficients.
|
|
1690
|
+
*/
|
|
1691
|
+
addScaledCoefficientsInPlace(a, ax, ay, scale) {
|
|
1692
|
+
this.a += scale * a;
|
|
1693
|
+
this.ax += scale * ax;
|
|
1694
|
+
this.ay += scale * ay;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
//# sourceMappingURL=Polynomials.js.map
|