Remove unused imports (eslint warning)

This commit is contained in:
Bryan Housel
2017-12-28 21:20:14 -05:00
parent 7af73c10ef
commit 462fef148d
2 changed files with 1 additions and 14 deletions

View File

@@ -1,16 +1,3 @@
import _every from 'lodash-es/every';
import _some from 'lodash-es/some';
import {
geoVecAngle,
geoVecCross,
geoVecDot,
geoVecInterp,
geoVecLength,
geoVecSubtract
} from './vector.js';
// constants
var TAU = 2 * Math.PI;
var EQUATORIAL_RADIUS = 6356752.314245179;

View File

@@ -25,7 +25,7 @@ export function geoEdgeEqual(a, b) {
// Rotate all points counterclockwise around a pivot point by given angle
export function geoRotate(points, angle, around) {
return points.map(function(point) {
var radial = [point[0] - around[0], point[1] - around[1]];
var radial = geoVecSubtract(point, around);
return [
radial[0] * Math.cos(angle) - radial[1] * Math.sin(angle) + around[0],
radial[0] * Math.sin(angle) + radial[1] * Math.cos(angle) + around[1]