Class BoundingBox


  • public final class BoundingBox
    extends java.lang.Object
    TODO
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long[] corner1  
      long[] corner2  
      int n  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void corner1​(long[] c)  
      void corner2​(long[] c)  
      Interval getInterval()  
      int numDimensions()  
      void orderMinMax()
      flip coordinates between corner1 and corner2 such that corner1 is the min of the bounding box and corner2 is the max.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • n

        public final int n
      • corner1

        public final long[] corner1
      • corner2

        public final long[] corner2
    • Constructor Detail

      • BoundingBox

        public BoundingBox​(int n)
      • BoundingBox

        public BoundingBox​(long[] corner1,
                           long[] corner2)
      • BoundingBox

        public BoundingBox​(Interval interval)
    • Method Detail

      • numDimensions

        public int numDimensions()
      • corner1

        public void corner1​(long[] c)
      • corner2

        public void corner2​(long[] c)
      • orderMinMax

        public void orderMinMax()
        flip coordinates between corner1 and corner2 such that corner1 is the min of the bounding box and corner2 is the max.
      • getInterval

        public Interval getInterval()
        Returns:
        bounding box as an interval.