import { getDistancePointLine, getAngle, getDistancePointPoint, perpendicularFoot, rotateVector } from 'lib/features/modeling/behavior/util/GeometricUtil'; describe('modeling/behavior/util - GeometricUtil', function() { it('should calculate right horizontal-line/point distance', function() { // given var testData = [ { point: { x: 2, y: 4 }, line: [ { x: 1, y: 1 }, { x: 4, y: 1 } ], distance: 3 }, { point: { x: 2, y: 2 }, line: [ { x: 1, y: 1 }, { x: 1, y: 4 } ], distance: 1 }, { point: { x: 0, y: 0 }, line: [ { x: 0, y: 4 }, { x: 4, y: 0 } ], distance: 3 } ]; for (var i=0; i