@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
12 lines • 330 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.midPoint = void 0;
function midPoint(a, b, t) {
var ax = a[0];
var ay = a[1];
var bx = b[0];
var by = b[1];
return [ax + (bx - ax) * t, ay + (by - ay) * t];
}
exports.midPoint = midPoint;
//# sourceMappingURL=mid-point.js.map