/**
 * @see https://github.com/terifan/ImageResampler/blob/dbc212ce6aaa769bf3c9623cb6ead58ffd51d76c/src/org/terifan/image_resampler/FilterFactory.java#L330
 * @param {number} x
 * @returns {number}
 */
export function box(x) {
    if (x < -1) {
        return 0;
    }
    if (x <= 1) {
        return 1;
    }
    return 0;
}

box.support = 1;
