com.sygem.jazz3d3
Class Lightpoint
java.lang.Object
|
+--com.sygem.jazz3d3.Light
|
+--com.sygem.jazz3d3.Lightpoint
- public class Lightpoint
- extends Light
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.
- Version:
- 3.0a
- Author:
- SyGem Software
- See Also:
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lightpoint
public Lightpoint(double x,
double y,
double z)
- Default constructor. The parameters represent the position
of the light.
- Parameters:
x
- The x component of the light position.y
- The y component of the light position.z
- The z component of the light position.
translate
public final void translate(double xd,
double yd,
double zd)
- Moves the light source.
- Overrides:
translate
in class Light
- Parameters:
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.
rotate
public final void rotate(double xa,
double ya,
double za)
- Rotate the light source. Actually does nothing for this light type, because
it shines in all directions.
- Overrides:
rotate
in class Light
- Parameters:
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.
rotate
public final void rotate(double xa,
double ya,
double za,
double px,
double py,
double pz)
- Rotate the light source around a given point.
- Overrides:
rotate
in class Light
- Parameters:
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.