utils
Class Sampler

java.lang.Object
  extended by utils.Sampler

public class Sampler
extends java.lang.Object


Constructor Summary
Sampler()
           
 
Method Summary
 void addCorners()
          initialize the point list
 void addSamplePoints(int n)
          add n more sample points with poisson disk distribution
 Point2D getPoint(int num)
           
 int getSampleCounts()
           
 void init()
          initialize the point list
 void initForLight()
          initialize the point list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sampler

public Sampler()
Method Detail

getSampleCounts

public int getSampleCounts()
Returns:
the number of samples

getPoint

public Point2D getPoint(int num)
Parameters:
num -
Returns:
the point with number num

init

public void init()
initialize the point list


initForLight

public void initForLight()
initialize the point list


addCorners

public void addCorners()
initialize the point list


addSamplePoints

public void addSamplePoints(int n)
add n more sample points with poisson disk distribution

Parameters:
n - the number of samples to add