public class HullSegment extends java.lang.Object implements java.lang.Iterable<HullSegment>, java.lang.Comparable<HullSegment>
Comparable
sortiert nach highest value first!Constructor and Description |
---|
HullSegment(int vertexId)
Konstruktor, der das erste Segment einer Huelle erzeugt.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HullSegment that) |
HullSegment |
getNext() |
HullSegment |
getPrev() |
float |
getPriority() |
int |
getVertexId() |
HullSegment |
insertNext(int vertexId)
Kettet ein neues Segment hinter dieses und erweitert so den Ring.
|
java.util.Iterator<HullSegment> |
iterator() |
void |
setPriority(float priority) |
LatLons |
toLine(float[] lats,
float[] lons) |
java.lang.String |
toRingString() |
java.lang.String |
toString() |
public HullSegment(int vertexId)
vertexId
- int Id des ersten Punktes (SourceId).public HullSegment getPrev()
public HullSegment getNext()
public int getVertexId()
public float getPriority()
public void setPriority(float priority)
public HullSegment insertNext(int vertexId)
vertexId
- int Id des ersten Punktes.HullSegment
public LatLons toLine(float[] lats, float[] lons)
public java.lang.String toRingString()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<HullSegment> iterator()
iterator
in interface java.lang.Iterable<HullSegment>
public int compareTo(HullSegment that)
compareTo
in interface java.lang.Comparable<HullSegment>