Polygons added.
Polygons use planes' functions to determine intersection's distance.
Positive distance checking is done inside tpolygon_intersections,
so in case it is not positive, calculations to determine if the point
is inside tthe polygon are avoided.