import type { Info } from "./info"; import { reverse, rotate, translate } from "flo-vector2d"; import { cubicFromAnglesAndSpeeds } from "flo-bezier3"; import { INITIAL_SPAN_FRAC_FOR_MINI_ALPHAS, Ω } from "../consts.js"; import { initialS0, initialS1 } from "../consts.js"; import { getStencilAngle } from "../get-stencil-angle.js"; const { min, max, PI: 𝜋, atan2, sin, cos } = Math; /** * Returns additional information for each curve. * * @param hull */ function getInfos( hull: number[][]): Info[] { const len = hull.length; const infos: Info[] = []; for (let i=0; i