dgeoutils 2.2.9 → 2.2.10
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/dist/DPoint.js +2 -1
- package/package.json +1 -1
package/dist/DPoint.js
CHANGED
|
@@ -284,12 +284,13 @@ class DPoint {
|
|
|
284
284
|
return this.x === p.x && this.y === p.y && this.z === p.z;
|
|
285
285
|
}
|
|
286
286
|
like(p, d = 0.001) {
|
|
287
|
+
var _a, _b, _c, _d;
|
|
287
288
|
if (this.equal(p)) {
|
|
288
289
|
return true;
|
|
289
290
|
}
|
|
290
291
|
const likeX = Math.abs(this.x - p.x) < d;
|
|
291
292
|
const likeY = Math.abs(this.y - p.y) < d;
|
|
292
|
-
const likeZ = Math.abs((this.z
|
|
293
|
+
const likeZ = Math.abs(((_b = (_a = this.z) !== null && _a !== void 0 ? _a : p.z) !== null && _b !== void 0 ? _b : 0) - ((_d = (_c = p.z) !== null && _c !== void 0 ? _c : this.z) !== null && _d !== void 0 ? _d : 0)) < d;
|
|
293
294
|
return likeX && likeY && likeZ;
|
|
294
295
|
}
|
|
295
296
|
flipVertically(size) {
|