Package org.sunflow.core.bucket
Class HilbertBucketOrder
- java.lang.Object
-
- org.sunflow.core.bucket.HilbertBucketOrder
-
- All Implemented Interfaces:
BucketOrder
public class HilbertBucketOrder extends java.lang.Object implements BucketOrder
-
-
Constructor Summary
Constructors Constructor Description HilbertBucketOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getBucketSequence(int nbw, int nbh)Computes the order in which each coordinate on the screen should be visited.
-
-
-
Method Detail
-
getBucketSequence
public int[] getBucketSequence(int nbw, int nbh)Description copied from interface:BucketOrderComputes the order in which each coordinate on the screen should be visited.- Specified by:
getBucketSequencein 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.
-
-