Class DiagonalBucketOrder

java.lang.Object
org.sunflow.core.bucket.DiagonalBucketOrder
All Implemented Interfaces:
BucketOrder

public class DiagonalBucketOrder extends Object implements BucketOrder
  • Constructor Details

    • DiagonalBucketOrder

      public DiagonalBucketOrder()
  • Method Details

    • getBucketSequence

      public int[] getBucketSequence(int nbw, int nbh)
      Description copied from interface: BucketOrder
      Computes the order in which each coordinate on the screen should be visited.
      Specified by:
      getBucketSequence in interface BucketOrder
      Parameters:
      nbw - number of buckets in the X direction
      nbh - number of buckets in the Y direction
      Returns:
      array of coordinates with interleaved X, Y of the positions of buckets to be rendered.