fixed some degenerated case in intersection

The function "testInside" has problem. The case when an edge is parallel
to a coordinate, the inside test falsely think a on edge point as inside
point.