SpotLight

final case
class SpotLight(position: Point, color: RGBA, specular: RGBA, intensity: Double, angle: Radians, rotation: Radians, falloff: Falloff) extends Light

Spot lights emit light like a lamp, they are essentially a point light, where the light is only allow to escape in a particular anglular range.

Companion
object
trait Serializable
trait Product
trait Equals
trait Light
class Object
trait Matchable
class Any

Value members

Concrete methods

def lookAt(point: Point): SpotLight
def moveBy(amount: Point): SpotLight
def moveBy(x: Int, y: Int): SpotLight
def moveTo(newPosition: Point): SpotLight
def moveTo(x: Int, y: Int): SpotLight
def rotateBy(amount: Radians): SpotLight
def rotateTo(newRotation: Radians): SpotLight
def withAngle(newAngle: Radians): SpotLight
def withColor(newColor: RGBA): SpotLight
def withFalloff(newFalloff: Falloff): SpotLight
def withIntensity(newIntensity: Double): SpotLight
def withSpecular(newColor: RGBA): SpotLight

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product