Table of Contents

Class ClampDensity

Namespace
Shard.WorldGen.Nodes
Assembly
Shard.WorldGen.dll

Clamps the input node between two walls (given in either order).

public sealed class ClampDensity : Density
Inheritance
ClampDensity
Inherited Members

Constructors

ClampDensity(double, double, Density?)

Clamps the input node between two walls (given in either order).

public ClampDensity(double wallA, double wallB, Density? input)

Parameters

wallA double
wallB double
input Density

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double

SetInputs(Density[])

Wire this node's inputs (no-op for leaf nodes).

public override void SetInputs(Density[] inputs)

Parameters

inputs Density[]