UNPKG

330 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.midPoint = void 0;
4function midPoint(a, b, t) {
5 var ax = a[0];
6 var ay = a[1];
7 var bx = b[0];
8 var by = b[1];
9 return [ax + (bx - ax) * t, ay + (by - ay) * t];
10}
11exports.midPoint = midPoint;
12//# sourceMappingURL=mid-point.js.map
\No newline at end of file