public static class PackedCoordinateSequence.Float extends PackedCoordinateSequence
PackedCoordinateSequence.Double, PackedCoordinateSequence.Float
coordRef, dimension
Constructor and Description |
---|
Float(com.vividsolutions.jts.geom.Coordinate[] coordinates,
int dimension)
Constructs a packed coordinate sequence out of a coordinate array
|
Float(double[] coordinates,
int dimensions)
Constructs a packed coordinate sequence from an array of
double |
Float(float[] coords,
int dimensions)
Constructs a packed coordinate sequence from an array of
float |
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() |
com.vividsolutions.jts.geom.Envelope |
expandEnvelope(com.vividsolutions.jts.geom.Envelope env) |
com.vividsolutions.jts.geom.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) |
void |
setOrdinate(int index,
int ordinate,
double value)
Sets the ordinate of a coordinate in this sequence.
|
int |
size() |
getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getX, getY, setX, setY, toCoordinateArray, toString
public Float(float[] coords, int dimensions)
floats
coords
- dimensions
- public Float(double[] coordinates, int dimensions)
doubles
coordinates
- dimension
- public Float(com.vividsolutions.jts.geom.Coordinate[] coordinates, int dimension)
coordinates
- public Float(int size, int dimension)
coordinates
- public com.vividsolutions.jts.geom.Coordinate getCoordinateInternal(int i)
PackedCoordinateSequence
getCoordinateInternal
in class PackedCoordinateSequence
CoordinateSequence.getCoordinate(int)
public int size()
CoordinateSequence.size()
public Object clone()
clone
in interface com.vividsolutions.jts.geom.CoordinateSequence
clone
in class PackedCoordinateSequence
Object.clone()
public double getOrdinate(int index, int ordinate)
getOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
getOrdinate
in class PackedCoordinateSequence
Beware, for
performace reasons the ordinate index is not checked, if it's over dimensions you
may not get an exception but a meaningless value.
public void setOrdinate(int index, int ordinate, double value)
PackedCoordinateSequence
setOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
setOrdinate
in class PackedCoordinateSequence
index
- 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 com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
Copyright © 2018. All rights reserved.