UNPKG

cubic-beziers-through-points

Version:

A function to fit fair (bending energy minimizing) cubic bezier curves through a set of given ordered points in the plane.

13 lines (12 loc) 441 B
import { Info } from "./get-infos/info.js"; /** * Returns the bending energy of the given curve (within info) with the `α` * angle replaced with the given one. */ declare function getEα(info: Info): (α: number) => number; /** * Returns the points of the given curve (within info) with the `α` * angle replaced with the given one. */ declare function getPssByα(α: number, info: Info): number[][][]; export { getEα, getPssByα };