@itwin/core-geometry 4.10.0-dev.9 → 5.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -1
- package/lib/cjs/Geometry.js +2 -2
- package/lib/cjs/Geometry.js.map +1 -1
- package/lib/cjs/bspline/BSpline1dNd.d.ts.map +1 -1
- package/lib/cjs/bspline/BSpline1dNd.js +0 -1
- package/lib/cjs/bspline/BSpline1dNd.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurve.d.ts +5 -3
- package/lib/cjs/bspline/BSplineCurve.d.ts.map +1 -1
- package/lib/cjs/bspline/BSplineCurve.js +5 -4
- package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
- package/lib/cjs/clipping/ClipVector.js +1 -1
- package/lib/cjs/clipping/ClipVector.js.map +1 -1
- package/lib/cjs/core-geometry.d.ts +1 -1
- package/lib/cjs/core-geometry.d.ts.map +1 -1
- package/lib/cjs/core-geometry.js +1 -1
- package/lib/cjs/core-geometry.js.map +1 -1
- package/lib/cjs/curve/Arc3d.d.ts +136 -128
- package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
- package/lib/cjs/curve/Arc3d.js +177 -152
- package/lib/cjs/curve/Arc3d.js.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +7 -5
- package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js +9 -7
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/cjs/curve/CurveCollection.d.ts +21 -2
- package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
- package/lib/cjs/curve/CurveCollection.js +45 -10
- package/lib/cjs/curve/CurveCollection.js.map +1 -1
- package/lib/cjs/curve/CurveExtendMode.d.ts +18 -15
- package/lib/cjs/curve/CurveExtendMode.d.ts.map +1 -1
- package/lib/cjs/curve/CurveExtendMode.js +18 -17
- package/lib/cjs/curve/CurveExtendMode.js.map +1 -1
- package/lib/cjs/curve/CurveFactory.d.ts +11 -13
- package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
- package/lib/cjs/curve/CurveFactory.js +19 -46
- package/lib/cjs/curve/CurveFactory.js.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.d.ts +9 -5
- package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.js +9 -5
- package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
- package/lib/cjs/curve/CurveProcessor.d.ts.map +1 -1
- package/lib/cjs/curve/CurveProcessor.js +0 -1
- package/lib/cjs/curve/CurveProcessor.js.map +1 -1
- package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
- package/lib/cjs/curve/LineSegment3d.js +2 -3
- package/lib/cjs/curve/LineSegment3d.js.map +1 -1
- package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
- package/lib/cjs/curve/OffsetOptions.d.ts.map +1 -1
- package/lib/cjs/curve/OffsetOptions.js +4 -4
- package/lib/cjs/curve/OffsetOptions.js.map +1 -1
- package/lib/cjs/curve/Path.d.ts +14 -0
- package/lib/cjs/curve/Path.d.ts.map +1 -1
- package/lib/cjs/curve/Path.js +27 -0
- package/lib/cjs/curve/Path.js.map +1 -1
- package/lib/cjs/curve/PointString3d.d.ts.map +1 -1
- package/lib/cjs/curve/PointString3d.js +0 -1
- package/lib/cjs/curve/PointString3d.js.map +1 -1
- package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
- package/lib/cjs/curve/StrokeOptions.js +0 -1
- package/lib/cjs/curve/StrokeOptions.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js +5 -6
- package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js +10 -10
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js +4 -4
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
- package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.d.ts +18 -18
- package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js +46 -42
- package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +5 -4
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/cjs/geometry3d/AngleSweep.d.ts +10 -6
- package/lib/cjs/geometry3d/AngleSweep.d.ts.map +1 -1
- package/lib/cjs/geometry3d/AngleSweep.js +15 -12
- package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
- package/lib/cjs/geometry3d/BilinearPatch.js +4 -4
- package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/cjs/geometry3d/FrameBuilder.d.ts.map +1 -1
- package/lib/cjs/geometry3d/FrameBuilder.js +0 -1
- package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.d.ts +28 -17
- package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.js +36 -17
- package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
- package/lib/cjs/geometry3d/Point2dArrayCarrier.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Point2dArrayCarrier.js +2 -3
- package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts +6 -5
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.js +6 -5
- package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/cjs/geometry3d/PointHelpers.d.ts.map +1 -1
- package/lib/cjs/geometry3d/PointHelpers.js +0 -1
- package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
- package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -1
- package/lib/cjs/geometry3d/PolygonOps.js +2 -4
- package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
- package/lib/cjs/geometry3d/Ray3d.js +2 -2
- package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
- package/lib/cjs/geometry3d/YawPitchRollAngles.d.ts.map +1 -1
- package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
- package/lib/cjs/geometry4d/Map4d.d.ts +5 -5
- package/lib/cjs/geometry4d/Map4d.js +5 -5
- package/lib/cjs/geometry4d/Map4d.js.map +1 -1
- package/lib/cjs/geometry4d/Matrix4d.d.ts +4 -7
- package/lib/cjs/geometry4d/Matrix4d.d.ts.map +1 -1
- package/lib/cjs/geometry4d/Matrix4d.js +4 -7
- package/lib/cjs/geometry4d/Matrix4d.js.map +1 -1
- package/lib/cjs/geometry4d/Point4d.d.ts.map +1 -1
- package/lib/cjs/geometry4d/Point4d.js +2 -1
- package/lib/cjs/geometry4d/Point4d.js.map +1 -1
- package/lib/cjs/numerics/BezierPolynomials.d.ts.map +1 -1
- package/lib/cjs/numerics/BezierPolynomials.js +0 -1
- package/lib/cjs/numerics/BezierPolynomials.js.map +1 -1
- package/lib/cjs/numerics/Newton.d.ts +3 -0
- package/lib/cjs/numerics/Newton.d.ts.map +1 -1
- package/lib/cjs/numerics/Newton.js +2 -5
- package/lib/cjs/numerics/Newton.js.map +1 -1
- package/lib/cjs/numerics/Polynomials.d.ts +46 -201
- package/lib/cjs/numerics/Polynomials.d.ts.map +1 -1
- package/lib/cjs/numerics/Polynomials.js +132 -445
- package/lib/cjs/numerics/Polynomials.js.map +1 -1
- package/lib/cjs/numerics/Range1dArray.js +2 -2
- package/lib/cjs/numerics/Range1dArray.js.map +1 -1
- package/lib/cjs/numerics/SmallSystem.d.ts +164 -0
- package/lib/cjs/numerics/SmallSystem.d.ts.map +1 -0
- package/lib/cjs/numerics/SmallSystem.js +321 -0
- package/lib/cjs/numerics/SmallSystem.js.map +1 -0
- package/lib/cjs/polyface/AuxData.d.ts.map +1 -1
- package/lib/cjs/polyface/AuxData.js.map +1 -1
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js +0 -1
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/cjs/polyface/Polyface.d.ts +2 -2
- package/lib/cjs/polyface/Polyface.d.ts.map +1 -1
- package/lib/cjs/polyface/Polyface.js +0 -1
- package/lib/cjs/polyface/Polyface.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceBuilder.js +1 -1
- package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceClip.d.ts +3 -3
- package/lib/cjs/polyface/PolyfaceClip.d.ts.map +1 -1
- package/lib/cjs/polyface/PolyfaceClip.js +1 -2
- package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.js +0 -1
- package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.d.ts +1 -1
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.d.ts.map +1 -1
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.js +7 -7
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
- package/lib/cjs/serialization/DeepCompare.d.ts.map +1 -1
- package/lib/cjs/serialization/DeepCompare.js +0 -1
- package/lib/cjs/serialization/DeepCompare.js.map +1 -1
- package/lib/cjs/topology/Graph.d.ts.map +1 -1
- package/lib/cjs/topology/Graph.js +2 -2
- package/lib/cjs/topology/Graph.js.map +1 -1
- package/lib/cjs/topology/InsertAndRetriangulateContext.js +2 -2
- package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -1
- package/lib/cjs/topology/Merging.d.ts +1 -1
- package/lib/cjs/topology/Merging.d.ts.map +1 -1
- package/lib/cjs/topology/Merging.js +2 -2
- package/lib/cjs/topology/Merging.js.map +1 -1
- package/lib/esm/Geometry.js +2 -2
- package/lib/esm/Geometry.js.map +1 -1
- package/lib/esm/bspline/BSpline1dNd.d.ts.map +1 -1
- package/lib/esm/bspline/BSpline1dNd.js +0 -1
- package/lib/esm/bspline/BSpline1dNd.js.map +1 -1
- package/lib/esm/bspline/BSplineCurve.d.ts +5 -3
- package/lib/esm/bspline/BSplineCurve.d.ts.map +1 -1
- package/lib/esm/bspline/BSplineCurve.js +5 -4
- package/lib/esm/bspline/BSplineCurve.js.map +1 -1
- package/lib/esm/clipping/ClipVector.js +1 -1
- package/lib/esm/clipping/ClipVector.js.map +1 -1
- package/lib/esm/core-geometry.d.ts +1 -1
- package/lib/esm/core-geometry.d.ts.map +1 -1
- package/lib/esm/core-geometry.js +1 -1
- package/lib/esm/core-geometry.js.map +1 -1
- package/lib/esm/curve/Arc3d.d.ts +136 -128
- package/lib/esm/curve/Arc3d.d.ts.map +1 -1
- package/lib/esm/curve/Arc3d.js +177 -152
- package/lib/esm/curve/Arc3d.js.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +7 -5
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.js +9 -7
- package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/esm/curve/CurveCollection.d.ts +21 -2
- package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
- package/lib/esm/curve/CurveCollection.js +45 -10
- package/lib/esm/curve/CurveCollection.js.map +1 -1
- package/lib/esm/curve/CurveExtendMode.d.ts +18 -15
- package/lib/esm/curve/CurveExtendMode.d.ts.map +1 -1
- package/lib/esm/curve/CurveExtendMode.js +18 -17
- package/lib/esm/curve/CurveExtendMode.js.map +1 -1
- package/lib/esm/curve/CurveFactory.d.ts +11 -13
- package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
- package/lib/esm/curve/CurveFactory.js +17 -44
- package/lib/esm/curve/CurveFactory.js.map +1 -1
- package/lib/esm/curve/CurvePrimitive.d.ts +9 -5
- package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
- package/lib/esm/curve/CurvePrimitive.js +9 -5
- package/lib/esm/curve/CurvePrimitive.js.map +1 -1
- package/lib/esm/curve/CurveProcessor.d.ts.map +1 -1
- package/lib/esm/curve/CurveProcessor.js +0 -1
- package/lib/esm/curve/CurveProcessor.js.map +1 -1
- package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
- package/lib/esm/curve/LineSegment3d.js +1 -2
- package/lib/esm/curve/LineSegment3d.js.map +1 -1
- package/lib/esm/curve/LineString3d.d.ts.map +1 -1
- package/lib/esm/curve/OffsetOptions.d.ts.map +1 -1
- package/lib/esm/curve/OffsetOptions.js +4 -4
- package/lib/esm/curve/OffsetOptions.js.map +1 -1
- package/lib/esm/curve/Path.d.ts +14 -0
- package/lib/esm/curve/Path.d.ts.map +1 -1
- package/lib/esm/curve/Path.js +27 -0
- package/lib/esm/curve/Path.js.map +1 -1
- package/lib/esm/curve/PointString3d.d.ts.map +1 -1
- package/lib/esm/curve/PointString3d.js +0 -1
- package/lib/esm/curve/PointString3d.js.map +1 -1
- package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
- package/lib/esm/curve/StrokeOptions.js +0 -1
- package/lib/esm/curve/StrokeOptions.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js +4 -5
- package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js +5 -5
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js +3 -3
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
- package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.d.ts +18 -18
- package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js +46 -42
- package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +5 -4
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/esm/geometry3d/AngleSweep.d.ts +10 -6
- package/lib/esm/geometry3d/AngleSweep.d.ts.map +1 -1
- package/lib/esm/geometry3d/AngleSweep.js +15 -12
- package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
- package/lib/esm/geometry3d/BilinearPatch.js +1 -1
- package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/esm/geometry3d/FrameBuilder.d.ts.map +1 -1
- package/lib/esm/geometry3d/FrameBuilder.js +0 -1
- package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.d.ts +28 -17
- package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.js +36 -17
- package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
- package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts.map +1 -1
- package/lib/esm/geometry3d/Point2dArrayCarrier.js +0 -1
- package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.d.ts +6 -5
- package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.js +6 -5
- package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/esm/geometry3d/PointHelpers.d.ts.map +1 -1
- package/lib/esm/geometry3d/PointHelpers.js +0 -1
- package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
- package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -1
- package/lib/esm/geometry3d/PolygonOps.js +2 -4
- package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
- package/lib/esm/geometry3d/Ray3d.js +1 -1
- package/lib/esm/geometry3d/Ray3d.js.map +1 -1
- package/lib/esm/geometry3d/YawPitchRollAngles.d.ts.map +1 -1
- package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
- package/lib/esm/geometry4d/Map4d.d.ts +5 -5
- package/lib/esm/geometry4d/Map4d.js +5 -5
- package/lib/esm/geometry4d/Map4d.js.map +1 -1
- package/lib/esm/geometry4d/Matrix4d.d.ts +4 -7
- package/lib/esm/geometry4d/Matrix4d.d.ts.map +1 -1
- package/lib/esm/geometry4d/Matrix4d.js +4 -7
- package/lib/esm/geometry4d/Matrix4d.js.map +1 -1
- package/lib/esm/geometry4d/Point4d.d.ts.map +1 -1
- package/lib/esm/geometry4d/Point4d.js +2 -1
- package/lib/esm/geometry4d/Point4d.js.map +1 -1
- package/lib/esm/numerics/BezierPolynomials.d.ts.map +1 -1
- package/lib/esm/numerics/BezierPolynomials.js +0 -1
- package/lib/esm/numerics/BezierPolynomials.js.map +1 -1
- package/lib/esm/numerics/Newton.d.ts +3 -0
- package/lib/esm/numerics/Newton.d.ts.map +1 -1
- package/lib/esm/numerics/Newton.js +1 -4
- package/lib/esm/numerics/Newton.js.map +1 -1
- package/lib/esm/numerics/Polynomials.d.ts +46 -201
- package/lib/esm/numerics/Polynomials.d.ts.map +1 -1
- package/lib/esm/numerics/Polynomials.js +132 -444
- package/lib/esm/numerics/Polynomials.js.map +1 -1
- package/lib/esm/numerics/SmallSystem.d.ts +164 -0
- package/lib/esm/numerics/SmallSystem.d.ts.map +1 -0
- package/lib/esm/numerics/SmallSystem.js +317 -0
- package/lib/esm/numerics/SmallSystem.js.map +1 -0
- package/lib/esm/polyface/AuxData.d.ts.map +1 -1
- package/lib/esm/polyface/AuxData.js.map +1 -1
- package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js +0 -1
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/esm/polyface/Polyface.d.ts +2 -2
- package/lib/esm/polyface/Polyface.d.ts.map +1 -1
- package/lib/esm/polyface/Polyface.js +0 -1
- package/lib/esm/polyface/Polyface.js.map +1 -1
- package/lib/esm/polyface/PolyfaceBuilder.js +1 -1
- package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/esm/polyface/PolyfaceClip.d.ts +3 -3
- package/lib/esm/polyface/PolyfaceClip.d.ts.map +1 -1
- package/lib/esm/polyface/PolyfaceClip.js +1 -2
- package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.js +0 -1
- package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
- package/lib/esm/polyface/multiclip/OffsetMeshContext.d.ts +1 -1
- package/lib/esm/polyface/multiclip/OffsetMeshContext.d.ts.map +1 -1
- package/lib/esm/polyface/multiclip/OffsetMeshContext.js +4 -4
- package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
- package/lib/esm/serialization/DeepCompare.d.ts.map +1 -1
- package/lib/esm/serialization/DeepCompare.js +0 -1
- package/lib/esm/serialization/DeepCompare.js.map +1 -1
- package/lib/esm/topology/Graph.d.ts.map +1 -1
- package/lib/esm/topology/Graph.js +1 -1
- package/lib/esm/topology/Graph.js.map +1 -1
- package/lib/esm/topology/InsertAndRetriangulateContext.js +1 -1
- package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -1
- package/lib/esm/topology/Merging.d.ts +1 -1
- package/lib/esm/topology/Merging.d.ts.map +1 -1
- package/lib/esm/topology/Merging.js +1 -1
- package/lib/esm/topology/Merging.js.map +1 -1
- package/package.json +8 -8
package/lib/esm/curve/Arc3d.js
CHANGED
|
@@ -11,7 +11,8 @@ import { Plane3dByOriginAndVectors } from "../geometry3d/Plane3dByOriginAndVecto
|
|
|
11
11
|
import { Point3d, Vector3d } from "../geometry3d/Point3dVector3d";
|
|
12
12
|
import { Range1d, Range3d } from "../geometry3d/Range";
|
|
13
13
|
import { Ray3d } from "../geometry3d/Ray3d";
|
|
14
|
-
import { SineCosinePolynomial,
|
|
14
|
+
import { SineCosinePolynomial, TrigPolynomial } from "../numerics/Polynomials";
|
|
15
|
+
import { SmallSystem } from "../numerics/SmallSystem";
|
|
15
16
|
import { CurveExtendMode, CurveExtendOptions } from "./CurveExtendMode";
|
|
16
17
|
import { CurveIntervalRole, CurveLocationDetail, CurveSearchStatus } from "./CurveLocationDetail";
|
|
17
18
|
import { CurvePrimitive } from "./CurvePrimitive";
|
|
@@ -150,15 +151,15 @@ export class Arc3d extends CurvePrimitive {
|
|
|
150
151
|
isSameGeometryClass(other) {
|
|
151
152
|
return other instanceof Arc3d;
|
|
152
153
|
}
|
|
153
|
-
/** Read property for (clone of) center */
|
|
154
|
+
/** Read property for (clone of) center. */
|
|
154
155
|
get center() {
|
|
155
156
|
return this._center.clone();
|
|
156
157
|
}
|
|
157
|
-
/** Read property for (clone of) vector0 */
|
|
158
|
+
/** Read property for (clone of) vector0. */
|
|
158
159
|
get vector0() {
|
|
159
160
|
return this._matrix.columnX();
|
|
160
161
|
}
|
|
161
|
-
/** Read property for (clone of) vector90 */
|
|
162
|
+
/** Read property for (clone of) vector90. */
|
|
162
163
|
get vector90() {
|
|
163
164
|
return this._matrix.columnY();
|
|
164
165
|
}
|
|
@@ -166,11 +167,11 @@ export class Arc3d extends CurvePrimitive {
|
|
|
166
167
|
get perpendicularVector() {
|
|
167
168
|
return this._matrix.columnZ();
|
|
168
169
|
}
|
|
169
|
-
/** Read property for (clone of) matrix of vector0, vector90, unit normal */
|
|
170
|
+
/** Read property for (clone of) matrix of vector0, vector90, unit normal. */
|
|
170
171
|
matrixClone() {
|
|
171
172
|
return this._matrix.clone();
|
|
172
173
|
}
|
|
173
|
-
/** Read property for (reference to) matrix of vector0, vector90, unit normal */
|
|
174
|
+
/** Read property for (reference to) matrix of vector0, vector90, unit normal. */
|
|
174
175
|
get matrixRef() {
|
|
175
176
|
return this._matrix;
|
|
176
177
|
}
|
|
@@ -181,21 +182,21 @@ export class Arc3d extends CurvePrimitive {
|
|
|
181
182
|
set sweep(value) {
|
|
182
183
|
this._sweep.setFrom(value);
|
|
183
184
|
}
|
|
184
|
-
/** An Arc3d extends along its complete elliptic arc */
|
|
185
|
+
/** An Arc3d extends along its complete elliptic arc. */
|
|
185
186
|
get isExtensibleFractionSpace() {
|
|
186
187
|
return true;
|
|
187
188
|
}
|
|
188
189
|
// constructor copies the pointers
|
|
189
190
|
constructor(center, matrix, sweep) {
|
|
190
191
|
super();
|
|
191
|
-
/** String name for schema properties */
|
|
192
|
+
/** String name for schema properties. */
|
|
192
193
|
this.curvePrimitiveType = "arc";
|
|
193
194
|
this._center = center;
|
|
194
195
|
this._matrix = matrix;
|
|
195
196
|
this._sweep = sweep;
|
|
196
197
|
}
|
|
197
198
|
/**
|
|
198
|
-
* Return a clone of the arc, with transform applied
|
|
199
|
+
* Return a clone of the arc, with transform applied.
|
|
199
200
|
* @param transform
|
|
200
201
|
*/
|
|
201
202
|
cloneTransformed(transform) {
|
|
@@ -205,9 +206,9 @@ export class Arc3d extends CurvePrimitive {
|
|
|
205
206
|
}
|
|
206
207
|
/**
|
|
207
208
|
* Redefine the arc with (captured references to) given data.
|
|
208
|
-
* @param center arc center
|
|
209
|
-
* @param matrix matrix with columns vector0, vector 90, and their unit cross product
|
|
210
|
-
* @param sweep angle sweep
|
|
209
|
+
* @param center arc center.
|
|
210
|
+
* @param matrix matrix with columns vector0, vector 90, and their unit cross product.
|
|
211
|
+
* @param sweep angle sweep.
|
|
211
212
|
*/
|
|
212
213
|
setRefs(center, matrix, sweep) {
|
|
213
214
|
this._center = center;
|
|
@@ -216,14 +217,14 @@ export class Arc3d extends CurvePrimitive {
|
|
|
216
217
|
}
|
|
217
218
|
/**
|
|
218
219
|
* Redefine the arc with (clones of) given data.
|
|
219
|
-
* @param center arc center
|
|
220
|
-
* @param matrix matrix with columns vector0, vector 90, and their unit cross product
|
|
221
|
-
* @param sweep angle sweep
|
|
220
|
+
* @param center arc center.
|
|
221
|
+
* @param matrix matrix with columns vector0, vector 90, and their unit cross product.
|
|
222
|
+
* @param sweep angle sweep.
|
|
222
223
|
*/
|
|
223
224
|
set(center, matrix, sweep) {
|
|
224
225
|
this.setRefs(center.clone(), matrix.clone(), sweep ? sweep.clone() : AngleSweep.create360());
|
|
225
226
|
}
|
|
226
|
-
/** Copy center, matrix, and sweep from other Arc3d */
|
|
227
|
+
/** Copy center, matrix, and sweep from other Arc3d. */
|
|
227
228
|
setFrom(other) {
|
|
228
229
|
this._center.setFrom(other._center);
|
|
229
230
|
this._matrix.setFrom(other._matrix);
|
|
@@ -235,9 +236,9 @@ export class Arc3d extends CurvePrimitive {
|
|
|
235
236
|
}
|
|
236
237
|
/**
|
|
237
238
|
* Create an arc, capturing references to center, matrix and sweep.
|
|
238
|
-
* @param center center point
|
|
239
|
-
* @param matrix matrix with columns vector0, vector90, and unit cross product
|
|
240
|
-
* @param sweep sweep limits
|
|
239
|
+
* @param center center point.
|
|
240
|
+
* @param matrix matrix with columns vector0, vector90, and unit cross product.
|
|
241
|
+
* @param sweep sweep limits.
|
|
241
242
|
* @param result optional preallocated result.
|
|
242
243
|
*/
|
|
243
244
|
static createRefs(center, matrix, sweep, result) {
|
|
@@ -249,11 +250,11 @@ export class Arc3d extends CurvePrimitive {
|
|
|
249
250
|
}
|
|
250
251
|
/**
|
|
251
252
|
* Create an arc from center, x column to be scaled, and y column to be scaled.
|
|
252
|
-
* @param center center of ellipse
|
|
253
|
-
* @param matrix matrix whose x and y columns are
|
|
253
|
+
* @param center center of ellipse.
|
|
254
|
+
* @param matrix matrix whose x and y columns are scaled by radius0 and radius90.
|
|
254
255
|
* @param radius0 radius in x direction.
|
|
255
256
|
* @param radius90 radius in y direction.
|
|
256
|
-
* @param sweep sweep limits
|
|
257
|
+
* @param sweep sweep limits.
|
|
257
258
|
* @param result optional preallocated result.
|
|
258
259
|
*/
|
|
259
260
|
static createScaledXYColumns(center, matrix, radius0, radius90, sweep, result) {
|
|
@@ -262,9 +263,9 @@ export class Arc3d extends CurvePrimitive {
|
|
|
262
263
|
return Arc3d.create(center, vector0.scale(radius0, vector0), vector90.scale(radius90, vector90), sweep, result);
|
|
263
264
|
}
|
|
264
265
|
/**
|
|
265
|
-
* Create a (full circular) arc from center, normal and radius
|
|
266
|
-
* @param center center of ellipse.
|
|
267
|
-
* @param normal normal vector
|
|
266
|
+
* Create a (full circular) arc from center, normal and radius.
|
|
267
|
+
* @param center center of ellipse. If undefined, center at 000.
|
|
268
|
+
* @param normal normal vector.
|
|
268
269
|
* @param radius radius in x direction.
|
|
269
270
|
* @param result optional preallocated result.
|
|
270
271
|
*/
|
|
@@ -274,11 +275,11 @@ export class Arc3d extends CurvePrimitive {
|
|
|
274
275
|
}
|
|
275
276
|
/**
|
|
276
277
|
* Create an arc by center with vectors to points at 0 and 90 degrees in parameter space.
|
|
277
|
-
* @param center arc center
|
|
278
|
-
* @param vector0 vector to 0 degrees (commonly major axis)
|
|
279
|
-
* @param vector90 vector to 90 degree point (commonly minor axis)
|
|
280
|
-
* @param sweep sweep limits
|
|
281
|
-
* @param result optional preallocated result
|
|
278
|
+
* @param center arc center.
|
|
279
|
+
* @param vector0 vector to 0 degrees (commonly major axis).
|
|
280
|
+
* @param vector90 vector to 90 degree point (commonly minor axis).
|
|
281
|
+
* @param sweep sweep limits; defaults to full sweep.
|
|
282
|
+
* @param result optional preallocated result.
|
|
282
283
|
*/
|
|
283
284
|
static create(center, vector0, vector90, sweep, result) {
|
|
284
285
|
const normal = vector0.unitCrossProductWithDefault(vector90, 0, 0, 0); // normal will be 000 for degenerate case
|
|
@@ -287,19 +288,19 @@ export class Arc3d extends CurvePrimitive {
|
|
|
287
288
|
}
|
|
288
289
|
/**
|
|
289
290
|
* Create an elliptical arc from three points on the ellipse: two points on an axis and one in between.
|
|
290
|
-
* @param
|
|
291
|
-
* @param
|
|
292
|
-
* @param
|
|
293
|
-
* @param sweep angular sweep, measured from `
|
|
294
|
-
* For a half-ellipse from `
|
|
291
|
+
* @param start start of arc, on an axis.
|
|
292
|
+
* @param middle point on arc somewhere between `start` and `end`.
|
|
293
|
+
* @param end point on arc directly opposite `start`.
|
|
294
|
+
* @param sweep angular sweep, measured from `start` in the direction of `middle`.
|
|
295
|
+
* For a half-ellipse from `start` to `end` passing through `middle`, pass `AngleSweep.createStartEndDegrees(0,180)`.
|
|
295
296
|
* Default value is full sweep to create the entire ellipse.
|
|
296
|
-
* @param result optional preallocated result
|
|
297
|
+
* @param result optional preallocated result.
|
|
297
298
|
* @returns elliptical arc, or undefined if construction impossible.
|
|
298
299
|
*/
|
|
299
|
-
static createStartMiddleEnd(
|
|
300
|
-
const center = Point3d.createAdd2Scaled(
|
|
301
|
-
const vector0 = Vector3d.createStartEnd(center,
|
|
302
|
-
const vector1 = Vector3d.createStartEnd(center,
|
|
300
|
+
static createStartMiddleEnd(start, middle, end, sweep, result) {
|
|
301
|
+
const center = Point3d.createAdd2Scaled(start, 0.5, end, 0.5);
|
|
302
|
+
const vector0 = Vector3d.createStartEnd(center, start);
|
|
303
|
+
const vector1 = Vector3d.createStartEnd(center, middle);
|
|
303
304
|
const v0DotV1 = vector0.dotProduct(vector1);
|
|
304
305
|
const v0Len2 = vector0.magnitudeSquared();
|
|
305
306
|
if (Math.abs(v0DotV1) >= v0Len2)
|
|
@@ -307,7 +308,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
307
308
|
const normal = vector0.crossProduct(vector1);
|
|
308
309
|
const vector90 = normal.unitCrossProductWithDefault(vector0, 0, 0, 0);
|
|
309
310
|
const v1DotV90 = vector1.dotProduct(vector90);
|
|
310
|
-
//
|
|
311
|
+
// solve the standard ellipse equation for the unknown axis length, given local coords of middle (v0.v1/||v0||, v90.v1)
|
|
311
312
|
const v90Len = Geometry.safeDivideFraction(v0Len2 * v1DotV90, Math.sqrt(v0Len2 * v0Len2 - v0DotV1 * v0DotV1), 0);
|
|
312
313
|
if (Geometry.isSmallMetricDistanceSquared(v90Len))
|
|
313
314
|
return undefined;
|
|
@@ -316,39 +317,61 @@ export class Arc3d extends CurvePrimitive {
|
|
|
316
317
|
}
|
|
317
318
|
/**
|
|
318
319
|
* Create a circular arc defined by start point, tangent at start point, and end point.
|
|
319
|
-
*
|
|
320
|
+
* * The circular arc is swept from `start` to `end` in the direction of `tangentAtStart`.
|
|
321
|
+
* * If `tangentAtStart` is parallel to the line segment from `start` to `end`, return the line segment.
|
|
320
322
|
*/
|
|
321
323
|
static createCircularStartTangentEnd(start, tangentAtStart, end, result) {
|
|
322
|
-
//
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
const
|
|
340
|
-
const sweep = AngleSweep.
|
|
324
|
+
// see itwinjs-core\core\geometry\internaldocs\Arc3d.md to clarify below algorithm
|
|
325
|
+
const startToEnd = Vector3d.createStartEnd(start, end);
|
|
326
|
+
const frame = Matrix3d.createRigidFromColumns(tangentAtStart, startToEnd, AxisOrder.XYZ);
|
|
327
|
+
if (frame !== undefined) {
|
|
328
|
+
const vv = startToEnd.dotProduct(startToEnd);
|
|
329
|
+
const vw = frame.dotColumnY(startToEnd);
|
|
330
|
+
const radius = Geometry.conditionalDivideCoordinate(vv, 2 * vw);
|
|
331
|
+
if (radius !== undefined) {
|
|
332
|
+
const vector0 = frame.columnY();
|
|
333
|
+
vector0.scaleInPlace(-radius); // center to start
|
|
334
|
+
const vector90 = frame.columnX();
|
|
335
|
+
vector90.scaleInPlace(radius);
|
|
336
|
+
const centerToEnd = vector0.plus(startToEnd);
|
|
337
|
+
const sweepAngle = vector0.angleTo(centerToEnd);
|
|
338
|
+
let sweepRadians = sweepAngle.radians; // always positive and less than PI
|
|
339
|
+
if (tangentAtStart.dotProduct(centerToEnd) < 0.0) // sweepRadians is the wrong way
|
|
340
|
+
sweepRadians = 2.0 * Math.PI - sweepRadians;
|
|
341
|
+
const center = start.plusScaled(vector0, -1.0);
|
|
342
|
+
const sweep = AngleSweep.createStartEndRadians(0.0, sweepRadians);
|
|
341
343
|
return Arc3d.create(center, vector0, vector90, sweep, result);
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
346
|
return LineSegment3d.create(start, end);
|
|
345
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* Create a circular arc from start point, tangent at start, radius, optional plane normal, arc sweep.
|
|
350
|
+
* * The vector from start point to center is in the direction of upVector crossed with tangentA.
|
|
351
|
+
* @param start start point.
|
|
352
|
+
* @param tangentAtStart vector in tangent direction at the start.
|
|
353
|
+
* @param radius signed radius.
|
|
354
|
+
* @param upVector optional out-of-plane vector. Defaults to positive Z.
|
|
355
|
+
* @param sweep angular range. If single `Angle` is given, start angle is at 0 degrees (the start point).
|
|
356
|
+
*/
|
|
357
|
+
static createCircularStartTangentRadius(start, tangentAtStart, radius, upVector, sweep) {
|
|
358
|
+
if (upVector === undefined)
|
|
359
|
+
upVector = Vector3d.unitZ();
|
|
360
|
+
const vector0 = upVector.unitCrossProduct(tangentAtStart);
|
|
361
|
+
if (vector0 === undefined)
|
|
362
|
+
return undefined;
|
|
363
|
+
const center = start.plusScaled(vector0, radius);
|
|
364
|
+
// reverse the A-to-center vector and bring it up to scale
|
|
365
|
+
vector0.scaleInPlace(-radius);
|
|
366
|
+
const vector90 = tangentAtStart.scaleToLength(Math.abs(radius)); // cannot fail; prior unitCrossProduct would have failed first
|
|
367
|
+
return Arc3d.create(center, vector0, vector90, AngleSweep.create(sweep));
|
|
368
|
+
}
|
|
346
369
|
/**
|
|
347
370
|
* Create a circular arc defined by start and end points and radius.
|
|
348
|
-
* @param start start point of the arc
|
|
349
|
-
* @param end end point of the arc
|
|
350
|
-
* @param helper a third point near the arc in its plane, or a vector in the direction of the arc normal
|
|
351
|
-
* @returns the constructed arc, or undefined if desired arc cannot be constructed
|
|
371
|
+
* @param start start point of the arc.
|
|
372
|
+
* @param end end point of the arc.
|
|
373
|
+
* @param helper a third point near the arc in its plane, or a vector in the direction of the arc normal.
|
|
374
|
+
* @returns the constructed arc, or undefined if desired arc cannot be constructed.
|
|
352
375
|
*/
|
|
353
376
|
static createCircularStartEndRadius(start, end, radius, helper) {
|
|
354
377
|
// Construct a line segment from start to end. It is a chord of the circle,
|
|
@@ -380,7 +403,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
380
403
|
* Return a clone of this arc, projected to given z value.
|
|
381
404
|
* * If `z` is omitted, the clone is at the z of the center.
|
|
382
405
|
* * This function projects the arc into a plane parallel to xy-plane.
|
|
383
|
-
* * Note that projection to fixed z can change circle into ellipse (and (rarely) ellipse to circle)
|
|
406
|
+
* * Note that projection to fixed z can change circle into ellipse (and (rarely) ellipse to circle).
|
|
384
407
|
*/
|
|
385
408
|
cloneAtZ(z) {
|
|
386
409
|
if (z === undefined)
|
|
@@ -390,7 +413,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
390
413
|
/**
|
|
391
414
|
* Create an arc by center (cx,cy,xz) with vectors (ux,uy,uz) and (vx,vy,vz) to points at 0 and 90 degrees in
|
|
392
415
|
* parameter space.
|
|
393
|
-
* @param result optional preallocated result
|
|
416
|
+
* @param result optional preallocated result.
|
|
394
417
|
*/
|
|
395
418
|
static createXYZXYZXYZ(cx, cy, cz, ux, uy, uz, vx, vy, vz, sweep, result) {
|
|
396
419
|
return Arc3d.create(Point3d.create(cx, cy, cz), Vector3d.create(ux, uy, uz), Vector3d.create(vx, vy, vz), sweep, result);
|
|
@@ -445,18 +468,18 @@ export class Arc3d extends CurvePrimitive {
|
|
|
445
468
|
return undefined;
|
|
446
469
|
}
|
|
447
470
|
/**
|
|
448
|
-
* Convert a fractional position to xyz coordinates
|
|
449
|
-
* @param fraction fractional position on arc
|
|
450
|
-
* @param result optional preallocated result
|
|
471
|
+
* Convert a fractional position to xyz coordinates.
|
|
472
|
+
* @param fraction fractional position on arc.
|
|
473
|
+
* @param result optional preallocated result.
|
|
451
474
|
*/
|
|
452
475
|
fractionToPoint(fraction, result) {
|
|
453
476
|
const radians = this._sweep.fractionToRadians(fraction);
|
|
454
477
|
return this._matrix.originPlusMatrixTimesXY(this._center, Math.cos(radians), Math.sin(radians), result);
|
|
455
478
|
}
|
|
456
479
|
/**
|
|
457
|
-
* Convert fractional arc and radial positions to xyz coordinates
|
|
458
|
-
* @param fraction fractional position on arc
|
|
459
|
-
* @param result optional preallocated result
|
|
480
|
+
* Convert fractional arc and radial positions to xyz coordinates.
|
|
481
|
+
* @param fraction fractional position on arc.
|
|
482
|
+
* @param result optional preallocated result.
|
|
460
483
|
*/
|
|
461
484
|
fractionAndRadialFractionToPoint(arcFraction, radialFraction, result) {
|
|
462
485
|
const radians = this._sweep.fractionToRadians(arcFraction);
|
|
@@ -464,8 +487,8 @@ export class Arc3d extends CurvePrimitive {
|
|
|
464
487
|
}
|
|
465
488
|
/**
|
|
466
489
|
* Convert a fractional position to xyz coordinates and derivative with respect to fraction.
|
|
467
|
-
* @param fraction fractional position on arc
|
|
468
|
-
* @param result optional preallocated result
|
|
490
|
+
* @param fraction fractional position on arc.
|
|
491
|
+
* @param result optional preallocated result.
|
|
469
492
|
*/
|
|
470
493
|
fractionToPointAndDerivative(fraction, result) {
|
|
471
494
|
result = this.radiansToPointAndDerivative(this._sweep.fractionToRadians(fraction), result);
|
|
@@ -474,10 +497,10 @@ export class Arc3d extends CurvePrimitive {
|
|
|
474
497
|
}
|
|
475
498
|
/**
|
|
476
499
|
* Construct a plane with
|
|
477
|
-
* * origin at the fractional position along the arc
|
|
478
|
-
* * x axis is the first derivative, i.e. tangent along the arc
|
|
500
|
+
* * origin at the fractional position along the arc.
|
|
501
|
+
* * x axis is the first derivative, i.e. tangent along the arc.
|
|
479
502
|
* * y axis is the second derivative, i.e. in the plane and on the center side of the tangent.
|
|
480
|
-
* If the arc is circular, the second derivative is directly towards the center
|
|
503
|
+
* If the arc is circular, the second derivative is directly towards the center.
|
|
481
504
|
*/
|
|
482
505
|
fractionToPointAnd2Derivatives(fraction, result) {
|
|
483
506
|
const radians = this._sweep.fractionToRadians(fraction);
|
|
@@ -493,8 +516,8 @@ export class Arc3d extends CurvePrimitive {
|
|
|
493
516
|
return result;
|
|
494
517
|
}
|
|
495
518
|
/**
|
|
496
|
-
* Evaluate the point and derivative with respect to the angle (in radians)
|
|
497
|
-
* @param radians angular position
|
|
519
|
+
* Evaluate the point and derivative with respect to the angle (in radians).
|
|
520
|
+
* @param radians angular position.
|
|
498
521
|
* @param result optional preallocated ray.
|
|
499
522
|
*/
|
|
500
523
|
radiansToPointAndDerivative(radians, result) {
|
|
@@ -506,8 +529,8 @@ export class Arc3d extends CurvePrimitive {
|
|
|
506
529
|
return result;
|
|
507
530
|
}
|
|
508
531
|
/**
|
|
509
|
-
* Evaluate the point with respect to the angle (in radians)
|
|
510
|
-
* @param radians angular position
|
|
532
|
+
* Evaluate the point with respect to the angle (in radians).
|
|
533
|
+
* @param radians angular position.
|
|
511
534
|
* @param result optional preallocated ray.
|
|
512
535
|
*/
|
|
513
536
|
radiansToPoint(radians, result) {
|
|
@@ -519,11 +542,11 @@ export class Arc3d extends CurvePrimitive {
|
|
|
519
542
|
}
|
|
520
543
|
/**
|
|
521
544
|
* Return a parametric plane with
|
|
522
|
-
* * origin at arc center
|
|
523
|
-
* * vectorU from center to arc at angle (in radians)
|
|
545
|
+
* * origin at arc center.
|
|
546
|
+
* * vectorU from center to arc at angle (in radians).
|
|
524
547
|
* * vectorV from center to arc at 90 degrees past the angle.
|
|
525
|
-
* @param radians angular position
|
|
526
|
-
* @param result optional preallocated plane
|
|
548
|
+
* @param radians angular position.
|
|
549
|
+
* @param result optional preallocated plane.
|
|
527
550
|
*/
|
|
528
551
|
radiansToRotatedBasis(radians, result) {
|
|
529
552
|
result = result ? result : Plane3dByOriginAndVectors.createXYPlane();
|
|
@@ -535,8 +558,8 @@ export class Arc3d extends CurvePrimitive {
|
|
|
535
558
|
return result;
|
|
536
559
|
}
|
|
537
560
|
/**
|
|
538
|
-
* Evaluate the point and derivative with respect to the angle (in radians)
|
|
539
|
-
* @param theta angular position
|
|
561
|
+
* Evaluate the point and derivative with respect to the angle (in radians).
|
|
562
|
+
* @param theta angular position.
|
|
540
563
|
* @param result optional preallocated ray.
|
|
541
564
|
*/
|
|
542
565
|
angleToPointAndDerivative(theta, result) {
|
|
@@ -549,14 +572,14 @@ export class Arc3d extends CurvePrimitive {
|
|
|
549
572
|
}
|
|
550
573
|
/**
|
|
551
574
|
* Return the start point of the arc.
|
|
552
|
-
* @param result optional preallocated result
|
|
575
|
+
* @param result optional preallocated result.
|
|
553
576
|
*/
|
|
554
577
|
startPoint(result) {
|
|
555
578
|
return this.fractionToPoint(0.0, result);
|
|
556
579
|
}
|
|
557
580
|
/**
|
|
558
581
|
* Return the end point of the arc.
|
|
559
|
-
* @param result optional preallocated result
|
|
582
|
+
* @param result optional preallocated result.
|
|
560
583
|
*/
|
|
561
584
|
endPoint(result) {
|
|
562
585
|
return this.fractionToPoint(1.0, result);
|
|
@@ -628,9 +651,9 @@ export class Arc3d extends CurvePrimitive {
|
|
|
628
651
|
return chordSum * factor;
|
|
629
652
|
}
|
|
630
653
|
/**
|
|
631
|
-
* * See extended comments on `CurvePrimitive.moveSignedDistanceFromFraction
|
|
632
|
-
* * A zero length line generates `CurveSearchStatus.error
|
|
633
|
-
* * Nonzero length line generates `CurveSearchStatus.success` or `CurveSearchStatus.stoppedAtBoundary
|
|
654
|
+
* * See extended comments on `CurvePrimitive.moveSignedDistanceFromFraction`.
|
|
655
|
+
* * A zero length line generates `CurveSearchStatus.error`.
|
|
656
|
+
* * Nonzero length line generates `CurveSearchStatus.success` or `CurveSearchStatus.stoppedAtBoundary`.
|
|
634
657
|
*/
|
|
635
658
|
moveSignedDistanceFromFraction(startFraction, signedDistance, allowExtension, result) {
|
|
636
659
|
if (!this.isCircular) // suppress extension !!!
|
|
@@ -644,7 +667,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
644
667
|
}
|
|
645
668
|
/**
|
|
646
669
|
* Return all radian angles where the ellipse tangent is perpendicular to the vector to a spacePoint.
|
|
647
|
-
* @param spacePoint point of origin of vectors to the ellipse
|
|
670
|
+
* @param spacePoint point of origin of vectors to the ellipse.
|
|
648
671
|
* @param _extend always true. Sweep is ignored: perpendiculars for the full ellipse are returned.
|
|
649
672
|
* @param endpoints if true, force the end radians into the result.
|
|
650
673
|
*/
|
|
@@ -713,7 +736,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
713
736
|
/**
|
|
714
737
|
* Apply a transform to the arc basis vectors.
|
|
715
738
|
* * nonuniform (i.e. skewing) transforms are allowed.
|
|
716
|
-
* * The transformed vector0 and vector90 are NOT squared up as major minor axes
|
|
739
|
+
* * The transformed vector0 and vector90 are NOT squared up as major minor axes (this is a good feature).
|
|
717
740
|
*/
|
|
718
741
|
tryTransformInPlace(transform) {
|
|
719
742
|
this._center = transform.multiplyPoint3d(this._center, this._center);
|
|
@@ -722,10 +745,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
722
745
|
this.setVector0Vector90(this._matrix.columnX(), this._matrix.columnY());
|
|
723
746
|
return true;
|
|
724
747
|
}
|
|
725
|
-
/**
|
|
726
|
-
* Return true if the ellipse center and basis vectors are in the plane
|
|
727
|
-
* @param plane
|
|
728
|
-
*/
|
|
748
|
+
/** Return true if the ellipse center and basis vectors are in the plane. */
|
|
729
749
|
isInPlane(plane) {
|
|
730
750
|
const normal = plane.getNormalRef();
|
|
731
751
|
// The ellipse vectors are full-length -- true distance comparisons say things.
|
|
@@ -753,17 +773,17 @@ export class Arc3d extends CurvePrimitive {
|
|
|
753
773
|
return Geometry.hypotenuseXY(ux, uy);
|
|
754
774
|
return undefined;
|
|
755
775
|
}
|
|
756
|
-
/** If the arc is circular, return its radius. Otherwise return undefined */
|
|
776
|
+
/** If the arc is circular, return its radius. Otherwise return undefined. */
|
|
757
777
|
circularRadius() {
|
|
758
778
|
return this.isCircular ? this._matrix.columnXMagnitude() : undefined;
|
|
759
779
|
}
|
|
760
|
-
/** Return the larger of the two defining vectors. */
|
|
780
|
+
/** Return the larger length of the two defining vectors. */
|
|
761
781
|
maxVectorLength() {
|
|
762
782
|
return Math.max(this._matrix.columnXMagnitude(), this._matrix.columnYMagnitude());
|
|
763
783
|
}
|
|
764
784
|
/**
|
|
765
785
|
* Compute intersections with a plane.
|
|
766
|
-
* @param plane plane to intersect
|
|
786
|
+
* @param plane plane to intersect.
|
|
767
787
|
* @param result array of locations on the curve.
|
|
768
788
|
*/
|
|
769
789
|
appendPlaneIntersectionPoints(plane, result) {
|
|
@@ -826,8 +846,8 @@ export class Arc3d extends CurvePrimitive {
|
|
|
826
846
|
range.extend(highPoint);
|
|
827
847
|
}
|
|
828
848
|
/**
|
|
829
|
-
* Returns a (high accuracy) range of the curve between fractional positions
|
|
830
|
-
* * Default implementation returns teh range of the curve from clonePartialCurve
|
|
849
|
+
* Returns a (high accuracy) range of the curve between fractional positions.
|
|
850
|
+
* * Default implementation returns teh range of the curve from clonePartialCurve.
|
|
831
851
|
*/
|
|
832
852
|
rangeBetweenFractions(fraction0, fraction1, transform) {
|
|
833
853
|
const sweep = AngleSweep.createStartEndRadians(this.sweep.fractionToRadians(fraction0), this.sweep.fractionToRadians(fraction1));
|
|
@@ -837,7 +857,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
837
857
|
}
|
|
838
858
|
/**
|
|
839
859
|
* Set up a SineCosinePolynomial as the function c+u*cos(theta)+v*sin(theta) where
|
|
840
|
-
*
|
|
860
|
+
* c,u,v are coefficients obtained by evaluating altitude and velocity relative to the plane.
|
|
841
861
|
* @param plane plane for altitude calculation.
|
|
842
862
|
* @param result optional result.
|
|
843
863
|
* @internal
|
|
@@ -857,32 +877,32 @@ export class Arc3d extends CurvePrimitive {
|
|
|
857
877
|
}
|
|
858
878
|
/**
|
|
859
879
|
* Create a new arc which is parallel to the xy plane, with given center and radius and optional angle sweep.
|
|
860
|
-
* @param center center of arc
|
|
861
|
-
* @param radius radius of arc
|
|
862
|
-
* @param sweep sweep limits
|
|
880
|
+
* @param center center of arc.
|
|
881
|
+
* @param radius radius of arc.
|
|
882
|
+
* @param sweep sweep limits; defaults to full circle.
|
|
863
883
|
*/
|
|
864
884
|
static createXY(center, radius, sweep = AngleSweep.create360()) {
|
|
865
885
|
return new Arc3d(center.clone(), Matrix3d.createScale(radius, radius, 1.0), sweep.clone());
|
|
866
886
|
}
|
|
867
887
|
/**
|
|
868
888
|
* Create a new arc which is parallel to the xy plane, with given center and x,y radii, and optional angle sweep
|
|
869
|
-
* @param center center of ellipse
|
|
870
|
-
* @param radiusA x axis radius
|
|
871
|
-
* @param radiusB y axis radius
|
|
872
|
-
* @param sweep angle sweep
|
|
889
|
+
* @param center center of ellipse.
|
|
890
|
+
* @param radiusA x axis radius.
|
|
891
|
+
* @param radiusB y axis radius.
|
|
892
|
+
* @param sweep angle sweep.
|
|
873
893
|
*/
|
|
874
894
|
static createXYEllipse(center, radiusA, radiusB, sweep = AngleSweep.create360()) {
|
|
875
895
|
return new Arc3d(center.clone(), Matrix3d.createScale(radiusA, radiusB, 1.0), sweep.clone());
|
|
876
896
|
}
|
|
877
897
|
/**
|
|
878
898
|
* Replace the arc's 0 and 90 degree vectors.
|
|
879
|
-
* @param vector0 vector from center to ellipse point at 0 degrees in parameter space
|
|
880
|
-
* @param vector90 vector from center to ellipse point at 90 degrees in parameter space
|
|
899
|
+
* @param vector0 vector from center to ellipse point at 0 degrees in parameter space.
|
|
900
|
+
* @param vector90 vector from center to ellipse point at 90 degrees in parameter space.
|
|
881
901
|
*/
|
|
882
902
|
setVector0Vector90(vector0, vector90) {
|
|
883
903
|
this._matrix.setColumns(vector0, vector90, vector0.unitCrossProductWithDefault(vector90, 0, 0, 0));
|
|
884
904
|
}
|
|
885
|
-
/** Return the arc definition with rigid matrix form with axis radii */
|
|
905
|
+
/** Return the arc definition with rigid matrix form with axis radii. */
|
|
886
906
|
toScaledMatrix3d() {
|
|
887
907
|
const angleData = Angle.dotProductsToHalfAngleTrigValues(this._matrix.columnXMagnitudeSquared(), this._matrix.columnYMagnitudeSquared(), this._matrix.columnXDotColumnY(), true);
|
|
888
908
|
const vector0A = this._matrix.multiplyXY(angleData.c, angleData.s);
|
|
@@ -896,7 +916,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
896
916
|
sweep: this.sweep.cloneMinusRadians(angleData.radians),
|
|
897
917
|
};
|
|
898
918
|
}
|
|
899
|
-
/** Return the arc definition with center, two vectors, and angle sweep
|
|
919
|
+
/** Return the arc definition with center, two vectors, and angle sweep. */
|
|
900
920
|
toVectors() {
|
|
901
921
|
return {
|
|
902
922
|
center: this.center.clone(),
|
|
@@ -931,9 +951,9 @@ export class Arc3d extends CurvePrimitive {
|
|
|
931
951
|
}
|
|
932
952
|
/**
|
|
933
953
|
* Set this arc from a json object with these values:
|
|
934
|
-
* * center center point
|
|
935
|
-
* * vector0 vector from center to 0 degree point in parameter space (commonly but not always the major axis vector)
|
|
936
|
-
* * vector90 vector from center to 90 degree point in parameter space (commonly but not always the minor axis vector)
|
|
954
|
+
* * center center point.
|
|
955
|
+
* * vector0 vector from center to 0 degree point in parameter space (commonly but not always the major axis vector).
|
|
956
|
+
* * vector90 vector from center to 90 degree point in parameter space (commonly but not always the minor axis vector).
|
|
937
957
|
* @param json
|
|
938
958
|
*/
|
|
939
959
|
setFromJSON(json) {
|
|
@@ -964,22 +984,22 @@ export class Arc3d extends CurvePrimitive {
|
|
|
964
984
|
vector90: this._matrix.columnY().toJSON(),
|
|
965
985
|
};
|
|
966
986
|
}
|
|
967
|
-
/** Test if this arc is almost equal to another GeometryQuery object */
|
|
968
|
-
isAlmostEqual(otherGeometry) {
|
|
987
|
+
/** Test if this arc is almost equal to another GeometryQuery object. */
|
|
988
|
+
isAlmostEqual(otherGeometry, distanceTol = Geometry.smallMetricDistance, radianTol = Geometry.smallAngleRadians) {
|
|
969
989
|
if (otherGeometry instanceof Arc3d) {
|
|
970
990
|
const other = otherGeometry;
|
|
971
|
-
return this._center.isAlmostEqual(other._center)
|
|
972
|
-
&& this._matrix.isAlmostEqual(other._matrix)
|
|
973
|
-
&& this._sweep.isAlmostEqualAllowPeriodShift(other._sweep);
|
|
991
|
+
return this._center.isAlmostEqual(other._center, distanceTol)
|
|
992
|
+
&& this._matrix.isAlmostEqual(other._matrix, distanceTol)
|
|
993
|
+
&& this._sweep.isAlmostEqualAllowPeriodShift(other._sweep, radianTol);
|
|
974
994
|
}
|
|
975
995
|
return false;
|
|
976
996
|
}
|
|
977
|
-
/** Emit strokes to caller-supplied linestring */
|
|
997
|
+
/** Emit strokes to caller-supplied linestring. */
|
|
978
998
|
emitStrokes(dest, options) {
|
|
979
999
|
const numStrokes = this.computeStrokeCountForOptions(options);
|
|
980
1000
|
dest.appendFractionalStrokePoints(this, numStrokes, 0.0, 1.0, true);
|
|
981
1001
|
}
|
|
982
|
-
/** Emit strokes to caller-supplied handler */
|
|
1002
|
+
/** Emit strokes to caller-supplied handler. */
|
|
983
1003
|
emitStrokableParts(handler, options) {
|
|
984
1004
|
const numStrokes = this.computeStrokeCountForOptions(options);
|
|
985
1005
|
handler.startCurvePrimitive(this);
|
|
@@ -988,7 +1008,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
988
1008
|
}
|
|
989
1009
|
/**
|
|
990
1010
|
* Return the stroke count required for given options.
|
|
991
|
-
* @param options StrokeOptions that determine count
|
|
1011
|
+
* @param options StrokeOptions that determine count.
|
|
992
1012
|
*/
|
|
993
1013
|
computeStrokeCountForOptions(options) {
|
|
994
1014
|
let numStroke;
|
|
@@ -1001,14 +1021,14 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1001
1021
|
}
|
|
1002
1022
|
return numStroke;
|
|
1003
1023
|
}
|
|
1004
|
-
/** Second step of double dispatch:
|
|
1024
|
+
/** Second step of double dispatch: call `handler.handleArc3d(this)` */
|
|
1005
1025
|
dispatchToGeometryHandler(handler) {
|
|
1006
1026
|
return handler.handleArc3d(this);
|
|
1007
1027
|
}
|
|
1008
1028
|
/**
|
|
1009
1029
|
* Return (if possible) an arc which is a portion of this curve.
|
|
1010
|
-
* @param fractionA
|
|
1011
|
-
* @param fractionB
|
|
1030
|
+
* @param fractionA start fraction.
|
|
1031
|
+
* @param fractionB end fraction.
|
|
1012
1032
|
*/
|
|
1013
1033
|
clonePartialCurve(fractionA, fractionB) {
|
|
1014
1034
|
if (fractionB < fractionA) {
|
|
@@ -1022,8 +1042,8 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1022
1042
|
}
|
|
1023
1043
|
/**
|
|
1024
1044
|
* Return an arc whose basis vectors are rotated by given angle within the current basis space.
|
|
1025
|
-
* * the result arc will have its zero-degree point (new `vector0`) at the current
|
|
1026
|
-
* `vector0 * cos(theta) + vector90 * sin(theta)
|
|
1045
|
+
* * the result arc will have its zero-degree point (new `vector0`) at the current.
|
|
1046
|
+
* `vector0 * cos(theta) + vector90 * sin(theta)`.
|
|
1027
1047
|
* * the result sweep is adjusted so all fractional coordinates (e.g. start and end) evaluate to the same xyz.
|
|
1028
1048
|
* * Specifically, theta is subtracted from the original start and end angles.
|
|
1029
1049
|
* @param theta the angle (in the input arc space) which is to become the 0-degree point in the new arc.
|
|
@@ -1038,10 +1058,10 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1038
1058
|
return arcB;
|
|
1039
1059
|
}
|
|
1040
1060
|
/**
|
|
1041
|
-
* Find intervals of this CurvePrimitive that are interior to a clipper
|
|
1042
|
-
* @param clipper clip structure (e.g.clip planes)
|
|
1043
|
-
* @param announce(optional) function to be called announcing fractional intervals
|
|
1044
|
-
* `
|
|
1061
|
+
* Find intervals of this CurvePrimitive that are interior to a clipper.
|
|
1062
|
+
* @param clipper clip structure (e.g.clip planes).
|
|
1063
|
+
* @param announce (optional) function to be called announcing fractional intervals
|
|
1064
|
+
* `announce(fraction0, fraction1, curvePrimitive)`.
|
|
1045
1065
|
* @returns true if any "in" segments are announced.
|
|
1046
1066
|
*/
|
|
1047
1067
|
announceClipIntervals(clipper, announce) {
|
|
@@ -1053,7 +1073,12 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1053
1073
|
const otherVector0 = this._matrix.multiplyInverse(other.vector0);
|
|
1054
1074
|
const otherVector90 = this._matrix.multiplyInverse(other.vector90);
|
|
1055
1075
|
if (otherOrigin && otherVector0 && otherVector90) {
|
|
1056
|
-
return {
|
|
1076
|
+
return {
|
|
1077
|
+
center: otherOrigin,
|
|
1078
|
+
vector0: otherVector0,
|
|
1079
|
+
vector90: otherVector90,
|
|
1080
|
+
sweep: this.sweep.clone(),
|
|
1081
|
+
};
|
|
1057
1082
|
}
|
|
1058
1083
|
return undefined;
|
|
1059
1084
|
}
|
|
@@ -1061,20 +1086,20 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1061
1086
|
* Determine an arc "at a point of inflection" of a point sequence.
|
|
1062
1087
|
* * Return the arc along with the fractional positions of the tangency points.
|
|
1063
1088
|
* * In the returned object:
|
|
1064
|
-
* * `arc` is the (bounded) arc
|
|
1089
|
+
* * `arc` is the (bounded) arc.
|
|
1065
1090
|
* * `fraction10` is the tangency point's position as an interpolating fraction of the line segment from
|
|
1066
|
-
* `point1` (backwards) to `point0
|
|
1091
|
+
* `point1` (backwards) to `point0`.
|
|
1067
1092
|
* * `fraction12` is the tangency point's position as an interpolating fraction of the line segment from
|
|
1068
|
-
* `point1` (forward) to `point2
|
|
1093
|
+
* `point1` (forward) to `point2`.
|
|
1069
1094
|
* * `point` is the `point1` input.
|
|
1070
1095
|
* * If unable to construct the arc:
|
|
1071
1096
|
* * `point` is the `point1` input.
|
|
1072
|
-
* * both fractions are zero
|
|
1097
|
+
* * both fractions are zero.
|
|
1073
1098
|
* * `arc` is undefined.
|
|
1074
|
-
* @param point0 first point of path
|
|
1075
|
-
* @param point1 second point of path (the point of inflection)
|
|
1076
|
-
* @param point2 third point of path (the point after the point of inflection)
|
|
1077
|
-
* @param radius arc radius
|
|
1099
|
+
* @param point0 first point of path (the point before the point of inflection).
|
|
1100
|
+
* @param point1 second point of path (the point of inflection).
|
|
1101
|
+
* @param point2 third point of path (the point after the point of inflection).
|
|
1102
|
+
* @param radius arc radius.
|
|
1078
1103
|
*
|
|
1079
1104
|
*/
|
|
1080
1105
|
static createFilletArc(point0, point1, point2, radius) {
|
|
@@ -1109,11 +1134,11 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1109
1134
|
}
|
|
1110
1135
|
return { fraction10: 0.0, fraction12: 0.0, point: point1.clone() };
|
|
1111
1136
|
}
|
|
1112
|
-
/** Scale the vector0 and vector90 vectors by `scaleFactor
|
|
1137
|
+
/** Scale the vector0 and vector90 vectors by `scaleFactor`. */
|
|
1113
1138
|
scaleAboutCenterInPlace(scaleFactor) {
|
|
1114
1139
|
this._matrix.scaleColumnsInPlace(scaleFactor, scaleFactor, 1.0);
|
|
1115
1140
|
}
|
|
1116
|
-
/** Return the (signed!) area between (a fractional portion of) the arc and the chord between those points */
|
|
1141
|
+
/** Return the (signed!) area between (a fractional portion of) the arc and the chord between those points. */
|
|
1117
1142
|
areaToChordXY(fraction0, fraction1) {
|
|
1118
1143
|
let detJ = Geometry.crossProductXYXY(this._matrix.coffs[0], this._matrix.coffs[3], this._matrix.coffs[1], this._matrix.coffs[4]);
|
|
1119
1144
|
// areas in arc of unit circle with radians limits
|
|
@@ -1128,7 +1153,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1128
1153
|
}
|
|
1129
1154
|
/**
|
|
1130
1155
|
* Construct an offset of the instance curve as viewed in the xy-plane (ignoring z).
|
|
1131
|
-
* @param offsetDistanceOrOptions offset distance (positive to left of the instance curve), or options object
|
|
1156
|
+
* @param offsetDistanceOrOptions offset distance (positive to left of the instance curve), or options object.
|
|
1132
1157
|
*/
|
|
1133
1158
|
constructOffsetXY(offsetDistanceOrOptions) {
|
|
1134
1159
|
const options = OffsetOptions.create(offsetDistanceOrOptions);
|
|
@@ -1160,7 +1185,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1160
1185
|
/**
|
|
1161
1186
|
* Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of projection.
|
|
1162
1187
|
* @param ray ray onto which the instance is projected. A `Vector3d` is treated as a `Ray3d` with zero origin.
|
|
1163
|
-
* @param lowHigh optional receiver for output
|
|
1188
|
+
* @param lowHigh optional receiver for output.
|
|
1164
1189
|
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the end of the ray.
|
|
1165
1190
|
*/
|
|
1166
1191
|
projectedParameterRange(ray, lowHigh) {
|
|
@@ -1168,7 +1193,7 @@ export class Arc3d extends CurvePrimitive {
|
|
|
1168
1193
|
}
|
|
1169
1194
|
/**
|
|
1170
1195
|
* Construct a circular arc chain approximation to the instance elliptical arc.
|
|
1171
|
-
* @param options bundle of options for sampling an elliptical arc (use default options if undefined)
|
|
1196
|
+
* @param options bundle of options for sampling an elliptical arc (use default options if undefined).
|
|
1172
1197
|
* @returns the approximating curve chain, the circular instance, or undefined if construction fails.
|
|
1173
1198
|
*/
|
|
1174
1199
|
constructCircularArcChainApproximation(options) {
|
|
@@ -1189,8 +1214,8 @@ Arc3d._workVectorV = Vector3d.create();
|
|
|
1189
1214
|
Arc3d._workVectorW = Vector3d.create();
|
|
1190
1215
|
// !! misspelled Gauss in the published static !! Declare it ok.
|
|
1191
1216
|
// cspell::word Guass
|
|
1192
|
-
/** Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep) */
|
|
1217
|
+
/** Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep). */
|
|
1193
1218
|
Arc3d.quadratureGuassCount = 5;
|
|
1194
|
-
/** In quadrature for arc length, use this interval (divided by quickEccentricity) */
|
|
1219
|
+
/** In quadrature for arc length, use this interval (divided by quickEccentricity). */
|
|
1195
1220
|
Arc3d.quadratureIntervalAngleDegrees = 10.0;
|
|
1196
1221
|
//# sourceMappingURL=Arc3d.js.map
|