| Constructor and Description |
|---|
CGAlgorithmsDD() |
| Modifier and Type | Method and Description |
|---|---|
static Point |
intersection(Point p1,
Point p2,
Point q1,
Point q2)
Computes an intersection point between two lines
using DD arithmetic.
|
static int |
orientationIndex(Point p1,
Point p2,
Point 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.
|
public static Point intersection(Point p1, Point p2, Point q1, Point q2)
p1 - p2 - q1 - q2 - public static int orientationIndex(Point p1, Point p2, Point 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 toCopyright © 2015 Revolution Systems Inc.. All rights reserved.