eliminate division in rtgeom routines to avoid corner cases