@itwin/ecschema-rpcinterface-tests 4.0.0-dev.68 → 4.0.0-dev.70
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/lib/dist/_d48c.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +104 -92
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/object-storage.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\57\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -170960,7 +170960,7 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
170960
170960
|
super.onCleanup();
|
|
170961
170961
|
this.releasePointerLock();
|
|
170962
170962
|
}
|
|
170963
|
-
pointerLockChangeEvent() {
|
|
170963
|
+
async pointerLockChangeEvent() {
|
|
170964
170964
|
const vp = this.viewTool.viewport;
|
|
170965
170965
|
if (undefined !== vp && document.pointerLockElement === vp.canvas) {
|
|
170966
170966
|
vp.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter, this._anchorPtView); // Display indicator in the middle of the view for pointer lock...
|
|
@@ -170969,7 +170969,11 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
170969
170969
|
vp.invalidateDecorations();
|
|
170970
170970
|
}
|
|
170971
170971
|
else {
|
|
170972
|
-
|
|
170972
|
+
// If ESC is used to disable pointer lock, exit the tool instead of continuing in drag mode...
|
|
170973
|
+
if (this._havePointerLock && this.viewTool.inDynamicUpdate)
|
|
170974
|
+
await this.viewTool.exitTool();
|
|
170975
|
+
else
|
|
170976
|
+
this._havePointerLock = false;
|
|
170973
170977
|
}
|
|
170974
170978
|
}
|
|
170975
170979
|
requestPointerLock(enable) {
|
|
@@ -170992,7 +170996,7 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
170992
170996
|
// NOTE: Chrome appears to be the only browser that doesn't require pointer lock to be requested from an engagement event like click.
|
|
170993
170997
|
// Currently pointer lock is requested for "click" and not "mousedown" since we don't want pointer lock for drag operation.
|
|
170994
170998
|
if (undefined === this._pointerLockChangeListener) {
|
|
170995
|
-
this._pointerLockChangeListener = () => this.pointerLockChangeEvent();
|
|
170999
|
+
this._pointerLockChangeListener = async () => this.pointerLockChangeEvent();
|
|
170996
171000
|
document.addEventListener("pointerlockchange", this._pointerLockChangeListener, false);
|
|
170997
171001
|
}
|
|
170998
171002
|
if (undefined === this._pointerLockClickEngagementListener) {
|
|
@@ -171237,23 +171241,6 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
171237
171241
|
vp.viewToNpc(vp.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter), this._lastReadPt);
|
|
171238
171242
|
this._lastReadPt.z = ViewManip.getFocusPlaneNpc(vp);
|
|
171239
171243
|
vp.npcToWorld(this._lastReadPt, this._lastReadPt);
|
|
171240
|
-
// Rotate view to look straight down...
|
|
171241
|
-
// const frust = vp.getWorldFrustum();
|
|
171242
|
-
// const saveFrustum = frust.clone();
|
|
171243
|
-
// const viewUp = vp.view.getYVector();
|
|
171244
|
-
// const viewDir = vp.view.getZVector(); viewDir.scaleInPlace(-1);
|
|
171245
|
-
// const worldUp = Vector3d.unitZ();
|
|
171246
|
-
// const viewAngle = worldUp.angleTo(viewUp).radians;
|
|
171247
|
-
// const pitchAngle = Angle.createRadians((-Math.PI / 2) - (viewDir.z < 0 ? -viewAngle : viewAngle));
|
|
171248
|
-
// const pitchMatrix = Matrix3d.createRotationAroundVector(Vector3d.unitX(), pitchAngle)!;
|
|
171249
|
-
// const pitchTimesView = pitchMatrix.multiplyMatrixMatrix(vp.rotation);
|
|
171250
|
-
// const invViewRot = vp.rotation.inverse()!;
|
|
171251
|
-
// const inverseViewTimesPitchTimesView = invViewRot.multiplyMatrixMatrix(pitchTimesView);
|
|
171252
|
-
// const transform = Transform.createFixedPointAndMatrix(view.getEyePoint(), inverseViewTimesPitchTimesView);
|
|
171253
|
-
// frust.multiply(transform);
|
|
171254
|
-
// vp.setupViewFromFrustum(frust);
|
|
171255
|
-
// this.computeCollisionData(vp, eyePt);
|
|
171256
|
-
// vp.setupViewFromFrustum(saveFrustum);
|
|
171257
171244
|
this.computeCollisionData(vp, eyePt);
|
|
171258
171245
|
}
|
|
171259
171246
|
if (undefined === this._currentContour || this._currentContour.numPoints() < 2 || positionInput.z <= 0.0)
|
|
@@ -171605,22 +171592,6 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
171605
171592
|
super.drawHandle(context, hasFocus);
|
|
171606
171593
|
if (!hasFocus || context.viewport !== this.viewTool.viewport)
|
|
171607
171594
|
return;
|
|
171608
|
-
// if (undefined !== this._currentContour && this._currentContour.numPoints() > 0) {
|
|
171609
|
-
// const builder = context.createGraphicBuilder(GraphicType.WorldOverlay);
|
|
171610
|
-
// const color = context.viewport.getContrastToBackgroundColor();
|
|
171611
|
-
// builder.setSymbology(color, color, 8);
|
|
171612
|
-
// if (this._currentContour.numPoints() > 1)
|
|
171613
|
-
// builder.addLineString(this._currentContour.points);
|
|
171614
|
-
// else
|
|
171615
|
-
// builder.addPointString(this._currentContour.points);
|
|
171616
|
-
// builder.setSymbology(ColorDef.blue, color, 15);
|
|
171617
|
-
// builder.addPointString([this._lastReadPt]);
|
|
171618
|
-
// if (this._lastReference) {
|
|
171619
|
-
// builder.setSymbology(ColorDef.green, color, 15);
|
|
171620
|
-
// builder.addPointString([this._lastReference.getOriginRef()]);
|
|
171621
|
-
// }
|
|
171622
|
-
// context.addDecorationFromBuilder(builder);
|
|
171623
|
-
// }
|
|
171624
171595
|
if (_ToolSettings__WEBPACK_IMPORTED_MODULE_22__.ToolSettings.walkCollisions && this.viewTool.inDynamicUpdate) {
|
|
171625
171596
|
const position = this._anchorPtView.clone();
|
|
171626
171597
|
position.x = Math.floor(position.x) + 0.5;
|
|
@@ -220282,14 +220253,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
220282
220253
|
|
|
220283
220254
|
|
|
220284
220255
|
|
|
220285
|
-
/**
|
|
220286
|
-
*
|
|
220287
|
-
* *
|
|
220288
|
-
*
|
|
220256
|
+
/**
|
|
220257
|
+
* A Ray3d contains
|
|
220258
|
+
* * an `origin` point.
|
|
220259
|
+
* * a `direction` vector (The vector is not required to be normalized).
|
|
220260
|
+
* * an optional weight (number).
|
|
220289
220261
|
* @public
|
|
220290
220262
|
*/
|
|
220291
220263
|
class Ray3d {
|
|
220292
|
-
// constructor captures references
|
|
220264
|
+
// constructor (captures references)
|
|
220293
220265
|
constructor(origin, direction) {
|
|
220294
220266
|
this.origin = origin;
|
|
220295
220267
|
this.direction = direction;
|
|
@@ -220299,11 +220271,17 @@ class Ray3d {
|
|
|
220299
220271
|
return new Ray3d(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Point3d.create(x, y, z), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.create(u, v, w));
|
|
220300
220272
|
}
|
|
220301
220273
|
/** Create a ray on the x axis. */
|
|
220302
|
-
static createXAxis() {
|
|
220274
|
+
static createXAxis() {
|
|
220275
|
+
return Ray3d._create(0, 0, 0, 1, 0, 0);
|
|
220276
|
+
}
|
|
220303
220277
|
/** Create a ray on the y axis. */
|
|
220304
|
-
static createYAxis() {
|
|
220278
|
+
static createYAxis() {
|
|
220279
|
+
return Ray3d._create(0, 0, 0, 0, 1, 0);
|
|
220280
|
+
}
|
|
220305
220281
|
/** Create a ray on the z axis. */
|
|
220306
|
-
static createZAxis() {
|
|
220282
|
+
static createZAxis() {
|
|
220283
|
+
return Ray3d._create(0, 0, 0, 0, 0, 1);
|
|
220284
|
+
}
|
|
220307
220285
|
/** Create a ray with all zeros. */
|
|
220308
220286
|
static createZero(result) {
|
|
220309
220287
|
if (result) {
|
|
@@ -220313,20 +220291,51 @@ class Ray3d {
|
|
|
220313
220291
|
}
|
|
220314
220292
|
return new Ray3d(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Point3d.createZero(), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createZero());
|
|
220315
220293
|
}
|
|
220316
|
-
/**
|
|
220294
|
+
/**
|
|
220295
|
+
* Test for nearly equal Ray3d objects.
|
|
220317
220296
|
* * This tests for near equality of origin and direction -- i.e. member-by-member comparison.
|
|
220318
|
-
* * Use [[isAlmostEqualPointSet]] to allow origins to be anywhere along the common ray and to have to allow the
|
|
220319
|
-
|
|
220297
|
+
* * Use [[isAlmostEqualPointSet]] to allow origins to be anywhere along the common ray and to have to allow the
|
|
220298
|
+
* directions to be scaled or opposing.
|
|
220299
|
+
*/
|
|
220320
220300
|
isAlmostEqual(other) {
|
|
220321
220301
|
return this.origin.isAlmostEqual(other.origin) && this.direction.isAlmostEqual(other.direction);
|
|
220322
220302
|
}
|
|
220323
|
-
/**
|
|
220303
|
+
/** Return the dot product of the ray's direction vector with a vector from the ray origin to the `spacePoint`. */
|
|
220304
|
+
dotProductToPoint(spacePoint) {
|
|
220305
|
+
return this.direction.dotProductStartEnd(this.origin, spacePoint);
|
|
220306
|
+
}
|
|
220307
|
+
/** Return the fractional coordinate (along the direction vector) of the `spacePoint` projected to the ray. */
|
|
220308
|
+
pointToFraction(spacePoint) {
|
|
220309
|
+
return _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.safeDivideFraction(this.dotProductToPoint(spacePoint), this.direction.magnitudeSquared(), 0);
|
|
220310
|
+
}
|
|
220311
|
+
/** Return the `spacePoint` projected onto the ray. */
|
|
220312
|
+
projectPointToRay(spacePoint) {
|
|
220313
|
+
/**
|
|
220314
|
+
* To project a point to the ray, we can create a vector called "v" from ray origin to the spacePoint and project
|
|
220315
|
+
* that vector to the ray direction vector "r". The projection is "((v.r)/||r||^2) r" where "v.r" is the dot
|
|
220316
|
+
* product. Note that pointToFraction returns "(v.r)/||r||^2".
|
|
220317
|
+
* Note: If r is the normal of a plane, then projection length "(v.r)/||r||" is the signed altitude of the
|
|
220318
|
+
* spacePoint with respect to the plane.
|
|
220319
|
+
*/
|
|
220320
|
+
return this.origin.plusScaled(this.direction, this.pointToFraction(spacePoint));
|
|
220321
|
+
}
|
|
220322
|
+
/**
|
|
220323
|
+
* Test for nearly equal rays, allowing origin float and direction scaling.
|
|
220324
220324
|
* * Use [[isAlmostEqual]] to require member-by-member comparison.
|
|
220325
|
-
|
|
220325
|
+
*/
|
|
220326
220326
|
isAlmostEqualPointSet(other) {
|
|
220327
|
+
/**
|
|
220328
|
+
* This function tests two rays to determine if they define the same infinite lines.
|
|
220329
|
+
* So the origins can be different as long as they are on the infinite line (they can
|
|
220330
|
+
* "float") but the directions must be parallel or antiparallel.
|
|
220331
|
+
*/
|
|
220327
220332
|
if (!this.direction.isParallelTo(other.direction, true))
|
|
220328
220333
|
return false;
|
|
220329
|
-
|
|
220334
|
+
/**
|
|
220335
|
+
* In exact math, we consider a ray to have an infinite line as direction (not a finite vector).
|
|
220336
|
+
* Therefore, in exact math it is not possible for one origin to be on the other ray but not vice
|
|
220337
|
+
* versa. However, we test both ways because first check may pass due to round-off errors.
|
|
220338
|
+
*/
|
|
220330
220339
|
let workPoint = this.projectPointToRay(other.origin);
|
|
220331
220340
|
if (!other.origin.isAlmostEqualMetric(workPoint))
|
|
220332
220341
|
return false;
|
|
@@ -220344,7 +220353,8 @@ class Ray3d {
|
|
|
220344
220353
|
return new Ray3d(origin.clone(), direction.clone());
|
|
220345
220354
|
}
|
|
220346
220355
|
/**
|
|
220347
|
-
* Given a homogeneous point and its derivative components, construct a Ray3d with cartesian
|
|
220356
|
+
* Given a homogeneous point and its derivative components, construct a Ray3d with cartesian
|
|
220357
|
+
* coordinates and derivatives.
|
|
220348
220358
|
* @param weightedPoint `[x,y,z,w]` parts of weighted point.
|
|
220349
220359
|
* @param weightedDerivative `[x,y,z,w]` derivatives
|
|
220350
220360
|
* @param result
|
|
@@ -220389,7 +220399,7 @@ class Ray3d {
|
|
|
220389
220399
|
result.a = a;
|
|
220390
220400
|
return result;
|
|
220391
220401
|
}
|
|
220392
|
-
/** Create from origin and target.
|
|
220402
|
+
/** Create from origin and target. The direction vector is the full length (non-unit) vector from origin to target. */
|
|
220393
220403
|
static createStartEnd(origin, target, result) {
|
|
220394
220404
|
if (result) {
|
|
220395
220405
|
result.origin.setFrom(origin);
|
|
@@ -220399,10 +220409,14 @@ class Ray3d {
|
|
|
220399
220409
|
return new Ray3d(origin.clone(), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(origin, target));
|
|
220400
220410
|
}
|
|
220401
220411
|
/** Return a reference to the ray's origin. */
|
|
220402
|
-
getOriginRef() {
|
|
220412
|
+
getOriginRef() {
|
|
220413
|
+
return this.origin;
|
|
220414
|
+
}
|
|
220403
220415
|
/** Return a reference to the ray's direction vector. */
|
|
220404
|
-
getDirectionRef() {
|
|
220405
|
-
|
|
220416
|
+
getDirectionRef() {
|
|
220417
|
+
return this.direction;
|
|
220418
|
+
}
|
|
220419
|
+
/** Copy coordinates from origin and direction. */
|
|
220406
220420
|
set(origin, direction) {
|
|
220407
220421
|
this.origin.setFrom(origin);
|
|
220408
220422
|
this.direction.setFrom(direction);
|
|
@@ -220433,37 +220447,26 @@ class Ray3d {
|
|
|
220433
220447
|
transform.multiplyVector(this.direction, this.direction);
|
|
220434
220448
|
}
|
|
220435
220449
|
/** Copy data from another ray. */
|
|
220436
|
-
setFrom(source) {
|
|
220437
|
-
|
|
220438
|
-
* * fraction 1 is at the end of the direction vector when placed at the origin.
|
|
220439
|
-
* @returns Return a point at fractional position along the ray.
|
|
220440
|
-
*/
|
|
220441
|
-
fractionToPoint(fraction, result) { return this.origin.plusScaled(this.direction, fraction, result); }
|
|
220442
|
-
/** Return the dot product of the ray's direction vector with a vector from the ray origin to the space point. */
|
|
220443
|
-
dotProductToPoint(spacePoint) { return this.direction.dotProductStartEnd(this.origin, spacePoint); }
|
|
220444
|
-
/**
|
|
220445
|
-
* Return the fractional coordinate (along the direction vector) of the spacePoint projected to the ray.
|
|
220446
|
-
*/
|
|
220447
|
-
pointToFraction(spacePoint) {
|
|
220448
|
-
return _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.safeDivideFraction(this.direction.dotProductStartEnd(this.origin, spacePoint), this.direction.magnitudeSquared(), 0);
|
|
220450
|
+
setFrom(source) {
|
|
220451
|
+
this.set(source.origin, source.direction);
|
|
220449
220452
|
}
|
|
220450
220453
|
/**
|
|
220451
|
-
*
|
|
220452
|
-
*
|
|
220454
|
+
* Return a point at fractional position along the ray.
|
|
220455
|
+
* * fraction 0 is the ray origin.
|
|
220456
|
+
* * fraction 1 is at the end of the direction vector when placed at the origin.
|
|
220453
220457
|
*/
|
|
220454
|
-
|
|
220455
|
-
return this.origin.plusScaled(this.direction,
|
|
220458
|
+
fractionToPoint(fraction, result) {
|
|
220459
|
+
return this.origin.plusScaled(this.direction, fraction, result);
|
|
220456
220460
|
}
|
|
220457
|
-
/**
|
|
220458
|
-
* at ray origin with z in ray direction.
|
|
220461
|
+
/**
|
|
220462
|
+
* Return a transform for rigid axes at ray origin with z in ray direction.
|
|
220463
|
+
* * If the direction vector is zero, axes default to identity (from [[Matrix3d.createRigidHeadsUp]])
|
|
220459
220464
|
*/
|
|
220460
220465
|
toRigidZFrame() {
|
|
220461
220466
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_2__.Matrix3d.createRigidHeadsUp(this.direction, _Geometry__WEBPACK_IMPORTED_MODULE_1__.AxisOrder.ZXY);
|
|
220462
220467
|
return _Transform__WEBPACK_IMPORTED_MODULE_3__.Transform.createOriginAndMatrix(this.origin, axes);
|
|
220463
220468
|
}
|
|
220464
|
-
/**
|
|
220465
|
-
* Convert {origin:[x,y,z], direction:[u,v,w]} to a Ray3d.
|
|
220466
|
-
*/
|
|
220469
|
+
/** Convert {origin:[x,y,z], direction:[u,v,w]} to a Ray3d. */
|
|
220467
220470
|
setFromJSON(json) {
|
|
220468
220471
|
if (!json) {
|
|
220469
220472
|
this.origin.set(0, 0, 0);
|
|
@@ -220474,8 +220477,8 @@ class Ray3d {
|
|
|
220474
220477
|
this.direction.setFromJSON(json.direction);
|
|
220475
220478
|
}
|
|
220476
220479
|
/**
|
|
220477
|
-
*
|
|
220478
|
-
*
|
|
220480
|
+
* Try to scale the direction vector to a given magnitude.
|
|
220481
|
+
* * Returns false if ray direction is a zero vector.
|
|
220479
220482
|
*/
|
|
220480
220483
|
trySetDirectionMagnitudeInPlace(magnitude = 1.0) {
|
|
220481
220484
|
if (this.direction.tryNormalizeInPlace()) {
|
|
@@ -220508,11 +220511,13 @@ class Ray3d {
|
|
|
220508
220511
|
return false;
|
|
220509
220512
|
}
|
|
220510
220513
|
/**
|
|
220511
|
-
*
|
|
220514
|
+
* Construct a JSON object from this Ray3d.
|
|
220512
220515
|
* @return {*} [origin,normal]
|
|
220513
220516
|
*/
|
|
220514
|
-
toJSON() {
|
|
220515
|
-
|
|
220517
|
+
toJSON() {
|
|
220518
|
+
return { origin: this.origin.toJSON(), direction: this.direction.toJSON() };
|
|
220519
|
+
}
|
|
220520
|
+
/** Create a new ray from json object. See `setFromJSON` for json structure; */
|
|
220516
220521
|
static fromJSON(json) {
|
|
220517
220522
|
const result = Ray3d.createXAxis();
|
|
220518
220523
|
result.setFromJSON(json);
|
|
@@ -220551,7 +220556,7 @@ class Ray3d {
|
|
|
220551
220556
|
return division;
|
|
220552
220557
|
}
|
|
220553
220558
|
/**
|
|
220554
|
-
*
|
|
220559
|
+
* Find intersection of the ray with a Range3d.
|
|
220555
220560
|
* * return the range of fractions (on the ray) which are "inside" the range.
|
|
220556
220561
|
* * Note that a range is always returned; if there is no intersection it is indicated by the test `result.sNull`
|
|
220557
220562
|
*/
|
|
@@ -220565,9 +220570,10 @@ class Ray3d {
|
|
|
220565
220570
|
return interval;
|
|
220566
220571
|
return interval;
|
|
220567
220572
|
}
|
|
220568
|
-
/**
|
|
220573
|
+
/**
|
|
220574
|
+
* Construct a vector from `ray.origin` to target point.
|
|
220569
220575
|
* * return the part of the vector that is perpendicular to `ray.direction`.
|
|
220570
|
-
*
|
|
220576
|
+
* * i.e., return the shortest vector from the ray to the point.
|
|
220571
220577
|
*/
|
|
220572
220578
|
perpendicularPartOfVectorToTarget(targetPoint, result) {
|
|
220573
220579
|
const vectorV = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(this.origin, targetPoint);
|
|
@@ -220576,14 +220582,20 @@ class Ray3d {
|
|
|
220576
220582
|
const fraction = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.safeDivideFraction(uv, uu, 0.0);
|
|
220577
220583
|
return vectorV.plusScaled(this.direction, -fraction, result);
|
|
220578
220584
|
}
|
|
220579
|
-
/**
|
|
220585
|
+
/**
|
|
220586
|
+
* Determine if two rays intersect, are fully overlapped, parallel but no coincident, or skew
|
|
220580
220587
|
* * Return a CurveLocationDetailPair which
|
|
220581
220588
|
* * contains fraction and point on each ray.
|
|
220582
|
-
* * has (in the CurveLocationDetailPair structure, as member approachType) annotation indicating one of
|
|
220583
|
-
*
|
|
220584
|
-
* * CurveCurveApproachType.
|
|
220585
|
-
*
|
|
220586
|
-
* * CurveCurveApproachType.
|
|
220589
|
+
* * has (in the CurveLocationDetailPair structure, as member approachType) annotation indicating one of
|
|
220590
|
+
* these relationships
|
|
220591
|
+
* * CurveCurveApproachType.Intersection -- the rays have a simple intersection, at fractions indicated
|
|
220592
|
+
* in detailA and detailB
|
|
220593
|
+
* * CurveCurveApproachType.PerpendicularChord -- there is pair of where the rays have closest approach.
|
|
220594
|
+
* The rays are skew in space.
|
|
220595
|
+
* * CurveCurveApproachType.CoincidentGeometry -- the rays are the same unbounded line in space. The
|
|
220596
|
+
* fractions and points are a representative single common point.
|
|
220597
|
+
* * CurveCurveApproachType.Parallel -- the rays are parallel (and not coincident). The two points are
|
|
220598
|
+
* at the minimum distance
|
|
220587
220599
|
*/
|
|
220588
220600
|
static closestApproachRay3dRay3d(rayA, rayB) {
|
|
220589
220601
|
const intersectionFractions = _Point2dVector2d__WEBPACK_IMPORTED_MODULE_5__.Vector2d.create();
|
|
@@ -289357,7 +289369,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
289357
289369
|
/***/ ((module) => {
|
|
289358
289370
|
|
|
289359
289371
|
"use strict";
|
|
289360
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
289372
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.70","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.0.0-dev.70","@itwin/core-bentley":"workspace:^4.0.0-dev.70","@itwin/core-common":"workspace:^4.0.0-dev.70","@itwin/core-geometry":"workspace:^4.0.0-dev.70","@itwin/core-orbitgt":"workspace:^4.0.0-dev.70","@itwin/core-quantity":"workspace:^4.0.0-dev.70"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.32","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
289361
289373
|
|
|
289362
289374
|
/***/ })
|
|
289363
289375
|
|