|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.geometry.euclidean.twod.Segment
org.apache.commons.math3.geometry.euclidean.twod.PolygonsSet.ComparableSegment
private static class PolygonsSet.ComparableSegment
Private extension of Segment allowing comparison.
Field Summary | |
---|---|
private OrderedTuple |
sortingKey
Sorting key. |
Constructor Summary | |
---|---|
PolygonsSet.ComparableSegment(Vector2D start,
double dx,
double dy)
Build a dummy segment. |
|
PolygonsSet.ComparableSegment(Vector2D start,
Vector2D end,
Line line)
Build a segment. |
Method Summary | |
---|---|
int |
compareTo(PolygonsSet.ComparableSegment o)
|
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
Methods inherited from class org.apache.commons.math3.geometry.euclidean.twod.Segment |
---|
distance, getEnd, getLine, getStart |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private OrderedTuple sortingKey
Constructor Detail |
---|
public PolygonsSet.ComparableSegment(Vector2D start, Vector2D end, Line line)
start
- start point of the segmentend
- end point of the segmentline
- line containing the segmentpublic PolygonsSet.ComparableSegment(Vector2D start, double dx, double dy)
The object built is not a real segment, only the sorting key is used to allow searching in the neighborhood of a point. This is an horrible hack ...
start
- start point of the segmentdx
- abscissa offset from the start pointdy
- ordinate offset from the start pointMethod Detail |
---|
public int compareTo(PolygonsSet.ComparableSegment o)
compareTo
in interface java.lang.Comparable<PolygonsSet.ComparableSegment>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |