changed clipping back to floats and fixed order

The clipping algorithm is changed back to using
floats and is now using different lerp argument
order depening on line direction relative to the
plane. This ensures the same order of floating
point operations and therefore the same results.