Optimize stability in Polygon and Polyhedron point containment tests.