java.lang.Object
de.grogra.ray.util.RayList
This class represents a list of rays.
- Author:
- Ole Kniemeyer
-
Field Details
-
spectrumFactory
-
rays
The array of light rays. The components with indices from 0 tosize
- 1 are the valid light rays.
-
-
Constructor Details
-
RayList
public RayList() -
RayList
public RayList(int size) -
RayList
-
-
Method Details
-
setSize
public void setSize(int size) Sets the size of the light ray array. The fieldsize
is set tosize
, and the arrayrays
is enlarged if necessary so that it has length of at leastsize
. If an enlargement is necessary, the existing array components are copied into the new array, and the newly added components are initialized with new instances ofRay
.- Parameters:
size
- the new size of the light ray array
-
getSize
public int getSize() -
size
public int size() -
clear
public void clear() -
lastRay
-
nextRay
-
appendRay
-