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.
8 lines
326 B
8 lines
326 B
import { __spreadArray } from "tslib";
|
|
import { midPoint } from '../util/mid-point';
|
|
export var lineToCubic = function (x1, y1, x2, y2) {
|
|
var t = 0.5;
|
|
var mid = midPoint([x1, y1], [x2, y2], t);
|
|
return __spreadArray(__spreadArray([], mid, true), [x2, y2, x2, y2], false);
|
|
};
|
|
//# sourceMappingURL=line-2-cubic.js.map
|