Skip to content

Commit

Permalink
Remove redundant wrap180's
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisveness committed Feb 28, 2019
1 parent b05186a commit eb57ef6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion latlon-ellipsoidal-vincenty.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class LatLonEllipsoidal_Vincenty extends LatLonEllipsoidal {

const α2 = Math.atan2(sinα, -x);

const destinationPoint = new LatLonEllipsoidal_Vincenty(φ2.toDegrees(), Dms.wrap180(λ2.toDegrees()), 0, this.datum);
const destinationPoint = new LatLonEllipsoidal_Vincenty(φ2.toDegrees(), λ2.toDegrees(), 0, this.datum);

return {
point: destinationPoint,
Expand Down
12 changes: 6 additions & 6 deletions latlon-spherical.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class LatLonSpherical {
const lat = φ3.toDegrees();
const lon = λ3.toDegrees();

return new LatLonSpherical(lat, Dms.wrap180(lon));
return new LatLonSpherical(lat, lon);
}


Expand Down Expand Up @@ -337,7 +337,7 @@ class LatLonSpherical {
const lat = φ3.toDegrees();
const lon = λ3.toDegrees();

return new LatLonSpherical(lat, Dms.wrap180(lon));
return new LatLonSpherical(lat, lon);
}


Expand Down Expand Up @@ -373,7 +373,7 @@ class LatLonSpherical {
const lat = φ2.toDegrees();
const lon = λ2.toDegrees();

return new LatLonSpherical(lat, Dms.wrap180(lon));
return new LatLonSpherical(lat, lon);
}


Expand Down Expand Up @@ -434,7 +434,7 @@ class LatLonSpherical {
const lat = φ3.toDegrees();
const lon = λ3.toDegrees();

return new LatLonSpherical(lat, Dms.wrap180(lon));
return new LatLonSpherical(lat, lon);
}


Expand Down Expand Up @@ -672,7 +672,7 @@ class LatLonSpherical {
const lat = φ2.toDegrees();
const lon = λ2.toDegrees();

return new LatLonSpherical(lat, Dms.wrap180(lon));
return new LatLonSpherical(lat, lon);
}


Expand Down Expand Up @@ -708,7 +708,7 @@ class LatLonSpherical {
const lat = φ3.toDegrees();
const lon = λ3.toDegrees();

return new LatLonSpherical(lat, Dms.wrap180(lon));
return new LatLonSpherical(lat, lon);
}


Expand Down

0 comments on commit eb57ef6

Please sign in to comment.