Class PackedCoordinateSequence.Float

    • Constructor Detail

      • Float

        public Float​(float[] coords,
                     int dimensions)
        Constructs a packed coordinate sequence from an array of floats
        Parameters:
        coords -
        dimensions -
      • Float

        public Float​(double[] coordinates,
                     int dimensions)
        Constructs a packed coordinate sequence from an array of doubles
        Parameters:
        coordinates -
        dimension -
      • Float

        public Float​(Coordinate[] coordinates,
                     int dimension)
        Constructs a packed coordinate sequence out of a coordinate array
        Parameters:
        coordinates -
      • Float

        public Float​(int size,
                     int dimension)
        Constructs an empty packed coordinate sequence of a given size and dimension
        Parameters:
        coordinates -
    • Method Detail

      • getRawCoordinates

        public float[] getRawCoordinates​()
        Gets the underlying array containing the coordinate values.
        Returns:
        the array of coordinate values
      • clone

        public java.lang.Object clone​()
        Description copied from interface: CoordinateSequence
        Returns a deep copy of this collection. Called by Geometry#clone.
        Specified by:
        clone in interface CoordinateSequence
        Specified by:
        clone in class PackedCoordinateSequence
        Returns:
        a copy of the coordinate sequence containing copies of all points
        See Also:
        Object.clone()
      • setOrdinate

        public void setOrdinate​(int index,
                                int ordinate,
                                double value)
        Description copied from class: PackedCoordinateSequence
        Sets the ordinate of a coordinate in this sequence.
        Warning: for performance reasons the ordinate index is not checked - if it is over dimensions you may not get an exception but a meaningless value.
        Specified by:
        setOrdinate in interface CoordinateSequence
        Specified by:
        setOrdinate in class PackedCoordinateSequence
        Parameters:
        index - the coordinate index
        ordinate - the ordinate index in the coordinate, 0 based, smaller than the number of dimensions
        value - the new ordinate value
        See Also:
        org.meteoinfo.jts.geom.PackedCoordinateSequence#setOrdinate(int, int, double)
      • expandEnvelope

        public Envelope expandEnvelope​(Envelope env)
        Description copied from interface: CoordinateSequence
        Expands the given Envelope to include the coordinates in the sequence. Allows implementing classes to optimize access to coordinate values.
        Parameters:
        env - the envelope to expand
        Returns:
        a ref to the expanded envelope