equalsEpsilon on check for closing segment, so we don't hit edge cases and infinites for the line segment