FovEngine

io.github.srs.model.illumination.engine.FovEngine
trait FovEngine

Represents a Field of View (FoV) engine for calculating light intensities in a grid-based environment.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def compute(OcclusionGridGrid: Grid[Double])(startX: Int, startY: Int, radius: Double): ArraySeq[Double]

Compute a field-of-view / light propagation field.

Compute a field-of-view / light propagation field.

Value parameters

OcclusionGridGrid

grid of occlusion coefficients in [0,1]

radius

max distance (cells)

startX

source x (cell space)

startY

source y (cell space)

Attributes

Returns

row-major (x-fast) flattened array sized width*height with values in [0,1]