@visx/point
Version:
visx point
12 lines (11 loc) • 363 B
JavaScript
;
exports.__esModule = true;
exports.default = subtractPoints;
var _Point = _interopRequireDefault(require("./Point"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function subtractPoints(point1, point2) {
return new _Point.default({
x: point1.x - point2.x,
y: point1.y - point2.y
});
}