Class SimpleGeometryIndexFinder


  • public class SimpleGeometryIndexFinder
    extends Object
    A Simple Geometry Index Finder can go find the beginning and end indicies of a simple geometry X and Y within a variable. But first the Index Finder needs a few variables to find it in. If the indexer is tasked to find a Simple Geometry close to one before, it will find it faster.
    • Constructor Detail

      • SimpleGeometryIndexFinder

        public SimpleGeometryIndexFinder​(Variable node_count)
        Create a new indexer, the indexer must be given a variable to look through.
        Parameters:
        node_count - Amount of nodes per geometry
    • Method Detail

      • getBeginning

        public int getBeginning​(int index)
        Gets the beginning index of a geometry's points given the index of the geometry within the array.
        Returns:
        beginning of the range
      • getEnd

        public int getEnd​(int index)
        Gets the ending index of a geometry's points given the index of the geometry within the array.
        Parameters:
        index - of the geometry within the array
        Returns:
        end of the range