// spcr-joint-dynamics — math adapter layer
// Wraps base/vector.ts (class-based) with plain-object API for backward compatibility
// ── Utility ──
function clamp(v, min, max) {
    return v < min ? min : v > max ? max : v;
}
function clamp01(v) {
    return v < 0 ? 0 : v > 1 ? 1 : v;
}
function smoothStep(from, to, t) {
    const c = clamp01((t - from) / (to - from));
    return c * c * (3 - 2 * c);
}

export { clamp, clamp01, smoothStep };
//# sourceMappingURL=math.js.map
