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