public class LightSource
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LightSource(float x,
float y,
float z,
int color)
Creates a new light source.
|
LightSource(float x,
float y,
float z,
int color,
java.lang.Float diameter)
Creates a new light source.
|
Modifier and Type | Method and Description |
---|---|
int |
getColor()
Returns the RGB color code of this source.
|
java.lang.Float |
getDiameter()
Returns the diameter of this source or
null if it's not defined. |
float |
getX()
Returns the abscissa of this source.
|
float |
getY()
Returns the ordinate of this source.
|
float |
getZ()
Returns the elevation of this source.
|
public LightSource(float x, float y, float z, int color)
public LightSource(float x, float y, float z, int color, java.lang.Float diameter)
public float getX()
public float getY()
public float getZ()
public int getColor()
public java.lang.Float getDiameter()
null
if it's not defined.
© Copyrights 2006-2023 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License