Skip to content

Chart3DSurfaceFunctions

ClassChartGuruChartGuru.3D
public static class Chart3DSurfaceFunctions

The named surface functions a surface layer's Function can name and the Designer offers. Generated C# writes them as these static methods; other shapes, such as those of the Swift samples, are closures that a definition keeps as an expression and generated C# writes as lambdas.

public static bool TryResolve(string name, out SurfacePlotMark.SurfaceFunction function)

Finds a named surface function, ignoring case. Returns false for unknown names.

Parameters

NameType
nameSystem.String
functionChartGuru.SurfacePlotMark.SurfaceFunction

Returns

System.Boolean

public static bool IsKnown(string name)

True when name names a surface function.

Parameters

NameType
nameSystem.String

Returns

System.Boolean

public static SurfacePlotMark.SurfaceFunction Resolve(string name)

The surface function named name, ignoring case; throws for unknown names.

Parameters

NameType
nameSystem.String

Returns

ChartGuru.SurfacePlotMark.SurfaceFunction

public static float Sinc(float x, float z)

A radial sinc, sin(3r) / 3r, that peaks at 1 in the middle.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float Saddle(float x, float z)

A saddle that rises along X and falls along Z.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float Ridge(float x, float z)

Ridges along X over a gentle swell along Z.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float Gaussian(float x, float z)

A Gaussian bell that peaks at 1 in the middle.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float Ripple(float x, float z)

Rings that spread from the middle and slowly lose height.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float DampedRipple(float x, float z)

Tight rings whose height falls off with the distance from the middle.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float Wave(float x, float z)

sin(x) * cos(z).

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single

public static float TerrainBand(float x, float z)

A rising terrain band with ripples along X and Z.

Parameters

NameType
xSystem.Single
zSystem.Single

Returns

System.Single