Class PackedCoordinateSequence.Float

Hierarchy: Object , PackedCoordinateSequence, PackedCoordinateSequence.Float
All Implemented Interfaces: Cloneable , CoordinateSequence, Serializable
public static class PackedCoordinateSequence.Float
extends PackedCoordinateSequence
Packed coordinate sequence implementation based on floats
public Float(float[] coords, int dimension, int measures)
Constructs a packed coordinate sequence from an array of floats
Parameters:
coords - coords an array of float values that contains the ordinate values of the sequence
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Float(double[] coords, int dimension, int measures)
Constructs a packed coordinate sequence from an array of doubles
Parameters:
coords - coords an array of double values that contains the ordinate values of the sequence
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Float(Coordinate[] coordinates, int dimension)
Builds a new packed coordinate sequence out of a coordinate array
Parameters:
coordinates - coordinates an array of Coordinates
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
public Float(Coordinate[] coordinates, int dimension, int measures)
Constructs a packed coordinate sequence out of a coordinate array
Parameters:
coordinates - coordinates an array of Coordinates
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Float(int size, int dimension, int measures)
Constructs an empty packed coordinate sequence of a given size and dimension
Parameters:
size - size the number of coordinates in this sequence
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Coordinate getCoordinateInternal(int i)
See also:
PackedCoordinateSequence#getCoordinate(int)
public float[] getRawCoordinates()
Gets the underlying array containing the coordinate values.
Returns:
the array of coordinate values
public int size()
See also:
CoordinateSequence#size()
public Object clone()
See also:
java.lang.Object#clone()
PackedCoordinateSequence#clone()
public Float copy()
See also:
PackedCoordinateSequence#copy()
public double getOrdinate(int index, int ordinate)
See also:
PackedCoordinateSequence#getOrdinate(int, int) 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)
See also:
PackedCoordinateSequence#setOrdinate(int, int, double)
public Envelope expandEnvelope(Envelope env)
See also:
CoordinateSequence#expandEnvelope(Envelope)