Chart3DSurfaceFunctions
public static class Chart3DSurfaceFunctionsThe 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.
Methods
Section titled “Methods”
TryResolve(string, out SurfaceFunction)
Section titled “TryResolve(string, out SurfaceFunction)”public static bool TryResolve(string name, out SurfacePlotMark.SurfaceFunction function)Finds a named surface function, ignoring case. Returns false for unknown names.
Parameters
| Name | Type |
|---|---|
name | System.String |
function | ChartGuru.SurfacePlotMark.SurfaceFunction |
Returns
System.Boolean
IsKnown(string)
Section titled “IsKnown(string)”public static bool IsKnown(string name)True when name names a surface function.
Parameters
| Name | Type |
|---|---|
name | System.String |
Returns
System.Boolean
Resolve(string)
Section titled “Resolve(string)”public static SurfacePlotMark.SurfaceFunction Resolve(string name)The surface function named name, ignoring case; throws for unknown names.
Parameters
| Name | Type |
|---|---|
name | System.String |
Returns
ChartGuru.SurfacePlotMark.SurfaceFunction
Sinc(float, float)
Section titled “Sinc(float, float)”public static float Sinc(float x, float z)A radial sinc, sin(3r) / 3r, that peaks at 1 in the middle.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
Saddle(float, float)
Section titled “Saddle(float, float)”public static float Saddle(float x, float z)A saddle that rises along X and falls along Z.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
Ridge(float, float)
Section titled “Ridge(float, float)”public static float Ridge(float x, float z)Ridges along X over a gentle swell along Z.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
Gaussian(float, float)
Section titled “Gaussian(float, float)”public static float Gaussian(float x, float z)A Gaussian bell that peaks at 1 in the middle.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
Ripple(float, float)
Section titled “Ripple(float, float)”public static float Ripple(float x, float z)Rings that spread from the middle and slowly lose height.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
DampedRipple(float, float)
Section titled “DampedRipple(float, float)”public static float DampedRipple(float x, float z)Tight rings whose height falls off with the distance from the middle.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
Wave(float, float)
Section titled “Wave(float, float)”public static float Wave(float x, float z)sin(x) * cos(z).
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single
TerrainBand(float, float)
Section titled “TerrainBand(float, float)”public static float TerrainBand(float x, float z)A rising terrain band with ripples along X and Z.
Parameters
| Name | Type |
|---|---|
x | System.Single |
z | System.Single |
Returns
System.Single