use abs from math instead of custom made
fix issue in grid.getBox2
refinements in linangbarsky and displacement calculations/