|
Constructor Summary |
SpotLight(double lightX,
double lightY,
double lightZ,
double pointAtX,
double pointAtY,
double pointAtZ,
double specularExponent,
double limitingConeAngle,
java.awt.Color lightColor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpotLight
public SpotLight(double lightX,
double lightY,
double lightZ,
double pointAtX,
double pointAtY,
double pointAtZ,
double specularExponent,
double limitingConeAngle,
java.awt.Color lightColor)
getLightX
public double getLightX()
- Returns:
- the light's x position
getLightY
public double getLightY()
- Returns:
- the light's y position
getLightZ
public double getLightZ()
- Returns:
- the light's z position
getPointAtX
public double getPointAtX()
- Returns:
- x-axis coordinate where the light points to
getPointAtY
public double getPointAtY()
- Returns:
- y-axis coordinate where the light points to
getPointAtZ
public double getPointAtZ()
- Returns:
- z-axis coordinate where the light points to
getSpecularExponent
public double getSpecularExponent()
- Returns:
- light's specular exponent (focus)
getLimitingConeAngle
public double getLimitingConeAngle()
- Returns:
- light's limiting cone angle
isConstant
public boolean isConstant()
- Specified by:
isConstant in interface Light- Overrides:
isConstant in class AbstractLight
- Returns:
- true if the light is constant over the whole surface
getLight
public final void getLight(double x,
double y,
double z,
double[] L)
- Computes the light vector in (x, y, z)
- Parameters:
x - x-axis coordinate where the light should be computedy - y-axis coordinate where the light should be computedz - z-axis coordinate where the light should be computedL - array of length 3 where the result is stored
<oXygen/>
XML Editor
uses Batik from the Apache Foundation
to provide support for previewing SVG documents.
See the SVG Editor section
for more info.