Richard Lake
Slightly speed up lineIntersection.
Speed up lineRectIntersection with Cohen–Sutherland algorithm instead of testing against all four lines
 ~4 times faster on my machine
Richard Lake