import type { FnU2 } from "@thi.ng/api" ; import type { Vec } from "@thi.ng/vectors" ; import { mixN } from "@thi.ng/vectors/mixn" ; import { set } from "@thi.ng/vectors/set" ; param a param b export const cubicFromLine = ( a , b ) => [ set ( [ ] , a ) , mixN ( [ ] , a , b , 1 / 3 ) , mixN ( [ ] , b , a , 1 / 3 ) , set ( [ ] , b ) , ] ;