| Constructor and Description |
|---|
CGAlgorithmsDD()
|
| Modifier and Type | Method and Description |
|---|---|
static Coordinate |
intersection(Coordinate
Computes an intersection point between two lines using DD arithmetic.
|
static int |
orientationIndex(Coordinate
Returns the index of the direction of the point
q relative to a vector specified by
p1-p2.
|
static int |
signOfDet2x2(DD
Computes the sign of the determinant of the 2x2 matrix with the given entries.
|
public static int orientationIndex(Coordinatep1, Coordinate p2, Coordinate q)
q relative to a vector specified by
p1-p2.
p1 - the origin point of the vector
p2 - the final point of the vector
q - the point to compute the direction to
public static int signOfDet2x2(DDx1, DD y1, DD x2, DD y2)
public static Coordinateintersection(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
p1 -
p2 -
q1 -
q2 -