StepLayer

class StepLayer<T, P : Position2D<out P>?> : Layer<T, P>

Implements a Layer with a discontinue spatial distribution: the plane is divided in two parts, both with a constant concentration but with a different in value.

Parameters

<T>

the type describing the concentration in this Layer.

<P>

Constructors

Link copied to clipboard
constructor(mx: Double, my: Double, maxValue: T, minValue: T)
Initialize a StepLayer.
constructor(maxValue: T, minValue: T)
Initialize a StepLayer where concentration is at its maximum value in first quadrant (for positive values of x and y).

Functions

Link copied to clipboard
open fun getValue(p: P): T
Link copied to clipboard