Package org.sunflow.core.bucket
Class RowBucketOrder
java.lang.Object
org.sunflow.core.bucket.RowBucketOrder
- All Implemented Interfaces:
BucketOrder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
getBucketSequence
(int nbw, int nbh) Computes the order in which each coordinate on the screen should be visited.
-
Constructor Details
-
RowBucketOrder
public RowBucketOrder()
-
-
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 interfaceBucketOrder
- 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.
-