public interface SegmentString
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getCoordinate(int i)
Gets the segment string coordinate at a given index.
|
Coordinate[] |
getCoordinates()
Gets the coordinates in this segment string.
|
Object |
getData()
Gets the user-defined data for this segment string.
|
boolean |
isClosed()
Tests if a segment string is a closed ring.
|
default Coordinate |
nextInRing(int index)
Gets the next vertex in a ring from a vertex index.
|
default Coordinate |
prevInRing(int index)
Gets the previous vertex in a ring from a vertex index.
|
void |
setData(Object data)
Sets the user-defined data for this segment string.
|
int |
size()
Gets the number of coordinates in this segment string.
|
Object getData()
void setData(Object data)
data - an Object containing user-defined dataint size()
Coordinate getCoordinate(int i)
i - the coordinate indexCoordinate[] getCoordinates()
boolean isClosed()
default Coordinate prevInRing(int index)
ringSS - a segment string forming a ringindex - the vertex indexisClosed()default Coordinate nextInRing(int index)
ringSS - a segment string forming a ringindex - the vertex indexisClosed()Copyright © 2024. All rights reserved.