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.
10 lines • 334 B
JavaScript
import { getInterfaceRotation } from "flo-bezier3";
import { fromTo } from "flo-vector2d";
/**
* Returns the stencil angle between curve interfaces.
*/
function getStencilAngle(p0, p1, p2) {
return -getInterfaceRotation(fromTo(p0, p1), fromTo(p1, p2));
}
export { getStencilAngle };
//# sourceMappingURL=get-stencil-angle.js.map