@itwin/core-geometry 5.3.0-dev.12 → 5.3.0-dev.15
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 +11 -1
- package/lib/cjs/Constant.js.map +1 -1
- package/lib/cjs/Geometry.js.map +1 -1
- package/lib/cjs/bspline/AkimaCurve3d.js.map +1 -1
- package/lib/cjs/bspline/BSpline1dNd.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurve3dH.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
- package/lib/cjs/bspline/BSplineSurface.js.map +1 -1
- package/lib/cjs/bspline/Bezier1dNd.js.map +1 -1
- package/lib/cjs/bspline/BezierCurve3d.js.map +1 -1
- package/lib/cjs/bspline/BezierCurve3dH.js.map +1 -1
- package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
- package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
- package/lib/cjs/bspline/KnotVector.js.map +1 -1
- package/lib/cjs/bspline/SurfaceLocationDetail.js.map +1 -1
- package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
- package/lib/cjs/clipping/BooleanClipFactory.js.map +1 -1
- package/lib/cjs/clipping/BooleanClipNode.js.map +1 -1
- package/lib/cjs/clipping/ClipPlane.js.map +1 -1
- package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
- package/lib/cjs/clipping/ClipUtils.js.map +1 -1
- package/lib/cjs/clipping/ClipVector.js.map +1 -1
- package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
- package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
- package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
- package/lib/cjs/core-geometry.js.map +1 -1
- package/lib/cjs/curve/Arc3d.js.map +1 -1
- package/lib/cjs/curve/ConstructCurveBetweenCurves.js.map +1 -1
- package/lib/cjs/curve/CoordinateXYZ.js.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/cjs/curve/CurveCollection.js.map +1 -1
- package/lib/cjs/curve/CurveCurve.js.map +1 -1
- package/lib/cjs/curve/CurveExtendMode.js.map +1 -1
- package/lib/cjs/curve/CurveFactory.d.ts +25 -8
- package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
- package/lib/cjs/curve/CurveFactory.js +51 -55
- package/lib/cjs/curve/CurveFactory.js.map +1 -1
- package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
- package/lib/cjs/curve/CurveOps.js.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
- package/lib/cjs/curve/CurveProcessor.js.map +1 -1
- package/lib/cjs/curve/CurveTypes.js.map +1 -1
- package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -1
- package/lib/cjs/curve/GeometryQuery.js.map +1 -1
- package/lib/cjs/curve/LineSegment3d.js.map +1 -1
- package/lib/cjs/curve/LineString3d.js.map +1 -1
- package/lib/cjs/curve/Loop.js.map +1 -1
- package/lib/cjs/curve/OffsetOptions.js.map +1 -1
- package/lib/cjs/curve/ParityRegion.js.map +1 -1
- package/lib/cjs/curve/Path.js.map +1 -1
- package/lib/cjs/curve/PointString3d.js.map +1 -1
- package/lib/cjs/curve/ProxyCurve.js.map +1 -1
- package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
- package/lib/cjs/curve/Query/CurveSplitContext.js.map +1 -1
- package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -1
- package/lib/cjs/curve/Query/InOutTests.js.map +1 -1
- package/lib/cjs/curve/Query/PlanarSubdivision.js.map +1 -1
- package/lib/cjs/curve/Query/StrokeCountChain.js.map +1 -1
- package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
- package/lib/cjs/curve/RegionMomentsXY.js.map +1 -1
- package/lib/cjs/curve/RegionOps.js.map +1 -1
- package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/cjs/curve/StrokeOptions.js.map +1 -1
- package/lib/cjs/curve/UnionRegion.js.map +1 -1
- package/lib/cjs/curve/internalContexts/AnnounceTangentStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/ChainCollectorContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CloneCurvesContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
- package/lib/cjs/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveLengthContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
- package/lib/cjs/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/TransferWithSplitArcs.js.map +1 -1
- package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -1
- package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -1
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -1
- package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -1
- package/lib/cjs/geometry3d/Angle.js.map +1 -1
- package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
- package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
- package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -1
- package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
- package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/cjs/geometry3d/FrustumAnimation.js.map +1 -1
- package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.d.ts +96 -98
- package/lib/cjs/geometry3d/GrowableXYArray.d.ts.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.js +121 -110
- package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.d.ts +135 -142
- package/lib/cjs/geometry3d/GrowableXYZArray.d.ts.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.js +165 -160
- package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts +51 -34
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.js +16 -6
- package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +78 -77
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.js +38 -35
- package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
- package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
- package/lib/cjs/geometry3d/Plane3d.js.map +1 -1
- package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
- package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
- package/lib/cjs/geometry3d/PointStreaming.js.map +1 -1
- package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
- package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
- package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
- package/lib/cjs/geometry3d/Range.js.map +1 -1
- package/lib/cjs/geometry3d/Ray2d.js.map +1 -1
- package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
- package/lib/cjs/geometry3d/ReusableObjectCache.js.map +1 -1
- package/lib/cjs/geometry3d/Segment1d.js.map +1 -1
- package/lib/cjs/geometry3d/SortablePolygon.js.map +1 -1
- package/lib/cjs/geometry3d/Transform.js.map +1 -1
- package/lib/cjs/geometry3d/UVSurfaceOps.js.map +1 -1
- package/lib/cjs/geometry3d/XYZProps.js.map +1 -1
- package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
- package/lib/cjs/geometry4d/Map4d.js.map +1 -1
- package/lib/cjs/geometry4d/Matrix4d.js.map +1 -1
- package/lib/cjs/geometry4d/MomentData.js.map +1 -1
- package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
- package/lib/cjs/geometry4d/Point4d.js.map +1 -1
- package/lib/cjs/numerics/BandedSystem.js.map +1 -1
- package/lib/cjs/numerics/BezierPolynomials.js.map +1 -1
- package/lib/cjs/numerics/ClusterableArray.js.map +1 -1
- package/lib/cjs/numerics/Complex.js.map +1 -1
- package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -1
- package/lib/cjs/numerics/Newton.js.map +1 -1
- package/lib/cjs/numerics/PascalCoefficients.js.map +1 -1
- package/lib/cjs/numerics/PolarData.js.map +1 -1
- package/lib/cjs/numerics/Polynomials.js.map +1 -1
- package/lib/cjs/numerics/Quadrature.js.map +1 -1
- package/lib/cjs/numerics/Range1dArray.js.map +1 -1
- package/lib/cjs/numerics/SmallSystem.js.map +1 -1
- package/lib/cjs/numerics/TriDiagonalSystem.js.map +1 -1
- package/lib/cjs/numerics/UnionFind.js.map +1 -1
- package/lib/cjs/numerics/UsageSums.js.map +1 -1
- package/lib/cjs/polyface/AuxData.js.map +1 -1
- package/lib/cjs/polyface/BoxTopology.js.map +1 -1
- package/lib/cjs/polyface/FacetFaceData.js.map +1 -1
- package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -1
- package/lib/cjs/polyface/FacetOrientation.js.map +1 -1
- package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
- package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/cjs/polyface/IndexedPolyfaceWalker.js.map +1 -1
- package/lib/cjs/polyface/Polyface.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/cjs/polyface/RangeLengthData.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/MinimumValueTester.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/RangeTreeNode.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
- package/lib/cjs/polyface/TaggedNumericData.js.map +1 -1
- package/lib/cjs/polyface/TriangleCandidate.js.map +1 -1
- package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.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/LinearSearchRange2dArray.js.map +1 -1
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
- package/lib/cjs/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
- package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -1
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
- package/lib/cjs/polyface/multiclip/XYPointBuckets.js.map +1 -1
- package/lib/cjs/serialization/BGFBAccessors.js.map +1 -1
- package/lib/cjs/serialization/BGFBReader.js.map +1 -1
- package/lib/cjs/serialization/BGFBWriter.js.map +1 -1
- package/lib/cjs/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
- package/lib/cjs/serialization/DeepCompare.js.map +1 -1
- package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
- package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
- package/lib/cjs/serialization/SerializationHelpers.js.map +1 -1
- package/lib/cjs/solid/Box.js.map +1 -1
- package/lib/cjs/solid/Cone.js.map +1 -1
- package/lib/cjs/solid/LinearSweep.js.map +1 -1
- package/lib/cjs/solid/RotationalSweep.js.map +1 -1
- package/lib/cjs/solid/RuledSweep.js.map +1 -1
- package/lib/cjs/solid/SolidPrimitive.js.map +1 -1
- package/lib/cjs/solid/Sphere.js.map +1 -1
- package/lib/cjs/solid/SweepContour.js.map +1 -1
- package/lib/cjs/solid/TorusPipe.js.map +1 -1
- package/lib/cjs/topology/ChainMerge.js.map +1 -1
- package/lib/cjs/topology/Graph.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphValidation.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeMarkSet.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeNodeXYZUV.js.map +1 -1
- package/lib/cjs/topology/HalfEdgePointInGraphSearch.js.map +1 -1
- package/lib/cjs/topology/HalfEdgePositionDetail.js.map +1 -1
- package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -1
- package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -1
- package/lib/cjs/topology/MaskManager.js.map +1 -1
- package/lib/cjs/topology/Merging.js.map +1 -1
- package/lib/cjs/topology/RegularizeFace.js.map +1 -1
- package/lib/cjs/topology/SignedDataSummary.js.map +1 -1
- package/lib/cjs/topology/SpaceTriangulation.js.map +1 -1
- package/lib/cjs/topology/Triangulation.js.map +1 -1
- package/lib/cjs/topology/Voronoi.js.map +1 -1
- package/lib/cjs/topology/XYParitySearchContext.js.map +1 -1
- package/lib/esm/Constant.js.map +1 -1
- package/lib/esm/Geometry.js.map +1 -1
- package/lib/esm/bspline/AkimaCurve3d.js.map +1 -1
- package/lib/esm/bspline/BSpline1dNd.js.map +1 -1
- package/lib/esm/bspline/BSplineCurve.js.map +1 -1
- package/lib/esm/bspline/BSplineCurve3dH.js.map +1 -1
- package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
- package/lib/esm/bspline/BSplineSurface.js.map +1 -1
- package/lib/esm/bspline/Bezier1dNd.js.map +1 -1
- package/lib/esm/bspline/BezierCurve3d.js.map +1 -1
- package/lib/esm/bspline/BezierCurve3dH.js.map +1 -1
- package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
- package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
- package/lib/esm/bspline/KnotVector.js.map +1 -1
- package/lib/esm/bspline/SurfaceLocationDetail.js.map +1 -1
- package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
- package/lib/esm/clipping/BooleanClipFactory.js.map +1 -1
- package/lib/esm/clipping/BooleanClipNode.js.map +1 -1
- package/lib/esm/clipping/ClipPlane.js.map +1 -1
- package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
- package/lib/esm/clipping/ClipUtils.js.map +1 -1
- package/lib/esm/clipping/ClipVector.js.map +1 -1
- package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
- package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
- package/lib/esm/core-geometry.js.map +1 -1
- package/lib/esm/curve/Arc3d.js.map +1 -1
- package/lib/esm/curve/ConstructCurveBetweenCurves.js.map +1 -1
- package/lib/esm/curve/CoordinateXYZ.js.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/esm/curve/CurveCollection.js.map +1 -1
- package/lib/esm/curve/CurveCurve.js.map +1 -1
- package/lib/esm/curve/CurveExtendMode.js.map +1 -1
- package/lib/esm/curve/CurveFactory.d.ts +25 -8
- package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
- package/lib/esm/curve/CurveFactory.js +51 -55
- package/lib/esm/curve/CurveFactory.js.map +1 -1
- package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
- package/lib/esm/curve/CurveOps.js.map +1 -1
- package/lib/esm/curve/CurvePrimitive.js.map +1 -1
- package/lib/esm/curve/CurveProcessor.js.map +1 -1
- package/lib/esm/curve/CurveTypes.js.map +1 -1
- package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -1
- package/lib/esm/curve/GeometryQuery.js.map +1 -1
- package/lib/esm/curve/LineSegment3d.js.map +1 -1
- package/lib/esm/curve/LineString3d.js.map +1 -1
- package/lib/esm/curve/Loop.js.map +1 -1
- package/lib/esm/curve/OffsetOptions.js.map +1 -1
- package/lib/esm/curve/ParityRegion.js.map +1 -1
- package/lib/esm/curve/Path.js.map +1 -1
- package/lib/esm/curve/PointString3d.js.map +1 -1
- package/lib/esm/curve/ProxyCurve.js.map +1 -1
- package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
- package/lib/esm/curve/Query/CurveSplitContext.js.map +1 -1
- package/lib/esm/curve/Query/CylindricalRange.js.map +1 -1
- package/lib/esm/curve/Query/InOutTests.js.map +1 -1
- package/lib/esm/curve/Query/PlanarSubdivision.js.map +1 -1
- package/lib/esm/curve/Query/StrokeCountChain.js.map +1 -1
- package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
- package/lib/esm/curve/RegionMomentsXY.js.map +1 -1
- package/lib/esm/curve/RegionOps.js.map +1 -1
- package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/esm/curve/StrokeOptions.js.map +1 -1
- package/lib/esm/curve/UnionRegion.js.map +1 -1
- package/lib/esm/curve/internalContexts/AnnounceTangentStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/ChainCollectorContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CloneCurvesContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
- package/lib/esm/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveLengthContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
- package/lib/esm/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/TransferWithSplitArcs.js.map +1 -1
- package/lib/esm/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -1
- package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -1
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -1
- package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -1
- package/lib/esm/geometry3d/Angle.js.map +1 -1
- package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
- package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
- package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -1
- package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
- package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/esm/geometry3d/FrustumAnimation.js.map +1 -1
- package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
- package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -1
- package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.d.ts +96 -98
- package/lib/esm/geometry3d/GrowableXYArray.d.ts.map +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.js +122 -111
- package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.d.ts +135 -142
- package/lib/esm/geometry3d/GrowableXYZArray.d.ts.map +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.js +165 -160
- package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts +51 -34
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.js +14 -5
- package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +78 -77
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.js +38 -35
- package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
- package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
- package/lib/esm/geometry3d/Plane3d.js.map +1 -1
- package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
- package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
- package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
- package/lib/esm/geometry3d/PointStreaming.js.map +1 -1
- package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
- package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
- package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
- package/lib/esm/geometry3d/Range.js.map +1 -1
- package/lib/esm/geometry3d/Ray2d.js.map +1 -1
- package/lib/esm/geometry3d/Ray3d.js.map +1 -1
- package/lib/esm/geometry3d/ReusableObjectCache.js.map +1 -1
- package/lib/esm/geometry3d/Segment1d.js.map +1 -1
- package/lib/esm/geometry3d/SortablePolygon.js.map +1 -1
- package/lib/esm/geometry3d/Transform.js.map +1 -1
- package/lib/esm/geometry3d/UVSurfaceOps.js.map +1 -1
- package/lib/esm/geometry3d/XYZProps.js.map +1 -1
- package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
- package/lib/esm/geometry4d/Map4d.js.map +1 -1
- package/lib/esm/geometry4d/Matrix4d.js.map +1 -1
- package/lib/esm/geometry4d/MomentData.js.map +1 -1
- package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
- package/lib/esm/geometry4d/Point4d.js.map +1 -1
- package/lib/esm/numerics/BandedSystem.js.map +1 -1
- package/lib/esm/numerics/BezierPolynomials.js.map +1 -1
- package/lib/esm/numerics/ClusterableArray.js.map +1 -1
- package/lib/esm/numerics/Complex.js.map +1 -1
- package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -1
- package/lib/esm/numerics/Newton.js.map +1 -1
- package/lib/esm/numerics/PascalCoefficients.js.map +1 -1
- package/lib/esm/numerics/PolarData.js.map +1 -1
- package/lib/esm/numerics/Polynomials.js.map +1 -1
- package/lib/esm/numerics/Quadrature.js.map +1 -1
- package/lib/esm/numerics/Range1dArray.js.map +1 -1
- package/lib/esm/numerics/SmallSystem.js.map +1 -1
- package/lib/esm/numerics/TriDiagonalSystem.js.map +1 -1
- package/lib/esm/numerics/UnionFind.js.map +1 -1
- package/lib/esm/numerics/UsageSums.js.map +1 -1
- package/lib/esm/polyface/AuxData.js.map +1 -1
- package/lib/esm/polyface/BoxTopology.js.map +1 -1
- package/lib/esm/polyface/FacetFaceData.js.map +1 -1
- package/lib/esm/polyface/FacetLocationDetail.js.map +1 -1
- package/lib/esm/polyface/FacetOrientation.js.map +1 -1
- package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
- package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/esm/polyface/IndexedPolyfaceWalker.js.map +1 -1
- package/lib/esm/polyface/Polyface.js.map +1 -1
- package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
- package/lib/esm/polyface/PolyfaceData.js.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/esm/polyface/RangeLengthData.js.map +1 -1
- package/lib/esm/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
- package/lib/esm/polyface/RangeTree/MinimumValueTester.js.map +1 -1
- package/lib/esm/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
- package/lib/esm/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
- package/lib/esm/polyface/RangeTree/RangeTreeNode.js.map +1 -1
- package/lib/esm/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
- package/lib/esm/polyface/TaggedNumericData.js.map +1 -1
- package/lib/esm/polyface/TriangleCandidate.js.map +1 -1
- package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.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/LinearSearchRange2dArray.js.map +1 -1
- package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
- package/lib/esm/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
- package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -1
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
- package/lib/esm/polyface/multiclip/XYPointBuckets.js.map +1 -1
- package/lib/esm/serialization/BGFBAccessors.js.map +1 -1
- package/lib/esm/serialization/BGFBReader.js.map +1 -1
- package/lib/esm/serialization/BGFBWriter.js.map +1 -1
- package/lib/esm/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
- package/lib/esm/serialization/DeepCompare.js.map +1 -1
- package/lib/esm/serialization/GeometrySamples.js.map +1 -1
- package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
- package/lib/esm/serialization/SerializationHelpers.js.map +1 -1
- package/lib/esm/solid/Box.js.map +1 -1
- package/lib/esm/solid/Cone.js.map +1 -1
- package/lib/esm/solid/LinearSweep.js.map +1 -1
- package/lib/esm/solid/RotationalSweep.js.map +1 -1
- package/lib/esm/solid/RuledSweep.js.map +1 -1
- package/lib/esm/solid/SolidPrimitive.js.map +1 -1
- package/lib/esm/solid/Sphere.js.map +1 -1
- package/lib/esm/solid/SweepContour.js.map +1 -1
- package/lib/esm/solid/TorusPipe.js.map +1 -1
- package/lib/esm/topology/ChainMerge.js.map +1 -1
- package/lib/esm/topology/Graph.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphValidation.js.map +1 -1
- package/lib/esm/topology/HalfEdgeMarkSet.js.map +1 -1
- package/lib/esm/topology/HalfEdgeNodeXYZUV.js.map +1 -1
- package/lib/esm/topology/HalfEdgePointInGraphSearch.js.map +1 -1
- package/lib/esm/topology/HalfEdgePositionDetail.js.map +1 -1
- package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -1
- package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -1
- package/lib/esm/topology/MaskManager.js.map +1 -1
- package/lib/esm/topology/Merging.js.map +1 -1
- package/lib/esm/topology/RegularizeFace.js.map +1 -1
- package/lib/esm/topology/SignedDataSummary.js.map +1 -1
- package/lib/esm/topology/SpaceTriangulation.js.map +1 -1
- package/lib/esm/topology/Triangulation.js.map +1 -1
- package/lib/esm/topology/Voronoi.js.map +1 -1
- package/lib/esm/topology/XYParitySearchContext.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.IndexedXYCollection = void 0;
|
|
7
|
+
exports.IndexedReadWriteXYCollection = exports.IndexedXYCollection = void 0;
|
|
8
8
|
/** @packageDocumentation
|
|
9
9
|
* @module ArraysAndInterfaces
|
|
10
10
|
*/
|
|
11
11
|
const Point2dVector2d_1 = require("./Point2dVector2d");
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Abstract base class for access to XY data with indexed reference.
|
|
14
14
|
* * This allows algorithms to work with Point2d[] or GrowableXY.
|
|
15
15
|
* * GrowableXYArray implements these for its data.
|
|
16
16
|
* * Point2dArrayCarrier carries a (reference to) a Point2d[] and implements the methods with calls on that array reference.
|
|
@@ -20,7 +20,8 @@ const Point2dVector2d_1 = require("./Point2dVector2d");
|
|
|
20
20
|
*/
|
|
21
21
|
class IndexedXYCollection {
|
|
22
22
|
static _workPoint;
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Access x of indexed point.
|
|
24
25
|
* * Subclasses may wish to override with a more efficient implementation.
|
|
25
26
|
*/
|
|
26
27
|
getXAtUncheckedPointIndex(pointIndex) {
|
|
@@ -29,7 +30,8 @@ class IndexedXYCollection {
|
|
|
29
30
|
IndexedXYCollection._workPoint = pt; // allocate the cache
|
|
30
31
|
return pt ? pt.x : 0.0;
|
|
31
32
|
}
|
|
32
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Access y of indexed point.
|
|
33
35
|
* * Subclasses may wish to override with a more efficient implementation.
|
|
34
36
|
*/
|
|
35
37
|
getYAtUncheckedPointIndex(pointIndex) {
|
|
@@ -38,9 +40,10 @@ class IndexedXYCollection {
|
|
|
38
40
|
IndexedXYCollection._workPoint = pt; // allocate the cache
|
|
39
41
|
return pt ? pt.y : 0.0;
|
|
40
42
|
}
|
|
41
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Compute the linear combination s of the indexed p_i and given scales s_i.
|
|
42
45
|
* @param scales array of scales. For best results, scales should have same length as the instance.
|
|
43
|
-
* @param result optional pre-allocated object to fill and return
|
|
46
|
+
* @param result optional pre-allocated object to fill and return.
|
|
44
47
|
* @return s = sum(p_i * s_i), where i ranges from 0 to min(this.length, scales.length).
|
|
45
48
|
*/
|
|
46
49
|
linearCombination(scales, result) {
|
|
@@ -54,4 +57,11 @@ class IndexedXYCollection {
|
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
exports.IndexedXYCollection = IndexedXYCollection;
|
|
60
|
+
/**
|
|
61
|
+
* Abstract base class extends [[IndexedXYCollection]] with methods that modify the collection.
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
class IndexedReadWriteXYCollection extends IndexedXYCollection {
|
|
65
|
+
}
|
|
66
|
+
exports.IndexedReadWriteXYCollection = IndexedReadWriteXYCollection;
|
|
57
67
|
//# sourceMappingURL=IndexedXYCollection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexedXYCollection.js","sourceRoot":"","sources":["../../../src/geometry3d/IndexedXYCollection.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,uDAA0D;AAG1D;;;;;;;;GAQG;AACH,MAAsB,mBAAmB;
|
|
1
|
+
{"version":3,"file":"IndexedXYCollection.js","sourceRoot":"","sources":["../../../src/geometry3d/IndexedXYCollection.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,uDAA0D;AAG1D;;;;;;;;GAQG;AACH,MAAsB,mBAAmB;IAmD/B,MAAM,CAAC,UAAU,CAAW;IACpC;;;OAGG;IACI,yBAAyB,CAAC,UAAkB;QACjD,MAAM,EAAE,GAAG,IAAI,CAAC,6BAA6B,CAAC,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAC1F,IAAI,SAAS,KAAK,mBAAmB,CAAC,UAAU;YAC9C,mBAAmB,CAAC,UAAU,GAAG,EAAE,CAAC,CAAE,qBAAqB;QAC7D,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACzB,CAAC;IACD;;;OAGG;IACI,yBAAyB,CAAC,UAAkB;QACjD,MAAM,EAAE,GAAG,IAAI,CAAC,6BAA6B,CAAC,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAC1F,IAAI,SAAS,KAAK,mBAAmB,CAAC,UAAU;YAC9C,mBAAmB,CAAC,UAAU,GAAG,EAAE,CAAC,CAAE,qBAAqB;QAC7D,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACzB,CAAC;IACD;;;;;OAKG;IACI,iBAAiB,CAAC,MAAgB,EAAE,MAA2B;QACpE,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/C,MAAM,GAAG,GAAG,CAAC,MAAM,YAAY,0BAAQ,CAAC,CAAC,CAAC,CAAC,0BAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,yBAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACpG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;YAC3B,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC;YACvD,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAvFD,kDAuFC;AAED;;;GAGG;AACH,MAAsB,4BAA6B,SAAQ,mBAAmB;CAW7E;AAXD,oEAWC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module ArraysAndInterfaces\n */\n\nimport { Point2d, Vector2d, XY } from \"./Point2dVector2d\";\nimport { XAndY } from \"./XYZProps\";\n\n/**\n * Abstract base class for access to XY data with indexed reference.\n * * This allows algorithms to work with Point2d[] or GrowableXY.\n * * GrowableXYArray implements these for its data.\n * * Point2dArrayCarrier carries a (reference to) a Point2d[] and implements the methods with calls on that array reference.\n * * In addition to \"point by point\" accessors, other abstract members compute commonly useful vector data \"between points\".\n * * Methods that create vectors among multiple indices allow callers to avoid creating temporaries.\n * @public\n */\nexport abstract class IndexedXYCollection {\n /**\n * Get from `index` as a `Point2d`.\n * @param index index of point within the array.\n * @param result optional caller-allocated destination.\n * @returns undefined if the index is out of bounds.\n */\n public abstract getPoint2dAtCheckedPointIndex(index: number, result?: Point2d): Point2d | undefined;\n /**\n * Get from `index` as a `Vector2d`.\n * @param index index of point within the array.\n * @param result optional caller-allocated destination.\n * @returns undefined if the index is out of bounds.\n */\n public abstract getVector2dAtCheckedVectorIndex(index: number, result?: Vector2d): Vector2d | undefined;\n /**\n * Return a vector from the point at `indexA` to the point at `indexB`.\n * @param indexA index of point within the array.\n * @param indexB index of point within the array.\n * @param result optional caller-allocated vector.\n * @returns undefined if either index is out of bounds.\n */\n public abstract vectorIndexIndex(indexA: number, indexB: number, result?: Vector2d): Vector2d | undefined;\n /**\n * Return a vector from given origin to the point at `indexB`.\n * @param origin origin for vector.\n * @param indexB index of point within the array.\n * @param result optional caller-allocated vector.\n * @returns undefined if index is out of bounds.\n */\n public abstract vectorXAndYIndex(origin: XAndY, indexB: number, result?: Vector2d): Vector2d | undefined;\n /**\n * Return the cross product of vectors from `origin` to points at `indexA` and `indexB`.\n * @param origin origin for vector.\n * @param indexA index of first target within the array.\n * @param indexB index of second target within the array.\n * @param result optional caller-allocated vector.\n * @returns undefined if either index is out of bounds.\n */\n public abstract crossProductXAndYIndexIndex(origin: XAndY, indexA: number, indexB: number): number | undefined;\n /**\n * Return the cross product of vectors from origin point at `indexA` to target points at `indexB` and `indexC`.\n * @param origin index of origin.\n * @param indexA index of first target within the array.\n * @param indexB index of second target within the array.\n * @param result optional caller - allocated vector.\n * @returns return true if indexA, indexB both valid.\n */\n public abstract crossProductIndexIndexIndex(origin: number, indexA: number, indexB: number): number | undefined;\n /** Read-only property for number of XY in the collection. */\n public abstract get length(): number;\n private static _workPoint?: Point2d;\n /**\n * Access x of indexed point.\n * * Subclasses may wish to override with a more efficient implementation.\n */\n public getXAtUncheckedPointIndex(pointIndex: number): number {\n const pt = this.getPoint2dAtCheckedPointIndex(pointIndex, IndexedXYCollection._workPoint);\n if (undefined === IndexedXYCollection._workPoint)\n IndexedXYCollection._workPoint = pt; // allocate the cache\n return pt ? pt.x : 0.0;\n }\n /**\n * Access y of indexed point.\n * * Subclasses may wish to override with a more efficient implementation.\n */\n public getYAtUncheckedPointIndex(pointIndex: number): number {\n const pt = this.getPoint2dAtCheckedPointIndex(pointIndex, IndexedXYCollection._workPoint);\n if (undefined === IndexedXYCollection._workPoint)\n IndexedXYCollection._workPoint = pt; // allocate the cache\n return pt ? pt.y : 0.0;\n }\n /**\n * Compute the linear combination s of the indexed p_i and given scales s_i.\n * @param scales array of scales. For best results, scales should have same length as the instance.\n * @param result optional pre-allocated object to fill and return.\n * @return s = sum(p_i * s_i), where i ranges from 0 to min(this.length, scales.length).\n */\n public linearCombination(scales: number[], result?: Point2d | Vector2d): XY {\n const n = Math.min(this.length, scales.length);\n const sum = (result instanceof Vector2d) ? Vector2d.createZero(result) : Point2d.createZero(result);\n for (let i = 0; i < n; ++i) {\n sum.x += scales[i] * this.getXAtUncheckedPointIndex(i);\n sum.y += scales[i] * this.getYAtUncheckedPointIndex(i);\n }\n return sum;\n }\n}\n\n/**\n * Abstract base class extends [[IndexedXYCollection]] with methods that modify the collection.\n * @public\n */\nexport abstract class IndexedReadWriteXYCollection extends IndexedXYCollection {\n /** Push a (clone of) point onto the collection. */\n public abstract push(point: XAndY): void;\n /** Push a new point (given by xy coordinates) onto the collection. */\n public abstract pushXY(x?: number, y?: number): void;\n /** Remove the final point. */\n public abstract pop(): void;\n /** Remove all entries. */\n public abstract clear(): void;\n /** Reverse the points in place. */\n public abstract reverseInPlace(): void;\n}\n"]}
|
|
@@ -14,121 +14,119 @@ import { XAndY, XYAndZ } from "./XYZProps";
|
|
|
14
14
|
export declare abstract class IndexedXYZCollection {
|
|
15
15
|
/**
|
|
16
16
|
* Return the point at `index` as a strongly typed Point3d.
|
|
17
|
-
* @param index index of point within the array
|
|
18
|
-
* @param result caller-allocated destination
|
|
19
|
-
* @returns undefined if the index is out of bounds
|
|
17
|
+
* @param index index of point within the array.
|
|
18
|
+
* @param result caller-allocated destination.
|
|
19
|
+
* @returns undefined if the index is out of bounds.
|
|
20
20
|
*/
|
|
21
21
|
abstract getPoint3dAtCheckedPointIndex(index: number, result?: Point3d): Point3d | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* Return the point at `index` as a strongly typed Point3d, without checking the point index validity.
|
|
24
|
-
* @param index index of point within the array
|
|
25
|
-
* @param result caller-allocated destination
|
|
26
|
-
* @returns undefined if the index is out of bounds
|
|
24
|
+
* @param index index of point within the array.
|
|
25
|
+
* @param result caller-allocated destination.
|
|
26
|
+
* @returns undefined if the index is out of bounds.
|
|
27
27
|
*/
|
|
28
28
|
abstract getPoint3dAtUncheckedPointIndex(index: number, result?: Point3d): Point3d;
|
|
29
29
|
/**
|
|
30
30
|
* Get from `index` as a strongly typed Vector3d.
|
|
31
|
-
* @param index index of point within the array
|
|
32
|
-
* @param result caller-allocated destination
|
|
33
|
-
* @returns undefined if the index is out of bounds
|
|
31
|
+
* @param index index of point within the array.
|
|
32
|
+
* @param result caller-allocated destination.
|
|
33
|
+
* @returns undefined if the index is out of bounds.
|
|
34
34
|
*/
|
|
35
35
|
abstract getVector3dAtCheckedVectorIndex(index: number, result?: Vector3d): Vector3d | undefined;
|
|
36
36
|
/**
|
|
37
|
-
* Return a vector from the point at `indexA` to the point at `indexB
|
|
38
|
-
* @param indexA index of point within the array
|
|
39
|
-
* @param indexB index of point within the array
|
|
37
|
+
* Return a vector from the point at `indexA` to the point at `indexB`.
|
|
38
|
+
* @param indexA index of point within the array.
|
|
39
|
+
* @param indexB index of point within the array.
|
|
40
40
|
* @param result caller-allocated vector.
|
|
41
|
-
* @returns undefined if either index is out of bounds
|
|
41
|
+
* @returns undefined if either index is out of bounds.
|
|
42
42
|
*/
|
|
43
43
|
abstract vectorIndexIndex(indexA: number, indexB: number, result?: Vector3d): Vector3d | undefined;
|
|
44
44
|
/**
|
|
45
|
-
* Return a vector from `origin` to the point at `indexB
|
|
46
|
-
* @param origin origin for vector
|
|
47
|
-
* @param indexB index of point within the array
|
|
45
|
+
* Return a vector from `origin` to the point at `indexB`.
|
|
46
|
+
* @param origin origin for vector.
|
|
47
|
+
* @param indexB index of point within the array.
|
|
48
48
|
* @param result caller-allocated vector.
|
|
49
|
-
* @returns undefined if index is out of bounds
|
|
49
|
+
* @returns undefined if index is out of bounds.
|
|
50
50
|
*/
|
|
51
51
|
abstract vectorXYAndZIndex(origin: XYAndZ, indexB: number, result?: Vector3d): Vector3d | undefined;
|
|
52
52
|
/**
|
|
53
|
-
* Return a vector from the point at `indexA` to `target
|
|
54
|
-
* @param indexA index of point within the array
|
|
55
|
-
* @param target target for vector
|
|
53
|
+
* Return a vector from the point at `indexA` to `target`.
|
|
54
|
+
* @param indexA index of point within the array.
|
|
55
|
+
* @param target target for vector.
|
|
56
56
|
* @param result caller-allocated vector.
|
|
57
|
-
* @returns undefined if index is out of bounds
|
|
57
|
+
* @returns undefined if index is out of bounds.
|
|
58
58
|
*/
|
|
59
59
|
vectorIndexXYAndZ(indexA: number, target: XYAndZ, result?: Vector3d): Vector3d | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Return the dot product of the vectors from the point at `origin` to the points at `indexA` and `indexB`.
|
|
62
|
-
* @param origin index of point within the array; origin of both vectors
|
|
63
|
-
* @param indexA index of point within the array; target of the first vector
|
|
64
|
-
* @param
|
|
65
|
-
* @returns undefined if index is out of bounds
|
|
62
|
+
* @param origin index of point within the array; origin of both vectors.
|
|
63
|
+
* @param indexA index of point within the array; target of the first vector.
|
|
64
|
+
* @param indexB index of point within the array; target of the second vector.
|
|
65
|
+
* @returns undefined if index is out of bounds.
|
|
66
66
|
*/
|
|
67
67
|
dotProductIndexIndexIndex(origin: number, indexA: number, indexB: number): number | undefined;
|
|
68
68
|
/**
|
|
69
69
|
* Return the dot product of the vectors from the point at `origin` to the point at `indexA` and to `targetB`.
|
|
70
|
-
* @param origin index of point within the array; origin of both vectors
|
|
71
|
-
* @param indexA index of point within the array; target of the first vector
|
|
72
|
-
* @param targetB target for second vector
|
|
73
|
-
* @returns undefined if index is out of bounds
|
|
70
|
+
* @param origin index of point within the array; origin of both vectors.
|
|
71
|
+
* @param indexA index of point within the array; target of the first vector.
|
|
72
|
+
* @param targetB target for second vector.
|
|
73
|
+
* @returns undefined if index is out of bounds.
|
|
74
74
|
*/
|
|
75
75
|
dotProductIndexIndexXYAndZ(origin: number, indexA: number, targetB: XYAndZ): number | undefined;
|
|
76
76
|
/**
|
|
77
|
-
* Return the cross product of the vectors from `origin` to points at `indexA` and `indexB
|
|
78
|
-
* @param origin origin for vector
|
|
79
|
-
* @param indexA index of first target within the array
|
|
80
|
-
* @param indexB index of second target within the array
|
|
77
|
+
* Return the cross product of the vectors from `origin` to points at `indexA` and `indexB`.
|
|
78
|
+
* @param origin origin for vector.
|
|
79
|
+
* @param indexA index of first target within the array.
|
|
80
|
+
* @param indexB index of second target within the array.
|
|
81
81
|
* @param result caller-allocated vector.
|
|
82
|
-
* @returns undefined if either index is out of bounds
|
|
82
|
+
* @returns undefined if either index is out of bounds.
|
|
83
83
|
*/
|
|
84
84
|
abstract crossProductXYAndZIndexIndex(origin: XYAndZ, indexA: number, indexB: number, result?: Vector3d): Vector3d | undefined;
|
|
85
85
|
/**
|
|
86
|
-
* Return the cross product of the vectors from `origin` to the point at `indexA` and to `targetB
|
|
87
|
-
* @param origin index of point within the array; origin of both vectors
|
|
88
|
-
* @param indexA index of point within the array; target of the first vector
|
|
89
|
-
* @param targetB target of second vector
|
|
90
|
-
* @param result optional caller-allocated result to fill and return
|
|
91
|
-
* @returns undefined if an index is out of bounds
|
|
86
|
+
* Return the cross product of the vectors from `origin` to the point at `indexA` and to `targetB`.
|
|
87
|
+
* @param origin index of point within the array; origin of both vectors.
|
|
88
|
+
* @param indexA index of point within the array; target of the first vector.
|
|
89
|
+
* @param targetB target of second vector.
|
|
90
|
+
* @param result optional caller-allocated result to fill and return.
|
|
91
|
+
* @returns undefined if an index is out of bounds.
|
|
92
92
|
*/
|
|
93
93
|
crossProductIndexIndexXYAndZ(origin: number, indexA: number, targetB: XYAndZ, result?: Vector3d): Vector3d | undefined;
|
|
94
94
|
/**
|
|
95
|
-
* Return the cross product of vectors from `origin` to points at `indexA` and `indexB
|
|
96
|
-
* @param origin origin for vector
|
|
97
|
-
* @param indexA index of first target within the array
|
|
98
|
-
* @param indexB index of second target within the array
|
|
95
|
+
* Return the cross product of vectors from `origin` to points at `indexA` and `indexB`.
|
|
96
|
+
* @param origin origin for vector.
|
|
97
|
+
* @param indexA index of first target within the array.
|
|
98
|
+
* @param indexB index of second target within the array.
|
|
99
99
|
* @param result optional caller-allocated vector.
|
|
100
|
-
* @returns undefined if either index is out of bounds
|
|
100
|
+
* @returns undefined if either index is out of bounds.
|
|
101
101
|
*/
|
|
102
102
|
abstract crossProductIndexIndexIndex(origin: number, indexA: number, indexB: number, result?: Vector3d): Vector3d | undefined;
|
|
103
103
|
/**
|
|
104
|
-
* Return the cross product of vectors from origin point at `indexA` to target points at `indexB` and `indexC
|
|
105
|
-
* @param origin index of origin
|
|
106
|
-
* @param indexA index of first target within the array
|
|
107
|
-
* @param indexB index of second target within the array
|
|
104
|
+
* Return the cross product of vectors from origin point at `indexA` to target points at `indexB` and `indexC`.
|
|
105
|
+
* @param origin index of origin.
|
|
106
|
+
* @param indexA index of first target within the array.
|
|
107
|
+
* @param indexB index of second target within the array.
|
|
108
108
|
* @param result caller-allocated vector.
|
|
109
|
-
* @returns return true if indexA, indexB both valid
|
|
109
|
+
* @returns return true if indexA, indexB both valid.
|
|
110
110
|
*/
|
|
111
111
|
abstract accumulateCrossProductIndexIndexIndex(origin: number, indexA: number, indexB: number, result: Vector3d): void;
|
|
112
|
-
/**
|
|
113
|
-
* read-only property for number of XYZ in the collection.
|
|
114
|
-
*/
|
|
112
|
+
/** Read-only property for number of XYZ in the collection. */
|
|
115
113
|
abstract get length(): number;
|
|
116
114
|
/**
|
|
117
115
|
* Return distance squared between indicated points.
|
|
118
|
-
* @param index0 first point index
|
|
119
|
-
* @param index1 second point index
|
|
116
|
+
* @param index0 first point index.
|
|
117
|
+
* @param index1 second point index.
|
|
120
118
|
*/
|
|
121
119
|
abstract distanceSquaredIndexIndex(index0: number, index1: number): number | undefined;
|
|
122
120
|
/**
|
|
123
121
|
* Return distance squared between the point at index0 and target.
|
|
124
|
-
* @param index0 first point index
|
|
125
|
-
* @param target second point
|
|
122
|
+
* @param index0 first point index.
|
|
123
|
+
* @param target second point.
|
|
126
124
|
*/
|
|
127
125
|
distanceSquaredIndexXYAndZ(index0: number, target: XYAndZ): number | undefined;
|
|
128
126
|
/**
|
|
129
127
|
* Return distance between indicated points.
|
|
130
|
-
* @param index0 first point index
|
|
131
|
-
* @param index1 second point index
|
|
128
|
+
* @param index0 first point index.
|
|
129
|
+
* @param index1 second point index.
|
|
132
130
|
*/
|
|
133
131
|
abstract distanceIndexIndex(index0: number, index1: number): number | undefined;
|
|
134
132
|
/**
|
|
@@ -144,18 +142,20 @@ export declare abstract class IndexedXYZCollection {
|
|
|
144
142
|
* For each subset of `k` successive points within tolerance of the first point in the subset, return the indices of
|
|
145
143
|
* the last `k-1` duplicates.
|
|
146
144
|
* * Index `0` is never returned.
|
|
147
|
-
* @param tolerance optional distance tol for compression (default [[Geometry.smallMetricDistance]])
|
|
145
|
+
* @param tolerance optional distance tol for compression (default [[Geometry.smallMetricDistance]]).
|
|
148
146
|
* @param preserveLast if the last `k < this.length` points of the instance are duplicates, whether to return the
|
|
149
|
-
* indices of the *first* `k-1` duplicates for this last run. If true, index `this.length - 1` is not returned
|
|
147
|
+
* indices of the *first* `k-1` duplicates for this last run. If true, index `this.length - 1` is not returned.
|
|
150
148
|
* unless all points are duplicates, in which case all indices but `0` are returned. Default value is false.
|
|
151
149
|
* @return ordered array of 0-based indices of duplicate points
|
|
152
150
|
*/
|
|
153
151
|
findOrderedDuplicates(tolerance?: number, preserveLast?: boolean): number[];
|
|
154
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Accumulate scale times the x,y,z values at index.
|
|
155
154
|
* * No action if index is out of bounds.
|
|
156
155
|
*/
|
|
157
156
|
abstract accumulateScaledXYZ(index: number, scale: number, sum: Point3d): void;
|
|
158
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Compute the linear combination s of the indexed p_i and given scales s_i.
|
|
159
159
|
* @param scales array of scales. For best results, scales should have same length as the instance.
|
|
160
160
|
* @param result optional pre-allocated object to fill and return
|
|
161
161
|
* @return s = sum(p_i * s_i), where i ranges from 0 to min(this.length, scales.length).
|
|
@@ -163,26 +163,27 @@ export declare abstract class IndexedXYZCollection {
|
|
|
163
163
|
linearCombination(scales: number[], result?: Point3d | Vector3d): XYZ;
|
|
164
164
|
/**
|
|
165
165
|
* Interpolate the points at the given indices.
|
|
166
|
-
* @param index0 index of point p0 within the array
|
|
167
|
-
* @param fraction fraction f such that returned point is p0 + f * (p1 - p0)
|
|
168
|
-
* @param index1 index of point p1 within the array
|
|
169
|
-
* @param result optional caller-allocated result to fill and return
|
|
170
|
-
* @returns undefined if an index is out of bounds
|
|
166
|
+
* @param index0 index of point p0 within the array.
|
|
167
|
+
* @param fraction fraction f such that returned point is p0 + f * (p1 - p0).
|
|
168
|
+
* @param index1 index of point p1 within the array.
|
|
169
|
+
* @param result optional caller-allocated result to fill and return.
|
|
170
|
+
* @returns undefined if an index is out of bounds.
|
|
171
171
|
*/
|
|
172
172
|
interpolateIndexIndex(index0: number, fraction: number, index1: number, result?: Point3d): Point3d | undefined;
|
|
173
|
-
/**
|
|
173
|
+
/** Access x of indexed point. */
|
|
174
174
|
abstract getXAtUncheckedPointIndex(pointIndex: number): number;
|
|
175
|
-
/**
|
|
175
|
+
/** Access y of indexed point. */
|
|
176
176
|
abstract getYAtUncheckedPointIndex(pointIndex: number): number;
|
|
177
|
-
/**
|
|
177
|
+
/** Access z of indexed point. */
|
|
178
178
|
abstract getZAtUncheckedPointIndex(pointIndex: number): number;
|
|
179
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Return iterator over the points in this collection. Usage:
|
|
180
181
|
* ```ts
|
|
181
182
|
* for (const point: Point3d of collection.points) { ... }
|
|
182
183
|
* ```
|
|
183
184
|
*/
|
|
184
185
|
get points(): Iterable<Point3d>;
|
|
185
|
-
/**
|
|
186
|
+
/** Convert to Point3d[]. */
|
|
186
187
|
getArray(): Point3d[];
|
|
187
188
|
/** Return the first point, or undefined if the array is empty. */
|
|
188
189
|
front(result?: Point3d): Point3d | undefined;
|
|
@@ -190,16 +191,16 @@ export declare abstract class IndexedXYZCollection {
|
|
|
190
191
|
back(result?: Point3d): Point3d | undefined;
|
|
191
192
|
/**
|
|
192
193
|
* Test whether the indexed points are equal within tolerance.
|
|
193
|
-
* @param index0 index of first point
|
|
194
|
-
* @param index1 index of second point
|
|
194
|
+
* @param index0 index of first point.
|
|
195
|
+
* @param index1 index of second point.
|
|
195
196
|
* @param tolerance max coordinate difference to be considered equal. For exact test, pass 0. Defaults to `Geometry.smallMetricDistance`.
|
|
196
197
|
* @returns whether the points are equal within tolerance, or `undefined` if either index is invalid.
|
|
197
198
|
*/
|
|
198
199
|
almostEqualIndexIndex(index0: number, index1: number, tolerance?: number): boolean | undefined;
|
|
199
200
|
/**
|
|
200
201
|
* Test whether the xy-coordinates of the indexed points are equal within tolerance. The z-coordinates are ignored.
|
|
201
|
-
* @param index0 index of first point
|
|
202
|
-
* @param index1 index of second point
|
|
202
|
+
* @param index0 index of first point.
|
|
203
|
+
* @param index1 index of second point.
|
|
203
204
|
* @param tolerance max coordinate difference to be considered equal. For exact test, pass 0. Defaults to `Geometry.smallMetricDistance`.
|
|
204
205
|
* @returns whether the xy-coordinates of the points are equal within tolerance, or `undefined` if either index is invalid.
|
|
205
206
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexedXYZCollection.d.ts","sourceRoot":"","sources":["../../../src/geometry3d/IndexedXYZCollection.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"IndexedXYZCollection.d.ts","sourceRoot":"","sources":["../../../src/geometry3d/IndexedXYZCollection.ts"],"names":[],"mappings":"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"}
|
|
@@ -19,7 +19,8 @@ class PointsIterator {
|
|
|
19
19
|
}
|
|
20
20
|
next() {
|
|
21
21
|
if (++this._curIndex >= this._collection.length) {
|
|
22
|
-
//
|
|
22
|
+
// the ECMAScript spec states that value=undefined is valid if done=true
|
|
23
|
+
// the TypeScript interface violates the spec hence the cast to any and back below
|
|
23
24
|
return { done: true };
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
@@ -40,11 +41,11 @@ class PointsIterator {
|
|
|
40
41
|
*/
|
|
41
42
|
class IndexedXYZCollection {
|
|
42
43
|
/**
|
|
43
|
-
* Return a vector from the point at `indexA` to `target
|
|
44
|
-
* @param indexA index of point within the array
|
|
45
|
-
* @param target target for vector
|
|
44
|
+
* Return a vector from the point at `indexA` to `target`.
|
|
45
|
+
* @param indexA index of point within the array.
|
|
46
|
+
* @param target target for vector.
|
|
46
47
|
* @param result caller-allocated vector.
|
|
47
|
-
* @returns undefined if index is out of bounds
|
|
48
|
+
* @returns undefined if index is out of bounds.
|
|
48
49
|
*/
|
|
49
50
|
vectorIndexXYAndZ(indexA, target, result) {
|
|
50
51
|
const reversed = this.vectorXYAndZIndex(target, indexA, result);
|
|
@@ -52,10 +53,10 @@ class IndexedXYZCollection {
|
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* Return the dot product of the vectors from the point at `origin` to the points at `indexA` and `indexB`.
|
|
55
|
-
* @param origin index of point within the array; origin of both vectors
|
|
56
|
-
* @param indexA index of point within the array; target of the first vector
|
|
57
|
-
* @param
|
|
58
|
-
* @returns undefined if index is out of bounds
|
|
56
|
+
* @param origin index of point within the array; origin of both vectors.
|
|
57
|
+
* @param indexA index of point within the array; target of the first vector.
|
|
58
|
+
* @param indexB index of point within the array; target of the second vector.
|
|
59
|
+
* @returns undefined if index is out of bounds.
|
|
59
60
|
*/
|
|
60
61
|
dotProductIndexIndexIndex(origin, indexA, indexB) {
|
|
61
62
|
if (origin < 0 || origin >= this.length || indexA < 0 || indexA >= this.length || indexB < 0 || indexB >= this.length)
|
|
@@ -69,10 +70,10 @@ class IndexedXYZCollection {
|
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
72
|
* Return the dot product of the vectors from the point at `origin` to the point at `indexA` and to `targetB`.
|
|
72
|
-
* @param origin index of point within the array; origin of both vectors
|
|
73
|
-
* @param indexA index of point within the array; target of the first vector
|
|
74
|
-
* @param targetB target for second vector
|
|
75
|
-
* @returns undefined if index is out of bounds
|
|
73
|
+
* @param origin index of point within the array; origin of both vectors.
|
|
74
|
+
* @param indexA index of point within the array; target of the first vector.
|
|
75
|
+
* @param targetB target for second vector.
|
|
76
|
+
* @returns undefined if index is out of bounds.
|
|
76
77
|
*/
|
|
77
78
|
dotProductIndexIndexXYAndZ(origin, indexA, targetB) {
|
|
78
79
|
if (origin < 0 || origin >= this.length || indexA < 0 || indexA >= this.length)
|
|
@@ -85,12 +86,12 @@ class IndexedXYZCollection {
|
|
|
85
86
|
(this.getZAtUncheckedPointIndex(indexA) - z0) * (targetB.z - z0);
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
|
-
* Return the cross product of the vectors from `origin` to the point at `indexA` and to `targetB
|
|
89
|
-
* @param origin index of point within the array; origin of both vectors
|
|
90
|
-
* @param indexA index of point within the array; target of the first vector
|
|
91
|
-
* @param targetB target of second vector
|
|
92
|
-
* @param result optional caller-allocated result to fill and return
|
|
93
|
-
* @returns undefined if an index is out of bounds
|
|
89
|
+
* Return the cross product of the vectors from `origin` to the point at `indexA` and to `targetB`.
|
|
90
|
+
* @param origin index of point within the array; origin of both vectors.
|
|
91
|
+
* @param indexA index of point within the array; target of the first vector.
|
|
92
|
+
* @param targetB target of second vector.
|
|
93
|
+
* @param result optional caller-allocated result to fill and return.
|
|
94
|
+
* @returns undefined if an index is out of bounds.
|
|
94
95
|
*/
|
|
95
96
|
crossProductIndexIndexXYAndZ(origin, indexA, targetB, result) {
|
|
96
97
|
if (origin < 0 || origin >= this.length || indexA < 0 || indexA >= this.length)
|
|
@@ -102,8 +103,8 @@ class IndexedXYZCollection {
|
|
|
102
103
|
}
|
|
103
104
|
/**
|
|
104
105
|
* Return distance squared between the point at index0 and target.
|
|
105
|
-
* @param index0 first point index
|
|
106
|
-
* @param target second point
|
|
106
|
+
* @param index0 first point index.
|
|
107
|
+
* @param target second point.
|
|
107
108
|
*/
|
|
108
109
|
distanceSquaredIndexXYAndZ(index0, target) {
|
|
109
110
|
if (index0 < 0 || index0 >= this.length)
|
|
@@ -140,9 +141,9 @@ class IndexedXYZCollection {
|
|
|
140
141
|
* For each subset of `k` successive points within tolerance of the first point in the subset, return the indices of
|
|
141
142
|
* the last `k-1` duplicates.
|
|
142
143
|
* * Index `0` is never returned.
|
|
143
|
-
* @param tolerance optional distance tol for compression (default [[Geometry.smallMetricDistance]])
|
|
144
|
+
* @param tolerance optional distance tol for compression (default [[Geometry.smallMetricDistance]]).
|
|
144
145
|
* @param preserveLast if the last `k < this.length` points of the instance are duplicates, whether to return the
|
|
145
|
-
* indices of the *first* `k-1` duplicates for this last run. If true, index `this.length - 1` is not returned
|
|
146
|
+
* indices of the *first* `k-1` duplicates for this last run. If true, index `this.length - 1` is not returned.
|
|
146
147
|
* unless all points are duplicates, in which case all indices but `0` are returned. Default value is false.
|
|
147
148
|
* @return ordered array of 0-based indices of duplicate points
|
|
148
149
|
*/
|
|
@@ -165,7 +166,8 @@ class IndexedXYZCollection {
|
|
|
165
166
|
}
|
|
166
167
|
return indices;
|
|
167
168
|
}
|
|
168
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Compute the linear combination s of the indexed p_i and given scales s_i.
|
|
169
171
|
* @param scales array of scales. For best results, scales should have same length as the instance.
|
|
170
172
|
* @param result optional pre-allocated object to fill and return
|
|
171
173
|
* @return s = sum(p_i * s_i), where i ranges from 0 to min(this.length, scales.length).
|
|
@@ -182,18 +184,19 @@ class IndexedXYZCollection {
|
|
|
182
184
|
}
|
|
183
185
|
/**
|
|
184
186
|
* Interpolate the points at the given indices.
|
|
185
|
-
* @param index0 index of point p0 within the array
|
|
186
|
-
* @param fraction fraction f such that returned point is p0 + f * (p1 - p0)
|
|
187
|
-
* @param index1 index of point p1 within the array
|
|
188
|
-
* @param result optional caller-allocated result to fill and return
|
|
189
|
-
* @returns undefined if an index is out of bounds
|
|
187
|
+
* @param index0 index of point p0 within the array.
|
|
188
|
+
* @param fraction fraction f such that returned point is p0 + f * (p1 - p0).
|
|
189
|
+
* @param index1 index of point p1 within the array.
|
|
190
|
+
* @param result optional caller-allocated result to fill and return.
|
|
191
|
+
* @returns undefined if an index is out of bounds.
|
|
190
192
|
*/
|
|
191
193
|
interpolateIndexIndex(index0, fraction, index1, result) {
|
|
192
194
|
if (index0 < 0 || index0 >= this.length || index1 < 0 || index1 >= this.length)
|
|
193
195
|
return undefined;
|
|
194
196
|
return Point3dVector3d_1.Point3d.create(Geometry_1.Geometry.interpolate(this.getXAtUncheckedPointIndex(index0), fraction, this.getXAtUncheckedPointIndex(index1)), Geometry_1.Geometry.interpolate(this.getYAtUncheckedPointIndex(index0), fraction, this.getYAtUncheckedPointIndex(index1)), Geometry_1.Geometry.interpolate(this.getZAtUncheckedPointIndex(index0), fraction, this.getZAtUncheckedPointIndex(index1)), result);
|
|
195
197
|
}
|
|
196
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Return iterator over the points in this collection. Usage:
|
|
197
200
|
* ```ts
|
|
198
201
|
* for (const point: Point3d of collection.points) { ... }
|
|
199
202
|
* ```
|
|
@@ -201,7 +204,7 @@ class IndexedXYZCollection {
|
|
|
201
204
|
get points() {
|
|
202
205
|
return new PointsIterator(this);
|
|
203
206
|
}
|
|
204
|
-
/**
|
|
207
|
+
/** Convert to Point3d[]. */
|
|
205
208
|
getArray() {
|
|
206
209
|
const result = [];
|
|
207
210
|
for (const p of this.points)
|
|
@@ -222,8 +225,8 @@ class IndexedXYZCollection {
|
|
|
222
225
|
}
|
|
223
226
|
/**
|
|
224
227
|
* Test whether the indexed points are equal within tolerance.
|
|
225
|
-
* @param index0 index of first point
|
|
226
|
-
* @param index1 index of second point
|
|
228
|
+
* @param index0 index of first point.
|
|
229
|
+
* @param index1 index of second point.
|
|
227
230
|
* @param tolerance max coordinate difference to be considered equal. For exact test, pass 0. Defaults to `Geometry.smallMetricDistance`.
|
|
228
231
|
* @returns whether the points are equal within tolerance, or `undefined` if either index is invalid.
|
|
229
232
|
*/
|
|
@@ -236,8 +239,8 @@ class IndexedXYZCollection {
|
|
|
236
239
|
}
|
|
237
240
|
/**
|
|
238
241
|
* Test whether the xy-coordinates of the indexed points are equal within tolerance. The z-coordinates are ignored.
|
|
239
|
-
* @param index0 index of first point
|
|
240
|
-
* @param index1 index of second point
|
|
242
|
+
* @param index0 index of first point.
|
|
243
|
+
* @param index1 index of second point.
|
|
241
244
|
* @param tolerance max coordinate difference to be considered equal. For exact test, pass 0. Defaults to `Geometry.smallMetricDistance`.
|
|
242
245
|
* @returns whether the xy-coordinates of the points are equal within tolerance, or `undefined` if either index is invalid.
|
|
243
246
|
*/
|