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
MAX_VALUE_2D_WARP
public const double MAX_VALUE_2D_WARP = 1.4142135623730951
Field Value
MAX_VALUE_3D
public const double MAX_VALUE_3D = 0.9871465422297019
Field Value
MAX_VALUE_4D
public const double MAX_VALUE_4D = 1.0342209323751448
Field Value
Methods
Evaluate(double, double)
public double Evaluate(double x, double y)
Parameters
Returns
Evaluate(double, double, double)
public double Evaluate(double x, double y, double z)
Parameters
Returns
Evaluate(double, double, double, double)
public double Evaluate(double x, double y, double z, double w)
Parameters
Returns
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
SimplexNoiseOctaveoriginalWarpZ
SimplexNoiseOctavex
doubley
doubledistX
doubledistY
double