Fixed an issue where if a segment was through the origin then it would have triangles with infinite points.