Skip to content

Commit

Permalink
Removed unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ale0xb committed Apr 30, 2017
1 parent 44df1f1 commit 9631716
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/cartogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,38 +171,6 @@ export default function() {
};
}


function angle(a, b) {
return Math.atan2(b[1] - a[1], b[0] - a[0]);
}

function distance(a, b) {
var dx = b[0] - a[0],
dy = b[1] - a[1];
return Math.sqrt(dx * dx + dy * dy);
}

function projector(proj) {
var types = {
Point: proj,
LineString: function(coords) {
return coords.map(proj);
},
MultiLineString: function(arcs) {
return arcs.map(types.LineString);
},
Polygon: function(rings) {
return rings.map(types.LineString);
},
MultiPolygon: function(rings) {
return rings.map(types.Polygon);
}
};
return function(geom) {
return types[geom.type](geom.coordinates);
};
}

function cosArctan(dx,dy) {
if (dy===0) return 0;
var div = dx/dy;
Expand Down

0 comments on commit 9631716

Please sign in to comment.