JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
WindingRule.java
Go to the documentation of this file.
1package com.jogamp.math.geom.plane;
2
3/**
4 * Winding rule, either EVEN_ODD or NON_ZERO (like for TrueType fonts).
5 */
6public enum WindingRule {
7 /**
8 * The even-odd rule specifies that a point lies inside the path
9 * if a ray drawn in any direction from that point to infinity is crossed by path segments
10 * an odd number of times.
11 */
13
14 /**
15 * The non-zero rule specifies that a point lies inside the path
16 * if a ray drawn in any direction from that point to infinity is crossed by path segments
17 * a different number of times in the counter-clockwise direction than the clockwise direction.
18 *
19 * Non-zero winding rule is used by TrueType fonts.
20 */
22
23 public final int value;
24
25 WindingRule(final int v) {
26 this.value = v;
27 }
28}
Winding rule, either EVEN_ODD or NON_ZERO (like for TrueType fonts).
Definition: WindingRule.java:6
EVEN_ODD
The even-odd rule specifies that a point lies inside the path if a ray drawn in any direction from th...
NON_ZERO
The non-zero rule specifies that a point lies inside the path if a ray drawn in any direction from th...