|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdelaunay.delaunay.tools.Tools
public final class Tools
A set of utility methods
| Field Summary | |
|---|---|
static int |
BIT_LEVEL
|
static int |
BIT_LOCKED
|
static int |
BIT_MARKED
|
static int |
BIT_OUTSIDE
|
static int |
BIT_POLYGON
|
static int |
BIT_ZUSED
|
static double |
EPSILON
|
static double |
EPSILON2
|
| Method Summary | ||
|---|---|---|
static
|
addToSortedList(T elt,
List<T> sortedList,
Comparator<T> comp)
Add an element to the list. |
|
static DPoint |
computeIntersection(DPoint p1,
DPoint v1,
DPoint p2,
DPoint v2)
Calcule le point d'intersection de 2 droites coplanaires |
|
static boolean |
isColinear(DPoint v1,
DPoint v2)
Checks that the vectors resulting from v1 and v2 are colinear. |
|
static boolean |
isVerticallySorted(List<DEdge> edgeList,
double abs)
Check if the list given in argument is vertically sorted or not. |
|
static
|
sortedListContains(List<T> sortedList,
T elt,
Comparator<T> comp)
Search the element elt in the sorted list sortedList. |
|
static DPoint |
vectorialDiff(DPoint v1,
DPoint v2)
Compute the difference between two vectors. |
|
static DPoint |
vectorProduct(DPoint v1,
DPoint v2)
Compute the vector product from the vectors v1 and v2 represented with DPoint |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double EPSILON
public static final double EPSILON2
public static final int BIT_OUTSIDE
public static final int BIT_LOCKED
public static final int BIT_LEVEL
public static final int BIT_POLYGON
public static final int BIT_ZUSED
public static final int BIT_MARKED
| Method Detail |
|---|
public static <T extends Element> int addToSortedList(T elt,
List<T> sortedList,
Comparator<T> comp)
T - elt - sortedList - comp -
public static <T extends Element> int sortedListContains(List<T> sortedList,
T elt,
Comparator<T> comp)
T - sortedList - elt -
public static DPoint vectorProduct(DPoint v1,
DPoint v2)
throws DelaunayError
v1 - v2 -
DelaunayError
public static boolean isColinear(DPoint v1,
DPoint v2)
v1 - v2 -
public static DPoint vectorialDiff(DPoint v1,
DPoint v2)
throws DelaunayError
v1 - v2 -
DelaunayError
public static DPoint computeIntersection(DPoint p1,
DPoint v1,
DPoint p2,
DPoint v2)
throws DelaunayError
p1 - point de la premiere droitev1 - vecteur directeur de la premiere droitep2 - point de la seconde droitev2 - vecteur directeur de la seconde droite
DelaunayError
public static boolean isVerticallySorted(List<DEdge> edgeList,
double abs)
throws DelaunayError
edgeList -
DelaunayErrorVerticalComparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||