Bezier Clipping

game

This AS2 code provides clipping against any orthogonal axis. Source