public abstract class SpotLight extends Light
| Modifier | Constructor | Description |
|---|---|---|
protected |
SpotLight(String name,
be.yildizgames.common.geometry.Point3D lightPosition,
be.yildizgames.common.geometry.Point3D lightDirection) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addToDirection(be.yildizgames.common.geometry.Point3D add) |
Translate the direction vector.
|
be.yildizgames.common.geometry.Point3D |
getDirection() |
|
protected abstract void |
setDirectionImpl(be.yildizgames.common.geometry.Point3D direction) |
Set new direction value in implementation.
|
equals, getName, hashCode, toStringattachLensFlare, delete, deleteImpl, getLensFlareList, getPosition, move, setPosition, setPositionImplprotected SpotLight(String name, be.yildizgames.common.geometry.Point3D lightPosition, be.yildizgames.common.geometry.Point3D lightDirection)
name - Light name, must be unique.lightPosition - Light position.lightDirection - Light direction.public final void addToDirection(be.yildizgames.common.geometry.Point3D add)
add - Value to add.public final be.yildizgames.common.geometry.Point3D getDirection()
protected abstract void setDirectionImpl(be.yildizgames.common.geometry.Point3D direction)
direction - New direction value.Copyright © 2014–2018. All rights reserved.