public class WindingCalculator
extends java.lang.Object
Computes the winding number for a point with respect to a planar 3D
polygon. The algorithm is based on Algorithm 6 of "The Point in Polygon
Problem for Arbitrary Polygons", by Hormann and Agathos.
For simple polygons, if the winding number is 0, the point is outside the
polygon. If the point is inside, the winding number will be -1 or 1,
depending on whether the polygon surrounds the point in a clockwise or
counter-clockwise direction.