You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
489 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.lineToCubic = void 0;
var tslib_1 = require("tslib");
var mid_point_1 = require("../util/mid-point");
var lineToCubic = function (x1, y1, x2, y2) {
var t = 0.5;
var mid = (0, mid_point_1.midPoint)([x1, y1], [x2, y2], t);
return tslib_1.__spreadArray(tslib_1.__spreadArray([], mid, true), [x2, y2, x2, y2], false);
};
exports.lineToCubic = lineToCubic;
//# sourceMappingURL=line-2-cubic.js.map