@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
14 lines • 871 B
TypeScript
/**
* Subdivides a Hermite curve into two hermite curves.
* The result is written in form [a_p0, a_p1, a_m0, a_m1, b_p0, b_p1, b_m0, b_m1], note the stride and offset.
* @param {number[]} output where to write the result
* @param {number} output_offset where to start writing
* @param {number} output_stride what should be the step between result values, useful when working in higher dimensions. Typically, this will be 1.
* @param {number} p0
* @param {number} p1
* @param {number} m0 tangent at p0
* @param {number} m1 tangent at p1
* @param {number} [t=0.5] where to split, normalized position, must be value between 0 and 1
*/
export function spline3_hermite_subdivide(output: number[], output_offset: number, output_stride: number, p0: number, p1: number, m0: number, m1: number, t?: number): void;
//# sourceMappingURL=spline3_hermite_subdivide.d.ts.map