    /**
     * Clamps a number between min and max
     * @param value The value to clamp
     * @param min The minimum value to clamp to
     * @param max The maximum value to clamp to
     */
    public static clamp(value: number, min: number, max: number): number {
        if (value < min) {
            return min;
        }

        if (value > max) {
            return max;
        }