|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.motorola.graphics.j3d.Light
Light class.
| Constructor Summary | |
Light()
Light constructor This has the same effect as executing Light( new Vector3D( 0, 0, 4096 ), 4096, 0 ). |
|
Light(Vector3D dir,
int dirIntensity,
int ambIntensity)
Light constructor |
|
| Method Summary | |
int |
getAmbIntensity()
Gets the ambient light intensity. |
Vector3D |
getDirection()
Gets the direction of direct light. |
int |
getDirIntensity()
Gets the direct light intensity. |
void |
setAmbIntensity(int ambIntensity)
Sets the ambient light intensity. |
void |
setDirection(Vector3D dir)
Sets the direction of direct light. |
void |
setDirIntensity(int dirIntensity)
Sets the direct light intensity. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Light()
public Light(Vector3D dir,
int dirIntensity,
int ambIntensity)
dir - The direction of direct lightdirIntensity - Direct light intensity. 4096 indicates 100.ambIntensity - Ambient light intensity. 4096 indicates 100.NullPointerException - if dir is null.| Method Detail |
public int getDirIntensity()
public void setDirIntensity(int dirIntensity)
dirIntensity - The new intensity setting.public int getAmbIntensity()
public void setAmbIntensity(int ambIntensity)
ambIntensity - The new intensity setting.public Vector3D getDirection()
public void setDirection(Vector3D dir)
dir - The new directionNullPointerException - if dir is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||