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 longFor cross-version compatibility.Fields inherited from class org.apache.sis.internal.feature.jts.PackedCoordinateSequence
dimensionFields 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.privateFloat(PackedCoordinateSequence.Float original) Creates a new sequence initialized to a copy of the given sequence. -
Method Summary
Modifier and TypeMethodDescription(package private) doublecoordinate(int index) Returns the coordinate value at the given index in the packed array.org.locationtech.jts.geom.CoordinateSequencecopy()Returns a copy of this sequence.booleanCompares the given object with this sequence for equality.org.locationtech.jts.geom.EnvelopeexpandEnvelope(org.locationtech.jts.geom.Envelope envelope) Expands the given envelope to include the (x,y) coordinates of this sequence.inthashCode()Returns a hash code value for this sequence.(package private) voidsetCoordinates(org.locationtech.jts.geom.Coordinate[] values) Sets all coordinates in this sequence.(package private) voidsetCoordinates(org.locationtech.jts.geom.CoordinateSequence values) Sets all coordinates in this sequence.voidsetOrdinate(int index, int dim, double value) Sets a coordinate value for the coordinate tuple at the given index.intsize()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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
coordinatein 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:
setCoordinatesin classPackedCoordinateSequence
-
setCoordinates
void setCoordinates(org.locationtech.jts.geom.CoordinateSequence values) Sets all coordinates in this sequence.- Overrides:
setCoordinatesin 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:
hashCodein classPackedCoordinateSequence
-
equals
Compares the given object with this sequence for equality.- Overrides:
equalsin classPackedCoordinateSequence
-