|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaterial.PerfectReflectorSPF
public class PerfectReflectorSPF
spf of a perfect reflector material
Constructor Summary | |
---|---|
PerfectReflectorSPF(IPainter ref)
constructor |
Method Summary | |
---|---|
RGBColor |
getRayColor(IntersectionInfo intersection)
returns the color at intersection point |
void |
scatter(IntersectionInfo ri,
ScatteredRayContainer scattered)
Given parameters describing the intersection of a ray with a surface, this will return the reflected and transmitted rays along with attenuation factors. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerfectReflectorSPF(IPainter ref)
ref
- [in] diffuse reflectionMethod Detail |
---|
public void scatter(IntersectionInfo ri, ScatteredRayContainer scattered)
ISPF
scatter
in interface ISPF
ri
- [in] information of the point of intersectionscattered
- [in/out] container with the scattered rayspublic RGBColor getRayColor(IntersectionInfo intersection)
ISPF
getRayColor
in interface ISPF
intersection
- [in] information of the point of intersection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |