de.grogra.ray.physics
public class Collector3dList extends Collector3d
asCollector, rayCount, squareSumDirectionX, squareSumDirectionY, squareSumDirectionZ, squareSumSpectrumX, squareSumSpectrumY, squareSumSpectrumZ, sumDirectionX, sumDirectionY, sumDirectionZ, sumSpectrumX, sumSpectrumY, sumSpectrumZ| Constructor and Description |
|---|
Collector3dList() |
Collector3dList(double x,
double y,
double z) |
Collector3dList(Spectrum spectrum) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Spectrum collector)
Add the newSpectrum to the spectrum of this Collector-instance
and update the statistics.
|
void |
addToStatistic(Tuple3d rayOrigin,
Spectrum3d spectrum,
double scaleFactor,
boolean isPrimary)
Add the Vector of the origin of a certain ray, which hits the object for this
corresponding Collector-instance.
|
Collector3dList |
clone()
Creates a copy of the Spectrum or a deep-copy of this instance.
|
Collector3d |
getPrimary() |
Collector3d |
getSecondary() |
Collector3dList |
newInstance()
Returns a new instance of this class.
|
void |
setZero()
Sets all values the instance to zero.
|
add, addToStatistic, getCollectedValues, getDirectionArithmeticMean, getDirectionArithmeticMean, getDirectionVariance, getDirectionVariance, getRayCount, getSpectrumArithmeticMean, getSpectrumVariance, isCollector, normalize, normalize, setAsCollectorclampMinZero, div, div, div, dot, evaluateDouble, get, getMax, integrate, mul, mul, mul, set, setIdentity, sub, sumabsolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, get, get, hashCode, interpolate, interpolate, max, min, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toStringpublic Collector3dList()
public Collector3dList(double x,
double y,
double z)
public Collector3dList(Spectrum spectrum)
public void add(Spectrum collector)
Collector3dadd in interface Spectrumadd in class Collector3dcollector - the spectrum to addpublic void addToStatistic(Tuple3d rayOrigin, Spectrum3d spectrum, double scaleFactor, boolean isPrimary)
Collector3daddToStatistic in class Collector3drayOrigin - Where the light comes from.public Collector3dList clone()
Collector3dpublic Collector3d getPrimary()
public Collector3d getSecondary()
public Collector3dList newInstance()
Collector3dnewInstance in interface CollectornewInstance in interface SpectrumnewInstance in class Collector3dpublic void setZero()
Collector3dLightModel computation.setZero in interface SpectrumsetZero in class Collector3d