BiomolGradientLayer

constructor(directionX: Double, directionY: Double, unitVariation: Double, offset: Double)

Initialize a gradient layer which grows in concentration proportionally in space.

Parameters

directionX

x coordinate of the vector representing the direction in which the gradient grows

directionY

y coordinate of the vector representing the direction in which the gradient grows

unitVariation

unit variation of the gradient

offset

minimum value of concentration reached by this spatial distribution


constructor(direction: P, unitVariation: Double, offset: Double)

Initialize a gradient layer which grows in concentration proportionally in space.

Parameters

direction

the Position2D representing the direction in which the gradient grows (here the positions is considered as a vector)

unitVariation

unit variation of the gradient

offset

minimum value of concentration reached by this spatial distribution