Table of Contents

Class PlaneDensity

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

Leaf: distance to a plane through the origin with a given normal, run through a curve. A horizontal plane uses the signed Y directly; anchored mode measures from the context's density anchor.

public sealed class PlaneDensity : Density
Inheritance
PlaneDensity
Inherited Members

Constructors

PlaneDensity(Func<double, double>, Vector3d, bool)

Leaf: distance to a plane through the origin with a given normal, run through a curve. A horizontal plane uses the signed Y directly; anchored mode measures from the context's density anchor.

public PlaneDensity(Func<double, double> distanceCurve, Vector3d planeNormal, bool isAnchored)

Parameters

distanceCurve Func<double, double>
planeNormal Vector3d
isAnchored bool

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double