Light

io.github.srs.model.StaticEntity.Light
final case class Light(pos: Point2D, orient: Orientation, radius: Double, intensity: Double, attenuation: Double) extends StaticEntity

The Light represents a light source in the simulation environment.

Value parameters

attenuation

attenuation factor of the light

intensity

intensity of the light

orient

orientation of the light

pos

center position of the light

radius

radius of the light's influence

Attributes

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def shape: ShapeType

The shape type of the static entity.

The shape type of the static entity.

Attributes

Returns

the ShapeType that defines the geometric shape of this static entity.

Definition Classes
StaticEntity -> Entity
Inherited from:
StaticEntity

Inherited fields

The orientation of the entity in 2D space.

The orientation of the entity in 2D space.

Attributes

Returns

an Orientation representing the angle or facing direction of this entity.

Inherited from:
StaticEntity

The position of the entity in 2D space.

The position of the entity in 2D space.

Attributes

Returns

a Point2D representing the (x, y) coordinates of this entity.

Inherited from:
StaticEntity