Fixed the intersects function.
Also made the planar functions in Lut to be more flexible (input delta and output delta). Also fixed some bugs.