Class AnchorDensity
Re-centers the input node on the context's density anchor (subtract the anchor, or add it when reversed). With no anchor, the input is evaluated unchanged. Allocates a per-call child context.
public sealed class AnchorDensity : Density
- Inheritance
-
AnchorDensity
- Inherited Members
Constructors
AnchorDensity(Density?, bool)
Re-centers the input node on the context's density anchor (subtract the anchor, or add it when reversed). With no anchor, the input is evaluated unchanged. Allocates a per-call child context.
public AnchorDensity(Density? input, bool isReversed)
Parameters
Methods
Process(Context)
public override double Process(Density.Context context)
Parameters
Returns
SetInputs(Density[])
Wire this node's inputs (no-op for leaf nodes).
public override void SetInputs(Density[] inputs)
Parameters
inputsDensity[]