public static int clipping_flags_y(int y, RectangleI clip_box) { return (((y > clip_box.y2 ? 1 : 0) << 1) | ((y < clip_box.y1 ? 1 : 0) << 3)); }