Table of Contents

Class ShellDensity

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

Leaf: a spherical shell modulated by angle to an axis — radial distance drives an amplitude curve, scaled by an angle curve (optionally mirrored about the equator).

public sealed class ShellDensity : Density
Inheritance
ShellDensity
Inherited Members

Constructors

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

Leaf: a spherical shell modulated by angle to an axis — radial distance drives an amplitude curve, scaled by an angle curve (optionally mirrored about the equator).

public ShellDensity(Func<double, double> angleCurve, Func<double, double> distanceCurve, Vector3d axis, bool isMirrored)

Parameters

angleCurve Func<double, double>
distanceCurve Func<double, double>
axis Vector3d
isMirrored bool

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double