Package org.sunflow.core
Interface BucketOrder
- All Known Implementing Classes:
ColumnBucketOrder
,DiagonalBucketOrder
,HilbertBucketOrder
,InvertedBucketOrder
,RandomBucketOrder
,RowBucketOrder
,SpiralBucketOrder
public interface BucketOrder
Creates an array of coordinates that iterate over the tiled screen. Classes
which implement this interface are responsible for guarenteeing the entire
screen is tiled. No attempt is made to check for duplicates or incomplete
coverage.
-
Method Summary
Modifier and TypeMethodDescriptionint[]
getBucketSequence
(int nbw, int nbh) Computes the order in which each coordinate on the screen should be visited.
-
Method Details
-
getBucketSequence
int[] getBucketSequence(int nbw, int nbh) Computes the order in which each coordinate on the screen should be visited.- Parameters:
nbw
- number of buckets in the X directionnbh
- number of buckets in the Y direction- Returns:
- array of coordinates with interleaved X, Y of the positions of buckets to be rendered.
-