Package net.imglib2

Class AbstractRealLocalizable

    • Constructor Detail

      • AbstractRealLocalizable

        protected AbstractRealLocalizable​(int n)
        Parameters:
        n - number of dimensions.
      • AbstractRealLocalizable

        protected AbstractRealLocalizable​(double[] position)
        Protected constructor that re-uses the passed position array. This is intended to allow subclasses to provide a way to wrap a double[] array.
        Parameters:
        position - position array to use.
    • Method Detail

      • localize

        public void localize​(float[] pos)
        Description copied from interface: RealLocalizable
        Write the current position into the passed array.
        Specified by:
        localize in interface RealLocalizable
        Parameters:
        pos - receives current position
      • localize

        public void localize​(double[] pos)
        Description copied from interface: RealLocalizable
        Write the current position into the passed array.
        Specified by:
        localize in interface RealLocalizable
        Parameters:
        pos - receives current position
      • getFloatPosition

        public float getFloatPosition​(int d)
        Description copied from interface: RealLocalizable
        Return the current position in a given dimension.
        Specified by:
        getFloatPosition in interface RealLocalizable
        Parameters:
        d - dimension
        Returns:
        dimension of current position
      • getDoublePosition

        public double getDoublePosition​(int d)
        Description copied from interface: RealLocalizable
        Return the current position in a given dimension.
        Specified by:
        getDoublePosition in interface RealLocalizable
        Parameters:
        d - dimension
        Returns:
        dimension of current position