Class PackedCoordinateSequence.Float
java.lang.Object
org.apache.sis.internal.feature.jts.PackedCoordinateSequence
org.apache.sis.internal.feature.jts.PackedCoordinateSequence.Float
- All Implemented Interfaces:
Serializable
,Cloneable
,org.locationtech.jts.geom.CoordinateSequence
- Enclosing class:
- PackedCoordinateSequence
Coordinate sequence storing values in a packed
float[]
array.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.feature.jts.PackedCoordinateSequence
PackedCoordinateSequence.Double, PackedCoordinateSequence.Float
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]
The packed coordinates.private static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.internal.feature.jts.PackedCoordinateSequence
dimension
Fields inherited from interface org.locationtech.jts.geom.CoordinateSequence
M, X, Y, Z
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
Float
(float[] array, int length) Creates a new coordinate sequence with given values.(package private)
Float
(int size, int dimension, int measures) Creates a new coordinate sequence for the given number of tuples.private
Float
(PackedCoordinateSequence.Float original) Creates a new sequence initialized to a copy of the given sequence. -
Method Summary
Modifier and TypeMethodDescription(package private) double
coordinate
(int index) Returns the coordinate value at the given index in the packed array.org.locationtech.jts.geom.CoordinateSequence
copy()
Returns a copy of this sequence.boolean
Compares the given object with this sequence for equality.org.locationtech.jts.geom.Envelope
expandEnvelope
(org.locationtech.jts.geom.Envelope envelope) Expands the given envelope to include the (x,y) coordinates of this sequence.int
hashCode()
Returns a hash code value for this sequence.(package private) void
setCoordinates
(org.locationtech.jts.geom.Coordinate[] values) Sets all coordinates in this sequence.(package private) void
setCoordinates
(org.locationtech.jts.geom.CoordinateSequence values) Sets all coordinates in this sequence.void
setOrdinate
(int index, int dim, double value) Sets a coordinate value for the coordinate tuple at the given index.int
size()
Returns the number of coordinate tuples in this sequence.Methods inherited from class org.apache.sis.internal.feature.jts.PackedCoordinateSequence
clone, getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getM, getMeasures, getOrdinate, getX, getY, getZ, hasM, hasZ, toCoordinateArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.locationtech.jts.geom.CoordinateSequence
createCoordinate
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
coordinates
private final float[] coordinatesThe packed coordinates.
-
-
Constructor Details
-
Float
Creates a new sequence initialized to a copy of the given sequence. -
Float
Float(float[] array, int length) Creates a new coordinate sequence with given values. -
Float
Float(int size, int dimension, int measures) Creates a new coordinate sequence for the given number of tuples.
-
-
Method Details
-
size
public int size()Returns the number of coordinate tuples in this sequence. -
coordinate
double coordinate(int index) Returns the coordinate value at the given index in the packed array.- Specified by:
coordinate
in classPackedCoordinateSequence
- Parameters:
index
- index in the packed array.- Returns:
- coordinate value at the given index.
-
setOrdinate
public void setOrdinate(int index, int dim, double value) Sets a coordinate value for the coordinate tuple at the given index. -
setCoordinates
void setCoordinates(org.locationtech.jts.geom.Coordinate[] values) Sets all coordinates in this sequence.- Specified by:
setCoordinates
in classPackedCoordinateSequence
-
setCoordinates
void setCoordinates(org.locationtech.jts.geom.CoordinateSequence values) Sets all coordinates in this sequence.- Overrides:
setCoordinates
in classPackedCoordinateSequence
-
expandEnvelope
public org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope envelope) Expands the given envelope to include the (x,y) coordinates of this sequence. -
copy
public org.locationtech.jts.geom.CoordinateSequence copy()Returns a copy of this sequence. -
hashCode
public int hashCode()Returns a hash code value for this sequence.- Overrides:
hashCode
in classPackedCoordinateSequence
-
equals
Compares the given object with this sequence for equality.- Overrides:
equals
in classPackedCoordinateSequence
-