Class Region2


  • public class Region2
    extends Object
    Represents a 2D origin or 2D region.
    Author:
    royer
    • Constructor Detail

      • Region2

        public Region2()
    • Method Detail

      • originZero

        public static long[] originZero()
        Returns a zero-origin: (0,0)
        Returns:
        zero origin
      • origin

        public static long[] origin​(long... pArray)
        Given a vararg of longs it produces a correct 2D origin array for OpenCL - non specified entries are filled with zeros.
        Parameters:
        pArray - varrag of longs
        Returns:
        array
      • region

        public static long[] region​(long... pArray)
        Given a vararg of longs it produces a correct 3D region array for OpenCL - non specified entries are filled with ones.
        Parameters:
        pArray - varrag of longs
        Returns:
        array