@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
23 lines • 1.03 kB
TypeScript
/**
* Compute the parameter values `t` at which a cubic Hermite spline reaches its
* minimum and maximum on `[0, 1]`. `t_at_min` is written to
* `result[result_offset]`, `t_at_max` to `result[result_offset + result_stride]`.
* Both values lie in `[0, 1]`.
*
* Companion to {@link spline3_hermite_bounds}, which writes the values; this
* one writes the parameters at which those values are reached. Either function
* does its own critical-point search — call whichever you actually need.
*
* @param {number[]|Float32Array|Float64Array} result
* @param {number} result_offset
* @param {number} result_stride
* @param {number} p0
* @param {number} p1
* @param {number} m0
* @param {number} m1
*
* @author Alex Goldring
* @copyright Company Named Limited (c) 2025
*/
export function spline3_hermite_bounds_t(result: number[] | Float32Array | Float64Array, result_offset: number, result_stride: number, p0: number, p1: number, m0: number, m1: number): void;
//# sourceMappingURL=spline3_hermite_bounds_t.d.ts.map