Interface Polygon.FillRule

  • Enclosing class:
    Polygon

    public static interface Polygon.FillRule
    • Field Detail

      • enumFillRuleOddEven

        static final int enumFillRuleOddEven
        odd-even fill rule. This is the default value. A point is in the polygon interior if a ray from this point to infinity crosses odd number of segments of the polygon.
        See Also:
        Constant Field Values
      • enumFillRuleWinding

        static final int enumFillRuleWinding
        winding fill rule (aka non-zero winding rule). A point is in the polygon interior if a winding number is not zero. To compute a winding number for a point, draw a ray from this point to infinity. If N is the number of times the ray crosses segments directed up and the M is the number of times it crosses segments directed down, then the winding number is equal to N-M.
        See Also:
        Constant Field Values