public static class PackedCoordinateSequence.Float extends PackedCoordinateSequence
PackedCoordinateSequence.Double, PackedCoordinateSequence.FloatcoordRef, dimensionM, X, Y, Z| Constructor and Description |
|---|
PackedCoordinateSequence.Float(Coordinate[] coordinates,
int dimension)
Constructs a packed coordinate sequence out of a coordinate array
|
PackedCoordinateSequence.Float(double[] coordinates,
int dimensions)
Constructs a packed coordinate sequence from an array of
double |
PackedCoordinateSequence.Float(float[] coords,
int dimensions)
Constructs a packed coordinate sequence from an array of
float |
PackedCoordinateSequence.Float(int size,
int dimension)
Constructs an empty packed coordinate sequence of a given size and dimension
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a deep copy of this collection.
|
Envelope |
expandEnvelope(Envelope env)
Expands the given
Envelope to include the coordinates in the sequence. |
Coordinate |
getCoordinateInternal(int i)
Returns a Coordinate representation of the specified coordinate, by always
building a new Coordinate object
|
double |
getOrdinate(int index,
int ordinate)
Returns the ordinate of a coordinate in this sequence.
|
float[] |
getRawCoordinates()
Gets the underlying array containing the coordinate values.
|
void |
setOrdinate(int index,
int ordinate,
double value)
Sets the ordinate of a coordinate in this sequence.
|
int |
size()
Returns the number of coordinates in this sequence.
|
getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getX, getY, setX, setY, toCoordinateArray, toStringpublic PackedCoordinateSequence.Float(float[] coords,
int dimensions)
floatscoords - dimensions - public PackedCoordinateSequence.Float(double[] coordinates,
int dimensions)
doublescoordinates - dimension - public PackedCoordinateSequence.Float(Coordinate[] coordinates, int dimension)
coordinates - public PackedCoordinateSequence.Float(int size,
int dimension)
coordinates - public Coordinate getCoordinateInternal(int i)
PackedCoordinateSequencegetCoordinateInternal in class PackedCoordinateSequenceCoordinateSequence.getCoordinate(int)public float[] getRawCoordinates()
public int size()
CoordinateSequenceCoordinateSequence.size()public Object clone()
CoordinateSequenceclone in interface CoordinateSequenceclone in class PackedCoordinateSequenceObject.clone()public double getOrdinate(int index,
int ordinate)
CoordinateSequencegetOrdinate in interface CoordinateSequencegetOrdinate in class PackedCoordinateSequenceindex - the coordinate index in the sequenceordinate - the ordinate index in the coordinate (in range [0, dimension-1])For performance reasons the ordinate index is not checked.
If it is larger than the dimension a meaningless
value may be returned.public void setOrdinate(int index,
int ordinate,
double value)
PackedCoordinateSequencesetOrdinate in interface CoordinateSequencesetOrdinate in class PackedCoordinateSequenceindex - the coordinate indexordinate - the ordinate index in the coordinate, 0 based, smaller than the
number of dimensionsvalue - the new ordinate valuecom.vividsolutions.jts.geom.PackedCoordinateSequence#setOrdinate(int,
int, double)public Envelope expandEnvelope(Envelope env)
CoordinateSequenceEnvelope to include the coordinates in the sequence.
Allows implementing classes to optimize access to coordinate values.env - the envelope to expandCopyright © 2015. All rights reserved.