java.lang.Object
de.grogra.ray2.radiosity.ZPixel
This class represents one Pixel on the HemiCube.
- Author:
- Ralf Kopsch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ZPixel
public ZPixel()Creates a new Hemicube pixel.
-
-
Method Details
-
add
Adds a patch to this pixel. If the pixel contains all ready a patch the 2 z values will be compared and the patch with the lesser value will be inserted.- Parameters:
patch
-z
-back
-
-
getPatch
Returns the patch assigned to this pixel.- Returns:
- Returns the patch assigned to this pixel.
-
isBack
public boolean isBack()Returns true, if the back side of a patch is in front.- Returns:
- Returns true, if the back side of a patch is in front.
-
toString
-