java.lang.Object computational.geometry.Turn
public class Turn
Field Summary | |
---|---|
static int |
COLLINEAR
Static member representing collinearity between two segments. |
static int |
LEFT
Static member representing a left turn between two segments. |
static int |
RIGHT
Static member representing a right turn between two segments. |
Constructor Summary | |
---|---|
Turn(Point p0,
Point p1,
Point p2)
Builds a Turn object wrapping information about
turn between the three points. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.util.List |
getPoints()
Returns a list containing the three points interested in this turn. |
int |
getType()
Returns the type of turn between the three points. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int COLLINEAR
public static final int LEFT
public static final int RIGHT
Constructor Detail |
---|
public Turn(Point p0, Point p1, Point p2)
Turn
object wrapping information about
turn between the three points.
p0
- the first point.p1
- the second point.p2
- the third point.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.List getPoints()
public int getType()
public java.lang.String toString()
toString
in class java.lang.Object