public final class Tools extends Object
| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Element> |
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 <T extends Element> |
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
|
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
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 - DelaunayErrorpublic static boolean isColinear(DPoint v1, DPoint v2)
v1 - v2 - public static DPoint vectorialDiff(DPoint v1, DPoint v2) throws DelaunayError
v1 - v2 - DelaunayErrorpublic 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 droiteDelaunayErrorpublic static boolean isVerticallySorted(List<DEdge> edgeList, double abs) throws DelaunayError
edgeList - DelaunayErrorVerticalComparatorCopyright © 2013 IRSTV CNRS-FR-2488. All Rights Reserved.