Layer To Function Mapper
Defines an object capable of mapping a Layer to a Function<* in P, * out Number>.
Functions
Link copied to clipboard
abstract fun <T, P : Position2D<P>> map(layers: Stream<Layer<T, P>>): Stream<Function<in P, out Number>>
Content copied to clipboard
abstract fun <T, P : Position2D<P>> map(layers: Collection<Layer<T, P>>): Collection<Function<in P, out Number>>
Content copied to clipboard
Effectively map the given layers, layers may be filtered too if the mapper is only able to map certain types of layers.
Link copied to clipboard
open fun <T, P : Position2D<P>> prepare(effect: DrawLayersValues, toDraw: Collection<Layer<T, P>>, env: Environment<T, P>, g: Graphics2D, wormhole: Wormhole2D<P>)
Content copied to clipboard
Prepare the mapping (if necessary).