dgeoutils 2.4.13 → 2.4.14

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.
@@ -739,7 +739,7 @@ var DPoint = (function () {
739
739
  .sort(function (a, b) { return a.properties.distance - b.properties.distance; });
740
740
  };
741
741
  DPoint.prototype.calculateAltitudeByDistanceBetweenPoints = function (p1, p2) {
742
- var _a, _b, _c, _d;
742
+ var _a, _b, _c, _d, _e;
743
743
  if (p1.alt === p2.alt) {
744
744
  this.alt = p1.alt;
745
745
  }
@@ -750,7 +750,7 @@ var DPoint = (function () {
750
750
  var distance1 = this.distance(p1);
751
751
  var distance2 = this.distance(p2);
752
752
  var totalDistance = distance1 + distance2;
753
- if (p1.alt === minAlt) {
753
+ if (((_e = p1.alt) !== null && _e !== void 0 ? _e : 0) === minAlt) {
754
754
  this.alt = minAlt + distance1 / totalDistance * dAlt;
755
755
  }
756
756
  else {
@@ -616,7 +616,7 @@ export class DPoint {
616
616
  .sort((a, b) => a.properties.distance - b.properties.distance);
617
617
  }
618
618
  calculateAltitudeByDistanceBetweenPoints(p1, p2) {
619
- var _a, _b, _c, _d;
619
+ var _a, _b, _c, _d, _e;
620
620
  if (p1.alt === p2.alt) {
621
621
  this.alt = p1.alt;
622
622
  }
@@ -627,7 +627,7 @@ export class DPoint {
627
627
  const distance1 = this.distance(p1);
628
628
  const distance2 = this.distance(p2);
629
629
  const totalDistance = distance1 + distance2;
630
- if (p1.alt === minAlt) {
630
+ if (((_e = p1.alt) !== null && _e !== void 0 ? _e : 0) === minAlt) {
631
631
  this.alt = minAlt + distance1 / totalDistance * dAlt;
632
632
  }
633
633
  else {
@@ -736,7 +736,7 @@ var DPoint = (function () {
736
736
  .sort(function (a, b) { return a.properties.distance - b.properties.distance; });
737
737
  };
738
738
  DPoint.prototype.calculateAltitudeByDistanceBetweenPoints = function (p1, p2) {
739
- var _a, _b, _c, _d;
739
+ var _a, _b, _c, _d, _e;
740
740
  if (p1.alt === p2.alt) {
741
741
  this.alt = p1.alt;
742
742
  }
@@ -747,7 +747,7 @@ var DPoint = (function () {
747
747
  var distance1 = this.distance(p1);
748
748
  var distance2 = this.distance(p2);
749
749
  var totalDistance = distance1 + distance2;
750
- if (p1.alt === minAlt) {
750
+ if (((_e = p1.alt) !== null && _e !== void 0 ? _e : 0) === minAlt) {
751
751
  this.alt = minAlt + distance1 / totalDistance * dAlt;
752
752
  }
753
753
  else {