|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.algorithm.CGAlgorithmsDD
public class CGAlgorithmsDD
Implements basic computational geometry algorithms using DD
arithmetic.
Constructor Summary | |
---|---|
CGAlgorithmsDD()
|
Method Summary | |
---|---|
static Coordinate |
intersection(Coordinate p1,
Coordinate p2,
Coordinate q1,
Coordinate q2)
Computes an intersection point between two lines using DD arithmetic. |
static int |
orientationIndex(Coordinate p1,
Coordinate p2,
Coordinate q)
Returns the index of the direction of the point q relative to
a vector specified by p1-p2 . |
static int |
signOfDet2x2(DD x1,
DD y1,
DD x2,
DD y2)
Computes the sign of the determinant of the 2x2 matrix with the given entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CGAlgorithmsDD()
Method Detail |
---|
public static int orientationIndex(Coordinate p1, Coordinate p2, Coordinate q)
q
relative to
a vector specified by p1-p2
.
p1
- the origin point of the vectorp2
- the final point of the vectorq
- the point to compute the direction to
public static int signOfDet2x2(DD x1, DD y1, DD x2, DD y2)
public static Coordinate intersection(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
p1
- p2
- q1
- q2
-
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |