Fixed additional corner cases exposed by JavaFX

Rim and Edge vertex collapsed
Line intersect updated to use EPSILON
Minor optimizations.