org.sunflow.core.bucket
Class SpiralBucketOrder
java.lang.Objectorg.sunflow.core.bucket.SpiralBucketOrder
- BucketOrder
public class SpiralBucketOrder
extends java.lang.Object
int[] | getBucketSequence(int nbw, int nbh)- Computes the order in which each coordinate on the screen should be
visited.
|
getBucketSequence
public int[] getBucketSequence(int nbw,
int nbh) Computes the order in which each coordinate on the screen should be
visited.
- getBucketSequence in interface BucketOrder
nbw - number of buckets in the X directionnbh - number of buckets in the Y direction
- array of coordinates with interleaved X, Y of the positions of
buckets to be rendered.