Table of Contents

Class SimplexNoiseOctave

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

OpenSimplex Noise in C# Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 by KdotJPG and heavily refactored to improve performance.

public class SimplexNoiseOctave
Inheritance
SimplexNoiseOctave
Inherited Members
Extension Methods

Constructors

SimplexNoiseOctave()

public SimplexNoiseOctave()

SimplexNoiseOctave(long)

public SimplexNoiseOctave(long seed)

Parameters

seed long

Fields

MAX_VALUE_2D

public const double MAX_VALUE_2D = 0.8659203889141831

Field Value

double

MAX_VALUE_2D_WARP

public const double MAX_VALUE_2D_WARP = 1.4142135623730951

Field Value

double

MAX_VALUE_3D

public const double MAX_VALUE_3D = 0.9871465422297019

Field Value

double

MAX_VALUE_4D

public const double MAX_VALUE_4D = 1.0342209323751448

Field Value

double

Methods

Evaluate(double, double)

public double Evaluate(double x, double y)

Parameters

x double
y double

Returns

double

Evaluate(double, double, double)

public double Evaluate(double x, double y, double z)

Parameters

x double
y double
z double

Returns

double

Evaluate(double, double, double, double)

public double Evaluate(double x, double y, double z, double w)

Parameters

x double
y double
z double
w double

Returns

double

EvaluateFairWarpVector(SimplexNoiseOctave, SimplexNoiseOctave, double, double, out double, out double)

public static void EvaluateFairWarpVector(SimplexNoiseOctave originalWarpX, SimplexNoiseOctave originalWarpZ, double x, double y, out double distX, out double distY)

Parameters

originalWarpX SimplexNoiseOctave
originalWarpZ SimplexNoiseOctave
x double
y double
distX double
distY double