|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.jazz3d3.Light
com.sygem.jazz3d3.Lightpoint
A more advanced light type. This represents a light which has a physical position in space, and shines in all directions. The light intensity remains constant across space, never losing intensity. This is the second fastest of the light sources.
Light
,
Lightspot
Constructor Summary | |
Lightpoint(double x,
double y,
double z)
Default constructor. |
Method Summary | |
void |
rotate(double xa,
double ya,
double za)
Rotate the light source. |
void |
rotate(double xa,
double ya,
double za,
double px,
double py,
double pz)
Rotate the light source around a given point. |
void |
translate(double xd,
double yd,
double zd)
Moves the light source. |
Methods inherited from class com.sygem.jazz3d3.Light |
getColour, getIntensity, pointAt, setColour, setIntensity, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Lightpoint(double x, double y, double z)
x
- The x component of the light position.y
- The y component of the light position.z
- The z component of the light position.Method Detail |
public final void rotate(double xa, double ya, double za)
rotate
in class Light
xa
- The amount to rotate around the x-axis.ya
- The amount to rotate around the y-axis.za
- The amount to rotate around the z-axis.public final void rotate(double xa, double ya, double za, double px, double py, double pz)
rotate
in class Light
xa
- The amount to rotate around the x-axis.ya
- The amount to rotate around the y-axis.za
- The amount to rotate around the z-axis.px
- The x point to rotate around.py
- The y point to rotate around.pz
- The z point to rotate around.public final void translate(double xd, double yd, double zd)
translate
in class Light
xd
- The distance to move the light along the x-axis.yd
- The distance to move the light along the y-axis.zd
- The distance to move the light along the z-axis.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |