aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/geom/plane/Winding.java
blob: bfa214c225f62457a3afb4eaba7ea14d19798837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.jogamp.graph.geom.plane;

/**
 * Winding direction, either clockwise (CW) or counter-clockwise (CCW).
 */
public enum Winding {
    /** Clockwise (Cw) negative winding direction */
    CW(-1),
    /** Counter-Clockwise (CCW) positive winding direction */
    CCW(1);

    /** The winding direction sign, i.e. positive 1 for CCW and negative -1 for CW. */
    public final int dir;

    Winding(final int dir) {
        this.dir = dir;
    }
}