Class PackedCoordinateSequence.Float

java.lang.Object
org.locationtech.jts.geom.impl.PackedCoordinateSequence
org.locationtech.jts.geom.impl.PackedCoordinateSequence.Float
All Implemented Interfaces:
Serializable, Cloneable, CoordinateSequence
Enclosing class:
PackedCoordinateSequence

public static class PackedCoordinateSequence.Float extends PackedCoordinateSequence
Packed coordinate sequence implementation based on floats
See Also:
  • Constructor Details

    • Float

      public Float(float[] coords, int dimension, int measures)
      Constructs a packed coordinate sequence from an array of floats
      Parameters:
      coords - an array of float values that contains the ordinate values of the sequence
      dimension - the total number of ordinates that make up a Coordinate in this sequence.
      measures - the number of measure-ordinates each Coordinate in this sequence has.
    • Float

      public Float(double[] coords, int dimension, int measures)
      Constructs a packed coordinate sequence from an array of doubles
      Parameters:
      coords - an array of double values that contains the ordinate values of the sequence
      dimension - the total number of ordinates that make up a Coordinate in this sequence.
      measures - the number of measure-ordinates each Coordinate in this sequence has.
    • Float

      public Float(Coordinate[] coordinates, int dimension)
      Builds a new packed coordinate sequence out of a coordinate array
      Parameters:
      coordinates - an array of Coordinates
      dimension - the total number of ordinates that make up a Coordinate in this sequence.
    • Float

      public Float(Coordinate[] coordinates, int dimension, int measures)
      Constructs a packed coordinate sequence out of a coordinate array
      Parameters:
      coordinates - an array of Coordinates
      dimension - the total number of ordinates that make up a Coordinate in this sequence.
      measures - the number of measure-ordinates each Coordinate in this sequence has.
    • Float

      public Float(int size, int dimension, int measures)
      Constructs an empty packed coordinate sequence of a given size and dimension
      Parameters:
      size - the number of coordinates in this sequence
      dimension - the total number of ordinates that make up a Coordinate in this sequence.
      measures - the number of measure-ordinates each Coordinate in this sequence has.
  • Method Details