Class QuadTreeLongs2


  • public abstract class QuadTreeLongs2
    extends QuadTree<com.metsci.glimpse.util.quadtree.QuadTreeLongs2.Bucket>
    Author:
    hogye
    • Constructor Detail

      • QuadTreeLongs2

        public QuadTreeLongs2​(int maxBucketSize)
    • Method Detail

      • x

        public abstract float x​(long v1,
                                long v2)
      • y

        public abstract float y​(long v1,
                                long v2)
      • search

        public Longs search​(float xMin,
                            float xMax,
                            float yMin,
                            float yMax)
      • search

        public int search​(float xMin,
                          float xMax,
                          float yMin,
                          float yMax,
                          LongsModifiable results)
        Returns:
        The number of elements appended to results.
      • search

        public Longs search​(float xMin,
                            float xMax,
                            float yMin,
                            float yMax,
                            FilterLong2 vFilter)
      • search

        public int search​(float xMin,
                          float xMax,
                          float yMin,
                          float yMax,
                          FilterLong2 vFilter,
                          LongsModifiable results)
        Returns:
        The number of elements appended to results.
      • add

        public void add​(long v1,
                        long v2)
        If x(v1,v2) or y(v1,v2) returns NaN, this method returns immediately without adding v1,v2 to the tree.
      • remove

        public void remove​(long v1,
                           long v2)