drag the points blue lines are boundaries, red line is being clipped the little blue lines represent the direction the big lines are facing in; they must be pointed towards the red line for it to work
@kihuy for line clipping and point behind line