public class Orientation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOCKWISE
A value that indicates an orientation of clockwise, or a right turn.
|
static int |
COLLINEAR
A value that indicates an orientation of collinear, or no turn (straight).
|
static int |
COUNTERCLOCKWISE
A value that indicates an orientation of counterclockwise, or a left turn.
|
static int |
LEFT
A value that indicates an orientation of counterclockwise, or a left turn.
|
static int |
RIGHT
A value that indicates an orientation of clockwise, or a right turn.
|
static int |
STRAIGHT
A value that indicates an orientation of collinear, or no turn (straight).
|
| Constructor and Description |
|---|
Orientation() |
| Modifier and Type | Method and Description |
|---|---|
static int |
index(Point p1,
Point p2,
Point q) |
static boolean |
isCCW(Point[] ring) |
public static final int CLOCKWISE
public static final int RIGHT
public static final int COUNTERCLOCKWISE
public static final int LEFT
public static final int COLLINEAR
public static final int STRAIGHT