Package net.imglib2

Class AbstractRealInterval

    • Field Detail

      • min

        protected final double[] min
      • max

        protected final double[] max
    • Constructor Detail

      • AbstractRealInterval

        public AbstractRealInterval​(int n)
        Creates an n-dimensional AbstractInterval with min and max = 0n.
        Parameters:
        n - number of dimensions
      • AbstractRealInterval

        public AbstractRealInterval​(double[] min,
                                    double[] max,
                                    boolean copy)
        Creates a new AbstractRealInterval from min and max coordinates
        Parameters:
        min -
        max -
        copy - flag indicating whether min and max arrays should be duplicated.
      • AbstractRealInterval

        public AbstractRealInterval​(double[] min,
                                    double[] max)
        Creates a new AbstractRealInterval from min and max coordinates
        Parameters:
        min -
        max -
    • Method Detail

      • realMin

        public double realMin​(int d)
        Description copied from interface: RealInterval
        Get the minimum in dimension d.
        Specified by:
        realMin in interface RealInterval
        Parameters:
        d - dimension
        Returns:
        minimum in dimension d.
      • realMin

        public void realMin​(double[] realMin)
        Description copied from interface: RealInterval
        Write the minimum of each dimension into double[].
        Specified by:
        realMin in interface RealInterval
      • realMax

        public double realMax​(int d)
        Description copied from interface: RealInterval
        Get the maximum in dimension d.
        Specified by:
        realMax in interface RealInterval
        Parameters:
        d - dimension
        Returns:
        maximum in dimension d.
      • realMax

        public void realMax​(double[] realMax)
        Description copied from interface: RealInterval
        Write the maximum of each dimension into double[].
        Specified by:
        realMax in interface RealInterval
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object