Package net.imglib2

Class AbstractLocalizable

    • Field Detail

      • position

        protected final long[] position
        The Localizable interface is implemented using the position stored here. Positionable subclasses, such as Point, modify this array.
    • Constructor Detail

      • AbstractLocalizable

        public AbstractLocalizable​(int n)
        Parameters:
        n - number of dimensions.
      • AbstractLocalizable

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

      • getIntPosition

        public int getIntPosition​(int d)
        Description copied from interface: Localizable
        Return the current position in a given dimension.
        Specified by:
        getIntPosition in interface Localizable
        Parameters:
        d - dimension
        Returns:
        dimension of current position
      • getLongPosition

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