|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.ray2.radiosity.HemiCube
public final class HemiCube
This class creates a hemicube and calculates the delta form factors.
| Constructor Summary | |
|---|---|
HemiCube()
|
|
| Method Summary | |
|---|---|
static float |
getFormFactor(int side,
int pixX,
int pixY)
Returns the form factor for one hemicube pixel. |
static int |
getPixelsWide()
Return the number of hemicube pixels. |
static float |
getWorldWide()
Returns the hemicube size in world coordinates. |
static void |
init(int cubeWidth)
Initializes the hemicube with the given cube width. |
static void |
print()
Prints out the hemicube delta form factor for debugging. |
static void |
setWorldWide(float worldWide)
Sets the hemicube size in world coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HemiCube()
| Method Detail |
|---|
public static float getFormFactor(int side,
int pixX,
int pixY)
side - the cube sidepixX - the x-coordinate.pixY - the y-coordinate.
public static int getPixelsWide()
public static float getWorldWide()
public static void init(int cubeWidth)
cubeWidth - the cube width.public static void print()
public static void setWorldWide(float worldWide)
worldWide - the hemicube size to set.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||