com.vividsolutions.jts.geom
public class CoordinateSequences extends java.lang.Object
CoordinateSequence
sConstructor and Description |
---|
CoordinateSequences() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(CoordinateSequence src,
int srcPos,
CoordinateSequence dest,
int destPos,
int length)
Copies a section of a
CoordinateSequence to another CoordinateSequence . |
static void |
copyCoord(CoordinateSequence src,
int srcPos,
CoordinateSequence dest,
int destPos)
Copies a coordinate of a
CoordinateSequence to another CoordinateSequence . |
static void |
reverse(CoordinateSequence seq)
Reverses the coordinates in a sequence in-place.
|
static void |
swap(CoordinateSequence seq,
int i,
int j)
Swaps two coordinates in a sequence.
|
public static void reverse(CoordinateSequence seq)
public static void swap(CoordinateSequence seq, int i, int j)
seq
- i
- j
- public static void copy(CoordinateSequence src, int srcPos, CoordinateSequence dest, int destPos, int length)
CoordinateSequence
to another CoordinateSequence
.
The sequences must have the same dimension.src
- srcPos
- dest
- destPos
- length
- public static void copyCoord(CoordinateSequence src, int srcPos, CoordinateSequence dest, int destPos)
CoordinateSequence
to another CoordinateSequence
.
The sequences must have the same dimension.src
- srcPos
- dest
- destPos
-