Tidy zero tolerances. Improved polygon calculations, with distance and pseudoangle speedups.