Relaxed comparison to right angle by a(n ad-hoc) EPS (=1e-6).
This avoids some problems with rounding errors at various right angles,
but is just a simplistic hack.  Should be fixed eventually.